This is a migrated thread and some comments may be shown as answers.
enable/disable
1 Answer 25 Views
This is a migrated thread and some comments may be shown as answers.
Piyush Bhatt
Top achievements
Rank 2
Piyush Bhatt asked on 15 Apr 2008, 03:40 PM
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

1 Answer, 1 is accepted

Sort by
0
Sophy
Telerik team
answered on 18 Apr 2008, 09:21 AM
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
Tags
Dock
Asked by
Piyush Bhatt
Top achievements
Rank 2
Answers by
Sophy
Telerik team
Share this question
or