This is a migrated thread and some comments may be shown as answers.

static header problem

6 Answers 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
arijit
Top achievements
Rank 1
arijit asked on 04 Oct 2012, 03:46 PM

i have a grid with large number of columns
it has two levels

when i use the following
<Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="300px" />

the width is auto fitting into 100%, with out scroll, squeezed

How can i get rid of this problem.

Please help.
Arijit Chatterjee


6 Answers, 1 is accepted

Sort by
0
arijit
Top achievements
Rank 1
answered on 05 Oct 2012, 02:48 AM
can anyone please help ?
0
Pavlina
Telerik team
answered on 05 Oct 2012, 09:36 AM
Hello,

As pointed in this help article - when scrolling is enabled and UseStaticHeaders is True, the grid columns should declare HeaderStyle.Width. Try setting fixed column widths and see if this helps.

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.
0
arijit
Top achievements
Rank 1
answered on 05 Oct 2012, 12:34 PM
In my case all columns are autogenerated and can be any number of columns and autofit.
I dont see any reason that i have to give width to the columns. I only want to have static header and scroll with a height.

It seems to me as a show stopper of using RadGrid for my case.
0
Pavlina
Telerik team
answered on 08 Oct 2012, 08:28 AM
Hi,

After the columns are autogenerated you can set HeaderStyle.Width property to MasterTableView as shown below:
<MasterTableView TableLayout="Fixed" HeaderStyle-Width="100px">

Thus the total width of the columns (either auto-generated or declaratively set) will exceed the width of the grid and the horizontal scrollbar will appear.

Regards,
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.
0
Dinoop
Top achievements
Rank 1
answered on 30 Oct 2012, 01:02 PM
This is issue not be fixed with the header width, (I think), because I saw lot of your reply that can be resolved like this, but no luck,
 I still experiancing the same issue of static header,  in my case it working in my development server, but when I moved to IIS host it aligned wrongly, here I am trying to freez a colum.. please help us.

0
Pavlina
Telerik team
answered on 30 Oct 2012, 05:28 PM
Hi Dinoop,

Can you provide a live url where we can observe this problem? Providing the problematic code will also help. Additionally, verify that you are using the latest version of RadControls for ASP.NET AJAX in your project.

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
arijit
Top achievements
Rank 1
Answers by
arijit
Top achievements
Rank 1
Pavlina
Telerik team
Dinoop
Top achievements
Rank 1
Share this question
or