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

Horizontal scroll

2 Answers 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Israel
Top achievements
Rank 1
Israel asked on 23 Oct 2013, 05:06 PM
HI

I have a grid with:

Width="98%" and etc information.

the MasterTableView TableLayout="Fixed"

I have a table with 40 columns, so the user can select many columns to show in the grid.

 

the grid had 40 telerik:GridTemplateColumn, and in the code behind in the event of _ItemCreated set the property visible (true/false).

and the <HeaderStyle   without Width

And the propertys of grid Scrolling-AllowScroll ="true" Scrolling-UseStaticHeaders="true"

But dont work!

pls help!

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 24 Oct 2013, 05:50 AM
Hi,

In order to display horizontal scroll for navigation, you need to make sure that the total width of the columns exceeds the width of the grid.If you set the TableLayout of the MasterTableView to "Fixed", remove the MasterTableView's width.Note that when scrolling is enabled and UseStaticHeaders is True, the grid columns should declare HeaderStyle.Width.

Thanks,
Princy
0
Venelin
Telerik team
answered on 28 Oct 2013, 07:52 AM
Hello,

Note that this is expected behavior, since if columns don't have width they will automatically resize in order to accommodate the available space. You can also refer to this forum thread for more details: Best Practice for Grid and Column widths.

Regards,
Venelin
Telerik
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 the blog feed now.
Tags
Grid
Asked by
Israel
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Venelin
Telerik team
Share this question
or