Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Splitter > Auto expand RadPane
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Answered Auto expand RadPane

Feed from this thread
  • Navnit avatar

    Posted on Mar 24, 2011 (permalink)

    Hi,

    Any suggestion on how can i auto expand my RadPane when then edit button on my GridView control is being pressed? I don't really want scrollbars to appear neither on the X or Y directions. I have inserted a snippet of the aspx code below. Looks like the Grid View control is being trapped by the Splitter control, which I cannot expand any further :-(

     Thanks,
    Navnit

  • Navnit avatar

    Posted on Mar 27, 2011 (permalink)

    To make it lesser complicated, all I wanted is to set the WIDTH of my main pane when I am in the edit mode of my Grid View control. It seems that I can set the height of the Splitter control at run-time by calling the JavaScript function below but the width still remains the same after calling it from my code behind [GridViewDefects_OnRowEditing]

    function SplitterLoaded() {
     
    var splitter = $find("<%=radSplitter.ClientID%>");
    var pane = splitter.getPaneById('<%= mainPane.ClientID %>');
    var height = pane.getContentElement().scrollHeight;
    var width = pane.getContentElement().scrollWidth;
    //alert("width: " + width);
    //alert("height: " + height);
    splitter.set_height(height);
    pane.set_height(height);
    }

    The code of the main pane is in the code snippet inserted in the previous post of this thread. 

    Can you please help?
    Thanks!

  • Answer Dobromir Dobromir admin's avatar

    Posted on Mar 29, 2011 (permalink)

    Hi Navnit,

    The function SplitterLoaded() is updating only the splitter's and pane's height and not their width. You can use RadSplitter's resize() method to set both width and height to the splitter. More detailed information regarding the splitter's client-side API is available in the following help articles:
    Client-Side Basics
    RadSplitter Client Object

    Regards,
    Dobromir
    the Telerik team

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Splitter > Auto expand RadPane