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

Save position without pressing button

3 Answers 32 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Ricky
Top achievements
Rank 2
Ricky asked on 30 Jul 2010, 03:02 AM
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
  

3 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 30 Jul 2010, 04:12 PM
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
0
Ricky
Top achievements
Rank 2
answered on 02 Aug 2010, 12:12 AM
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
0
Dobromir
Telerik team
answered on 04 Aug 2010, 05:25 PM
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
Tags
Splitter
Asked by
Ricky
Top achievements
Rank 2
Answers by
Tsvetie
Telerik team
Ricky
Top achievements
Rank 2
Dobromir
Telerik team
Share this question
or