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

     

     

    HierarchyLoadMode="Client"

     



    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();

     

    sbShowwndProcHist.Append(

     

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

     

     

     

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

     

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


    Please help!
  2. Pavlina
    Admin
    Pavlina avatar
    6084 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:
    http://www.telerik.com/community/code-library/aspnet-ajax/grid/separate-scrolls-for-inner-tables-in-hierarchical-grid.aspx

    Greetings,
    Pavlina
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top