Hello there,
We are using RadDock controls to build a web portal as an extension to our already existing website.
When a user logs in to the portal for the first time, he is presented with a default layout which is stored and generated from the database.
There are 2 zones on the page (namely left and right) and the user is able to move the raddock controls vertically within these zones. Once he has finished this, he clicks on a "Save layout" button which generates a string (this string is in RadDock recognised format) containing all the RadDocks on a page, their positions and indices. This string is then saved to the database along with the User's ID.
The user logs out and returns some time in the future. The system (our "Load Layout" functionality) checks to see if a layout attached to that user exists before presenting the default layout. If a layout exists, the page is generated according to that layout else it is presented in the default layout.
All this is fine and working according to our requirements. However, If the user moves to another section of the same website, the layout is lost.
I have tried the DockPositionChanged event and realised that it requires an autopostback to function properly. This is against the guidelines of our "User experience" as it would involve too many postbacks. I have also found out that the page unload event is not the correct place to do this kind of an job.
Both of the above were server side scripts. I have found out about the OnClientDockPositionChanged and I believe this may be able to meet our requirements. However, I was wondering if I could get any specific references to the Client side (javascript) script involved in generating the string containing information of all docks on the page. In simple words, a javascript version of the 'GetRegisteredDocksState' and its implementation, as shown in the 'SaveLayout' demo.
Thanks in advance.
Noel
We are using RadDock controls to build a web portal as an extension to our already existing website.
When a user logs in to the portal for the first time, he is presented with a default layout which is stored and generated from the database.
There are 2 zones on the page (namely left and right) and the user is able to move the raddock controls vertically within these zones. Once he has finished this, he clicks on a "Save layout" button which generates a string (this string is in RadDock recognised format) containing all the RadDocks on a page, their positions and indices. This string is then saved to the database along with the User's ID.
The user logs out and returns some time in the future. The system (our "Load Layout" functionality) checks to see if a layout attached to that user exists before presenting the default layout. If a layout exists, the page is generated according to that layout else it is presented in the default layout.
All this is fine and working according to our requirements. However, If the user moves to another section of the same website, the layout is lost.
I have tried the DockPositionChanged event and realised that it requires an autopostback to function properly. This is against the guidelines of our "User experience" as it would involve too many postbacks. I have also found out that the page unload event is not the correct place to do this kind of an job.
Both of the above were server side scripts. I have found out about the OnClientDockPositionChanged and I believe this may be able to meet our requirements. However, I was wondering if I could get any specific references to the Client side (javascript) script involved in generating the string containing information of all docks on the page. In simple words, a javascript version of the 'GetRegisteredDocksState' and its implementation, as shown in the 'SaveLayout' demo.
Thanks in advance.
Noel