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

Remove space after radgrid last column when decrease column size

1 Answer 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jignesh
Top achievements
Rank 1
Jignesh asked on 11 Oct 2010, 09:59 AM
Hello Sir,

I am facing one problem in radgrid.The issue is when we decrease any one or more column width than it will create blank space after the last column.if i put UseStaticHeaders="False" than it is fine but some other issue is created like pager control are coming up side if "No records to display".also some scroll issue.So i need to remove space issue when UseStaticHeaders="True".
Pls help me.

Thanks
Jignesh Patel

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 12 Oct 2010, 03:50 PM
Hi Jignesh,

The observed behavior is by design.

In your case you can use the RadGrid's ColumnResizing or ColumnResized events and resize one or more columns, so that the MasterTableView is as wide as the RadGrid control.



http://www.telerik.com/help/aspnet-ajax/grid_oncolumnresizing.html

http://www.telerik.com/help/aspnet-ajax/grid_oncolumnresized.html

http://www.telerik.com/help/aspnet-ajax/grid_resizecolumn.html

resizeColumn() is a method of a RadGrid's tableview client object:

http://www.telerik.com/help/aspnet-ajax/grid_gridtableviewclassmembers.html

Here is a relevant demo:

http://demos.telerik.com/aspnet-ajax/grid/examples/client/clientsideapi/defaultcs.aspx

And a forum thread:

http://www.telerik.com/community/forums/aspnet-ajax/grid/allowcolumnresize-can-a-minimum-column-size-be-enforced.aspx#976144

Best wishes,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Jignesh
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or