This is a migrated thread and some comments may be shown as answers.
radgrid hierarchy AllowColumnResize="true"
1 Answer 16 Views
This is a migrated thread and some comments may be shown as answers.
JJ
Top achievements
Rank 1
JJ asked on 29 Jan 2013, 05:08 PM
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!

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 01 Feb 2013, 06:29 PM
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.
Tags
Grid
Asked by
JJ
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or