enable/disable

2 posts, 0 answers
  1. Piyush Bhatt
    Piyush Bhatt avatar
    166 posts
    Member since:
    Nov 2007

    Posted 15 Apr 2008 Link to this post

    In a form, enabling disabling a panel or dock could be common scenario. This can be easily done from server side code.

    Has anyone tried this from client side? It would be nice if Dock object allows to enable disable from client side - so that all controls within it can be enabled/disabled using just the dock.

    Thanks,
    Piyush
  2. Sophy
    Admin
    Sophy avatar
    636 posts

    Posted 18 Apr 2008 Link to this post

    Hi Piyush,

    To disable the RadDock control client-side so that all other controls inside it will also be disabled I suggest to find the DOM element which comprises the control with the get_element method and disable it with javascript, e. g.:

    <script type="text/javascript">  
    function disableDock()  
    {  
        var dock = $find("<%= RadDock1.ClientID%>");  
        var outerDiv = dock.get_element();  
        outerDiv.disabled = true;  
    }  
    </script> 
    <telerik:raddock runat="server" id="RadDock1" title="Text" onclientinitialize="disableDock" text="This is a dock with some text inside">  
    </telerik:raddock> 

    Let us know if you need further assistance.

    Greetings,
    Sophy
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top