radgrid hierarchy AllowColumnResize="true"

2 posts, 0 answers
  1. JJ
    JJ avatar
    147 posts
    Member since:
    May 2010

    Posted 29 Jan 2013 Link to this post

    I have a 3 layer multi grid, on the firest layer of the grid, I have a dropdown tempaltes, click one of the item on the dropdown, will open a radwindow. The grid set





    I set the each layer of the grid view with with Width="98%"
    when I use AllowColumnResize="true" and UseStaticHeaders="true", and when all the grid level are expand,  everytime when I  below code to open pop up radwindow, the grid colum won't fit the winow well, instead it bumps to the left side for the second and third level of the grid. see attachment. It looks like AllowColumnResize="true"  and UseStaticHeaders="true" won't work for hierarchy grid. also, if try to resize (expand)the seocnd or third level of the grid, the grid will go out of the window width.



    StringBuilder sbShowwndProcHist = new StringBuilder();




    "radopen(null, 'wndProcHist');");




    ScriptManager.RegisterStartupScript(this, GetType(), "ViewwndProcHistKey", sbShowwndProcHist.ToString(), true);


    <ClientSettings EnableRowHoverStyle="true" AllowColumnsReorder="true" ColumnsReorderMethod="Reorder"
                          <Scrolling AllowScroll="true" ScrollHeight="" UseStaticHeaders="true" />
                           <Resizing AllowColumnResize="true" EnableRealTimeResize="true"  AllowResizeToFit="true"                 

    Please help!
  2. Pavlina
    Pavlina avatar
    6170 posts

    Posted 01 Feb 2013 Link to this post

    Hello JJ,

    I suggest that you try setting MasterTableView Width to 100% instead of setting grid width. Also set TableLayout property of MasterTableView and GridTableView to Fixed.

    Additionally, note that scrolling with static headers is not applicable for detail tables. however, if you want to have separate scrolls to each table in grid hierarchy you can use the approach presented in the following code library:

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top