This is a migrated thread and some comments may be shown as answers.

Docking the tool bar breaks after postback (following example)

2 Answers 39 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Bexm
Top achievements
Rank 1
Bexm asked on 12 May 2008, 01:45 PM
Hello

I am following the following example for docking a toolbar

http://www.telerik.com/demos/aspnet/prometheus/ToolBar/Examples/ApplicationScenarios/DockingToolBars/DefaultCS.aspx

When I assign an onButtonClick to the tool bar and it posts back it causes the raddock to change size as it is being dynamically set.

I need to re-run the javascript function in the example to resize it again after the postback, but I cannot work out how to do this because of this line:

 var dock = sender; 

I have tried assigning the RadDock1 to the sender but I cannot get it to work. Please can you either give me an example or point me in the direction I need to enable me to do this.

Thanks

Bex

2 Answers, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 13 May 2008, 01:55 PM
Hi Bexm,

You can find the reference to the RadDock object by using the $find("<%=RadDock1.ClientID%>") statement.

I'm attaching a demo page for that. Let me know if it helps.

Kind regards,
Erjan Gavalji
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Bexm
Top achievements
Rank 1
answered on 13 May 2008, 04:04 PM
Thank you! Perfect!

Tags
ToolBar
Asked by
Bexm
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Bexm
Top achievements
Rank 1
Share this question
or