hi,
I have radgrid control and it has template Column, i want to find the control ID(e.g lbl_payable) inside the rad grid using java script in RowSelected method.
how can i do that ?
thanks in advance morteza
javascript code
I have radgrid control and it has template Column, i want to find the control ID(e.g lbl_payable) inside the rad grid using java script in RowSelected method.
how can i do that ?
thanks in advance morteza
<telerik:RadGrid ID="RadGrid1" runat="server" onitemdatabound="RadGrid1_ItemDataBound"> <MasterTableView autogeneratecolumns="False" ClientDataKeyNames="id"> <RowIndicatorColumn> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn> <HeaderStyle Width="20px"></HeaderStyle> </ExpandCollapseColumn> <Columns> <telerik:GridBoundColumn DataField="id" DataType="System.Int32" HeaderText="id" ReadOnly="True" SortExpression="id" UniqueName="id" Visible="false"> <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /> </telerik:GridBoundColumn> <telerik:GridTemplateColumn UniqueName="payable" HeaderText="payable"> <ItemTemplate > <asp:Label ID="lbl_payable" runat="server"></asp:Label> </ItemTemplate> <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /> </telerik:GridTemplateColumn> </Columns> </MasterTableView> <ClientSettings> <ClientEvents OnRowSelected="RowSelected" /> <Selecting AllowRowSelect="True" /> </ClientSettings></telerik:RadGrid>javascript code
function RowSelected(sender, eventArgs){
// how get lbl_payable}