Hi,
My aim is to retain the splitter position after postback or new page request or cross page request.
for example i have welcome page that contains the link to webpart page where my webpart exist with splitter.
When i set the splitter position and move back to welcome page and then go again to the webpart page, the position of the splitter should exist.
i know i need to store the value in cookie and then re-assigned the value to the Radpane anyother other solution if exist please let me know, with any code example.
So I want to grab the splitter width on On-ClientResized event. and assign to the radpane back in OnClientLoad event.
However right now i am facing issue, for raising the OnClient-Resized event.
My code goes here.. This code is called in CreateChildControls() method....
splitter = new RadSplitter();
splitter.ID = Constant.SPLITTERCLIENTID;
splitter.Width = Unit.Percentage(100);
splitter.Height = Unit.Percentage(100);
splitter.OnClientResized = "afterResize()";
//left pane for tree view
leftPane = new RadPane();
leftPane.Width = Unit.Pixel(200);
leftPane.Scrolling = SplitterPaneScrolling.Both;
leftPane.MinWidth = 150;
splitter.Items.Add(leftPane);
// split bar
var radSplitBar = new RadSplitBar();
radSplitBar.CollapseMode = SplitBarCollapseMode.Forward;
splitter.Items.Add(radSplitBar);
It does not fire the event when i resize the splitter bar.
Following options i tried
splitter.OnClientResized = "afterResize()"; Result: call the javascript function on Page load and not on re-sizing.
or
splitter.OnClientResized = "afterResize"; Result : this does not even call the javascript function on page load.
or
splitter.OnClientResized = "javascript:function afterResize(sender, Args){....}";
Result: Does not call the javscript function at all.
Any immediate help is highly appreciated.
Regards,
Govind.
My aim is to retain the splitter position after postback or new page request or cross page request.
for example i have welcome page that contains the link to webpart page where my webpart exist with splitter.
When i set the splitter position and move back to welcome page and then go again to the webpart page, the position of the splitter should exist.
i know i need to store the value in cookie and then re-assigned the value to the Radpane anyother other solution if exist please let me know, with any code example.
So I want to grab the splitter width on On-ClientResized event. and assign to the radpane back in OnClientLoad event.
However right now i am facing issue, for raising the OnClient-Resized event.
My code goes here.. This code is called in CreateChildControls() method....
splitter = new RadSplitter();
splitter.ID = Constant.SPLITTERCLIENTID;
splitter.Width = Unit.Percentage(100);
splitter.Height = Unit.Percentage(100);
splitter.OnClientResized = "afterResize()";
//left pane for tree view
leftPane = new RadPane();
leftPane.Width = Unit.Pixel(200);
leftPane.Scrolling = SplitterPaneScrolling.Both;
leftPane.MinWidth = 150;
splitter.Items.Add(leftPane);
// split bar
var radSplitBar = new RadSplitBar();
radSplitBar.CollapseMode = SplitBarCollapseMode.Forward;
splitter.Items.Add(radSplitBar);
It does not fire the event when i resize the splitter bar.
Following options i tried
splitter.OnClientResized = "afterResize()"; Result: call the javascript function on Page load and not on re-sizing.
or
splitter.OnClientResized = "afterResize"; Result : this does not even call the javascript function on page load.
or
splitter.OnClientResized = "javascript:function afterResize(sender, Args){....}";
Result: Does not call the javscript function at all.
Any immediate help is highly appreciated.
Regards,
Govind.