componentart - Selecting a single row in component art grid not working -
i have question component art grid.
have struggled selecting of single row attribite allowmultipleselect="false" still able select multiple rows.
i can't seem around because want selected row highlighted ever color selectedrowcssclass color is.
here front end code:
<%@ register assembly="componentart.web.ui" namespace="componentart.web.ui" tagprefix="componentart" %> <!doctype html> <meta http-equiv="x-ua-compatible" content="ie=edge" /> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="head1" runat="server"> <base target="_self" /> <title>iview trend data</title> <link href="assets/oldcss/gridstyle.css" rel="stylesheet" /> </head> <body> <form id="form1" runat="server"> <asp:hiddenfield id="parama" runat="server" /> <asp:hiddenfield id="paramb" runat="server" /> <table style="width:100%; height:100%;" > <tr> <td> <componentart:callback id="callback1" cachecontent="false" width="100%" height="100%" runat="server"> <content> <componentart:grid id="grid1" cssclass="grid" runat="server" runningmode="client" showfooter="false" imagesbaseurl="~/assets/image/grid/" sort="datetime" scrollbar="auto" scrolltopbottomimagesenabled="true" scrolltopbottomimageheight="2" scrolltopbottomimagewidth="16" scrollimagesfolderurl="~/assets/image/grid/" scrollbuttonwidth="16" scrollbuttonheight="17" scrollbarcssclass="scrollbar" scrollgripcssclass="scrollgrip" scrollbarwidth="16" scrollpopupclienttemplateid="scrollpopuptemplate" width="760" height="618" allowtextselection="false" allowhorizontalscrolling="true" allowmultipleselect="false" pagesize="30" showheader="true" showsearchbox="true" searchonkeypress="true" visible="true" allowverticalscrolling="false" groupingnotificationtext=""> <levels> <componentart:gridlevel datakeyfield="datetime" showtableheading="false" showselectorcells="false" headingcellcssclass="headingcell" headingcellhovercssclass="headingcellhover" headingcellactivecssclass="headingcellactive" headingtextcssclass="headingcelltext" datacellcssclass="datacell" rowcssclass="datarow" selectedrowcssclass="selectedrow" sortascendingimageurl="asc.gif" sortdescendingimageurl="desc.gif" columnreorderindicatorimageurl="reorder.gif" sorteddatacellcssclass="sorteddatacell" sortimagewidth="14" sortimageheight="14" allowgrouping="false" alternatingrowcssclass="alternatingrow"> <columns> <componentart:gridcolumn datafield="datetime" width="100" formatstring="yyyy-mm-dd hh:mm" visible="false"/> </columns> </componentart:gridlevel> </levels> <clienttemplates> <componentart:clienttemplate id="scrollpopuptemplate"> <table cellspacing="0" cellpadding="2" border="0" class="scrollpopup"> <tr> <td style="width:50px;"> <div style="font-size:10px;font-family:ms sans serif; text-overflow:ellipsis; overflow:visible;"> <nobr>## dataitem.getmember("datetime").text ##</nobr> </div> </td> </tr> </table> </componentart:clienttemplate> </clienttemplates> </componentart:grid> </content> <loadingpanelclienttemplate> <table width="100%" align="center" style="position:relative;top:250px"> <tr> <td style="color:#cee820" align="right">loading..</td> <td align="left"> <img src="./images/ajax-loader.gif" width="48" height="48" border="0"/></td> </tr> </table> </loadingpanelclienttemplate> </componentart:callback> </td> </tr> </table> </form> </body> </html>
i had similar problem, turned out because values of datakeyfield had spaces in them.
Comments
Post a Comment