| <telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="0" |
| Skin="Sunset"> |
| <Tabs> |
| <telerik:RadTab runat="server" Selected="True" Text="HOME" SelectedIndex="0"> |
| <Tabs> |
| <telerik:RadTab runat="server" Text="Add" Selected="True"> |
| </telerik:RadTab> |
| <telerik:RadTab runat="server" Text="Remove"> |
| </telerik:RadTab> |
| <telerik:RadTab runat="server" Text="Preview"> |
| </telerik:RadTab> |
| </Tabs> |
| </telerik:RadTab> |
| <telerik:RadTab runat="server" SelectedIndex="0" Text="SERVICES"> |
| <Tabs> |
| <telerik:RadTab runat="server" Selected="True" Text="Add"> |
| </telerik:RadTab> |
| <telerik:RadTab runat="server" Text="Remove"> |
| </telerik:RadTab> |
| <telerik:RadTab runat="server" Text="Preview"> |
| </telerik:RadTab> |
| </Tabs> |
| </telerik:RadTab> |
| </Tabs> |
| </telerik:RadTabStrip> |
| <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="multiPage"> |
| <telerik:RadPageView ID="RadPageView1" runat="server" > |
| </telerik:RadPageView> |
| </telerik:RadMultiPage> |
<telerik:GridTemplateColumn UniqueName="LocalUsageColumn" HeaderText="Local Usage" EditFormColumnIndex="1">
<ItemTemplate>
<asp:CheckBox id="DisabledLocalCheckBox" runat="server" Enabled="False" Checked='<%# Eval("LocalUsage") %>'></asp:CheckBox>
</ItemTemplate>
<EditItemTemplate>
<asp:CheckBox id="EditableLocalCheckBox" runat="server" Checked='<%# Bind("LocalUsage") %>' Onclick="usageCheck('EditableLocalCheckBox');">
</asp:CheckBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
I have a javascript function that gets fired when the checkboxe state changes, I would like to know how to get the ClientID of the controls I have in the EditItemTemplate
function usageCheck(sender){ }
I have tried
$find(
"<%= LocalUsageColumn.ClientID %>");
But can't be found.
My grid is in a page that inherits from a master page, So the ID for the controls looks something like .......
ctl00_MasterPageContentPlaceHolder_RadGrid1_ctl00_ctl05_EditableLocalCheckBox
But each editable Item in eachrow has diffrent ID (ctl00_ctl05, ctl00_ctl06, etc) so I can't hardcode it.
Do you have a solution?
I apreciate your reply in advance.
Dim Exp As New clsExpert
Dim dt As DataTable = Exp.GetChildByProvider(UserID, ProviderID)
If dt.Rows.Count > 0 Then
With Me.tvNav
.DataSource = dt
.DataFieldID =
"ID"
.DataFieldParentID ="ParentID"
.DataTextField = "Node"
.DataValueField = "ChildID"
.DataBind()
.ExpandAllNodes()
End With
Else
Me.lblNavStatus.Text = "No Children set up."
End If
This gives me a 2 level tree, with groups and children. How can I disable the top level nodes to stop users from clicking them and getting an error, as these first level nodes dont have any ID's associated with them.
Andy

| <system.webServer> |
| <validation validateIntegratedModeConfiguration="false"/> |
| <modules> |
| <remove name="ScriptModule" /> |
| <add name="ProgressModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" /> |
| <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> |
| </modules> |
| <handlers> |
| <remove name="WebServiceHandlerFactory-Integrated"/> |
| <remove name="ScriptHandlerFactory" /> |
| <remove name="ScriptHandlerFactoryAppServices" /> |
| <remove name="ScriptResource" /> |
| <add name="DialogHandler" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2008.1.415.35, Culture=neutral, PublicKeyToken=5798b630e02d74fc"/> |
| <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" |
| type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> |
| <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" |
| type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> |
| <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> |
| <add name="Telerik.RadUploadProgressHandler.ashx_*" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" preCondition="integratedMode,runtimeVersionv2.0"/> |
| </handlers> |
| </system.webServer> |
| Server Error in '/newfuture' Application. |
| -------------------------------------------------------------------------------- |
| Object reference not set to an instance of an object. |
| Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. |
| Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. |
| Source Error: |
| An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
| Stack Trace: |
| [NullReferenceException: Object reference not set to an instance of an object.] |
| Telerik.Web.UI.RadUploadHttpModule.SetTextContent(Type workerRequestType, HttpWorkerRequest workerRequest, Byte[] textContent) +162 |
| Telerik.Web.UI.RadUploadHttpModule.Context_BeginRequest(Object sender, EventArgs e) +378 |
| System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68 |
| System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75 |
| -------------------------------------------------------------------------------- |
| Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053 |