Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
615
Stretching Pane contents
posted

Hi,

I saw the following link... and its useful

http://samples.infragistics.com/2008.2/webfeaturebrowser/default.htm Aikido->Nested Panes and More

But i like to know while moving the vertical splitter towards left side...how can i stretch the left pane contents...instead of providing a scrollbar either way... Code help please...

Parents
No Data
Reply
  • 24497
    Suggested Answer
    posted

    Hi Wishnu,

    The easiest approach is to use % width/height of html elements/controls located in SplitterPane. In this case a browser will do all "stretch" for you.

    If you prefer manual adjustments, then you may process ClientEvents.SplitterBarPositionChanged, get references to affected panes, their DIV containers, old/new sizes, etc. So, you may use those value to adjuct bounds of all child elements in those panes. Below is example:

    function positionChanged(splitter, evtArgs)
    {
      var pane1 = evtArgs.get_nextPane(); //get_prevPane();
      var div1 = pane1.getBody();
      var clientWidth = pane1.getClientWidth();
      var newSize1 = evtArgs.get_nextPaneNewSize();
      ...
    }

Children