locked
function not a member of page.aspx RRS feed

  • Question

  • User-1590198976 posted

    I'm trying to diable a text box on node click


    <telerik:RadTreeView ID="rtStructures" runat="server" OnNodeClick="externalLinkDisabled();" AllowNodeEditing="false" Skin="HQ2009"
                        Height="430" EnableEmbeddedSkins="false">

    function externalLinkDisabled()
            {
            
            document.form1.txtExteralLink.disabled=true;
            return false;
            }



    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

            Me.rtStructures.Attributes.Add("OnNodeClick", "externalLinkDisabled()")


    Wednesday, November 24, 2010 6:59 PM

Answers

  • User-1590198976 posted

    client side event control for telerik:RadTreeView exist  called  OnClientNodeClicked which worked for me

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, November 28, 2010 6:54 PM

All replies

  • User882717925 posted

    I don't know the telerik controls, but my guess is that OnNodeClick is a server side event, so the code you write to handle it shoul dbe in the code-behind of the page, not in client-side Javascript

    Friday, November 26, 2010 4:44 AM
  • User-1590198976 posted

    client side event control for telerik:RadTreeView exist  called  OnClientNodeClicked which worked for me

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, November 28, 2010 6:54 PM