Save position without pressing button

4 posts, 0 answers
  1. Ricky
    Ricky avatar
    68 posts
    Member since:
    Dec 2007

    Posted 29 Jul 2010 Link to this post

    I need to save the Splitter position when i change it. I have done this by having a asp button and when button is pressed it will save the position of the splitter. But I do not want users to worry about the position and saving layout each time.
     
    Is there any server side event on splitter which occurs on changing position.

    Thanks
    Ricky
      
  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 30 Jul 2010 Link to this post

    Hello Ricky,
    I am not quite sure what you mean by saying that you save/change the position of the splitter control. Could you please explain in detail when exactly you need that postback to occur for you to save the position of the splitter?

    In case you mean that you need a server event to fire when you change the position of the splitbar (change the width/height of the panes in the splitter) - there is no such server-side event. You can use the resized client-side event of a RadPane control, however, to save the state of the panes - you can use a Web Service to do this, for example. Please refer to the following article for information how to do this:

    http://msdn.microsoft.com/en-us/library/bb383814.aspx

    Sincerely yours,
    Tsvetie
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ricky
    Ricky avatar
    68 posts
    Member since:
    Dec 2007

    Posted 01 Aug 2010 Link to this post

    Hi Tsvetie,

    I am saving the height and width of panes for users so they get the same height and width every time the login in. The problem is I can save the position by pressing a " Save Layout" button. I want this to happen automatically  when the change the splitter position. But rad splitter does not have have any server side events like "onwidth changed" or "on height changed" etc.

    Thanks
    Ricky
  5. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 04 Aug 2010 Link to this post

    Hi Ricky,

    RadSplitter does not offer such events because the resize provided by the client-side feature. However, you can use the RadSplitter's OnClientResized client-side event to manually invoke a postback using the __doPostBack() method to store the new layout.

    Greetings,
    Dobromir
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top