Hi All,
In my code am using Telerik Grid . Inside telerik Grid am using EditFormSettings tab to update Grid details.
I don't know how to get a ClientID of my textbox inside the user control. I want to apply the javascript to that textbox.
I need clientID for that textbox.
Could you please help me to how can i get Client ID inside the User Control in Telerik Grid
Here am Placing my sample code.
In my code am using Telerik Grid . Inside telerik Grid am using EditFormSettings tab to update Grid details.
I don't know how to get a ClientID of my textbox inside the user control. I want to apply the javascript to that textbox.
I need clientID for that textbox.
Could you please help me to how can i get Client ID inside the User Control in Telerik Grid
Here am Placing my sample code.
<radG:RadGrid ID="RadGrid1" runat="server" AllowAutomaticDeletes="True" AllowFilteringByColumn="False" |
AllowMultiRowSelection="false" AllowPaging="True" AllowSorting="True" BackColor="Transparent" |
DataSourceID="GridDataSource" EnableAJAX="false" EnableAJAXLoadingTemplate="false" |
EnableViewState="true" GridLines="None" LoadingTemplateTransparency="50" ShowGroupPanel="True" |
ShowStatusBar="False" AutoGenerateColumns="true" OnUpdateCommand="RadGrid1_UpdateCommand" |
SkinID="myGrid" OnColumnCreated="ColumnCheck" OnPreRender="ReduceFilter" Width="100%" |
OnItemDataBound="ColDatabind"> |
<MasterTableView DataSourceID="GridDataSource" GroupLoadMode="Client"> |
<Columns> |
<radG:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="~/Images/edit.gif" |
UniqueName="EditCommandColumn1" Resizable="False" Reorderable="False"> |
<HeaderStyle Width="15px" /> |
</radG:GridEditCommandColumn> |
<radG:GridTemplateColumn UniqueName="AssignUser" AllowFiltering="False" Reorderable="False" |
Groupable="False" Resizable="False" Visible="false"> |
<HeaderStyle Width="20px" /> |
<HeaderTemplate /> |
<ItemTemplate> |
<asp:ImageButton runat="Server" ID="ibtnAssignMsg" ImageUrl="~/images/Asgn.gif" CommandName="AssignMsgToUser" |
ToolTip="Assign SMS to User" Visible="false" /> |
</ItemTemplate> |
</radG:GridTemplateColumn> |
<radG:GridTemplateColumn UniqueName="myselect" AllowFiltering="False" Reorderable="False" |
Groupable="False" Resizable="False"> |
<HeaderStyle Width="20px" /> |
<HeaderTemplate> |
<asp:CheckBox ID="selectall" runat="Server" OnLoad="SelectAll" /> |
</HeaderTemplate> |
<ItemTemplate> |
<asp:CheckBox runat="Server" ID="myselect" OnLoad="ClearSAll" /> |
</ItemTemplate> |
</radG:GridTemplateColumn> |
</Columns> |
<EditFormSettings UserControlName="~/editform.ascx" EditFormType="WebUserControl" > |
<EditColumn UniqueName="EditCommandColumn"> |
</EditColumn> |
</EditFormSettings> |
<NoRecordsTemplate> |
<table width="100%"> |
<tr> |
<td align="center"> |
There are no items to display. Please check your selection criteria and retry. |
</td> |
</tr> |
</table> |
</NoRecordsTemplate> |
<FooterStyle Height="0px" /> |
<ExpandCollapseColumn Visible="False"> |
<HeaderStyle /> |
</ExpandCollapseColumn> |
<RowIndicatorColumn Visible="False"> |
<HeaderStyle /> |
</RowIndicatorColumn> |
</MasterTableView> |
<ClientSettings AllowGroupExpandCollapse="True" AllowDragToGroup="True" AllowColumnsReorder="True" |
ColumnsReorderMethod="Reorder" ApplyStylesOnClient="True"> |
<Selecting AllowRowSelect="True" /> |
<Resizing AllowColumnResize="True" ResizeGridOnColumnResize="True" /> |
</ClientSettings> |
</radG:RadGrid> |