Docking the tool bar breaks after postback (following example)

3 posts, 0 answers
  1. Bexm
    Bexm avatar
    67 posts
    Member since:
    May 2007

    Posted 12 May 2008 Link to this post

    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. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 13 May 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Bexm
    Bexm avatar
    67 posts
    Member since:
    May 2007

    Posted 13 May 2008 Link to this post

    Thank you! Perfect!

Back to Top