c# - Telerik Grid disturbed with action column -
note: when added action column edit delete image telerik grid, whole grid disturbed shown in screenshot.
this occurs when want add action column.
any highly apprecieted.
thank you
<telerik:radgrid id="radgrid1" runat="server" pagesize="20" width="100%" autogeneratecolumns="false"> <mastertableview name="masterview1" datakeynames="regid" allowmulticolumnsorting="false"> <itemstyle cssclass="gridrow1" /> <alternatingitemstyle cssclass="gridrow2" /> <columns> <telerik:gridtemplatecolumn headertext="action" datafield="regid" uniquename="ckboxdelkey" headerstyle-cssclass="leftgridheader"> <itemtemplate> <nobr> <asp:imagebutton id="btnnoteedit" tooltip="edit goal" imageurl="images/emailalertedit.png" commandargument='<%# databinder.eval(container.dataitem, "regid") %>' commandname="updatekeyresult" runat="server" /> <itemstyle width="90px" /> <asp:imagebutton id="btndel" tooltip="delete goal" imageurl="images/emailalertdelete.png" commandargument='<%# databinder.eval(container.dataitem, "regid") %>' commandname="delnote" onclientclick="javascript:return confirm('are sure want delete?');" runat="server" /> <itemstyle width="90px" /> </nobr> </itemtemplate> </telerik:gridtemplatecolumn> <telerik:gridboundcolumn datafield="lastname" headertext="lastname" headerstyle-cssclass="gridheader" sortascimageurl="images/emailalertsgridasc.png" sortdescimageurl="images/emailalertgriddesc.png" sortexpression="lastname" uniquename="lastname"> <itemstyle width="90px" /> </telerik:gridboundcolumn> <telerik:gridboundcolumn datafield="firstname" headertext="firstname" headerstyle-cssclass="gridheader" sortascimageurl="images/emailalertsgridasc.png" sortdescimageurl="images/emailalertgriddesc.png" sortexpression="firstname" uniquename="firstname"> <itemstyle width="90px" /> </telerik:gridboundcolumn> <%-- <telerik:gridboundcolumn datafield="keyresult" headertext="key result score" headerstyle-cssclass="gridheader" sortascimageurl="images/emailalertsgridasc.png" sortdescimageurl="images/emailalertgriddesc.png" sortexpression="keyresult" uniquename="keyresult"> <itemstyle width="80px" /> </telerik:gridboundcolumn>--%> </columns> </mastertableview> </telerik:radgrid>
what expect do? @ it's heart, radgrid table element rows , columns. if add 1 more cell 1 of rows, not right. suggest making gridtemplatecolumn every row , deciding whether show buttons or not within cell.
Comments
Post a Comment