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

Grid With Scroll, Static Header and Column Resizable BUG

16 Answers 256 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Erwin
Top achievements
Rank 1
Erwin asked on 27 May 2010, 01:52 PM

Hello

I have a grid just like in this demo:

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

with Column Resize = true and Resize grid on column resizing = false

at first my grid was fine and it resizes perfectly.

Then I add a property Scrolling.......

we set Scrolling = true, Static Header = true

My problem now is that when i resize the column to the right, the columns do not fit in the grid like in the demo above instead it overflow and it add a horizontal scrollbar.

I really dont want the horizontal scrollbar.

also if you adjust the column to the left, a white space is seen on the right.

Is there a way to stop the columns from overflowing or making white spaces.(letting the columns adjust like in the link above when you resize a column)

Thanks

16 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 27 May 2010, 02:28 PM
Hi Erwin,

To overcome this behavior I suggest that you set the ResizeGridOnColumnResize property to true and see it it works as expected.

Let me know if you need additional assistance.

Kind regards,
Pavlina
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.
0
Erwin
Top achievements
Rank 1
answered on 08 Jun 2010, 01:41 PM
Thanks for the reply

The Problem is that i dont want the grid to resize.

what i want was to adjust all the columns when we adjust a column
with:

Column Resize = true and Resize grid on column resizing = false
0
Pavlina
Telerik team
answered on 09 Jun 2010, 08:30 AM
Hello Erwin,

Please try to set UseStaticHeaders property to false and let me know if it makes any difference.

Sincerely yours,
Pavlina
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.
0
Erwin
Top achievements
Rank 1
answered on 15 Jun 2010, 12:14 PM
When i change it to false, then scrolling and resizing were good
but
the header and footer were included in the scroll.

I think static header + scrolling and resize are not compatible with each other
If their is a way to make combine this let me know but

I think this is the solution of my problem for now

Thank you.
0
Marc Schaaks
Top achievements
Rank 1
answered on 22 Jul 2010, 05:37 PM
I also suspect this to be a bug and also the grid does not act according the documentation:

'..When scrolling is enabled (the ClientSettings.Scrolling.AllowScroll property is True) and the grid columns have static headers, table-layout is always fixed in Mozilla Firefox. Because of this, all columns are displayed with equal widths by default and the sum of all widths is equal to the width of RadGrid..'

I also get the behavior as described in IE. So the only thing i can do to allow for resizing of columns based on column content and preserve the grid width is disabling the static headers feature.

That is not very convenient when there are a lot of rows.

Can a solution or workaround be provided ?

cheers,

Marc.
0
Pavlina
Telerik team
answered on 23 Jul 2010, 12:29 PM
Hi Marc,

Please upgrade to Q2 2010 (2010.2.713) version of RadControls for ASP.NET AJAX, where the problem with static headres and resizing is fixed and let me know if it helps to avoid this problem.

All the best,
Pavlina
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
0
Marc Schaaks
Top achievements
Rank 1
answered on 26 Jul 2010, 11:04 AM
Pavlina,

I upgraded to Q2 2010 (2010.2.713). But now my solution breaks (see attached picture).

what to do ?

0
Iana Tsolova
Telerik team
answered on 29 Jul 2010, 11:59 AM
Hello Marc,

Based on the provided information we are not able to determine the real cause of the error. Therefore I would suggest that you open a formal support ticket and send us a simple project there.
We will debug it locally and turn back with a proper resolution for your case.

Greetings,
Iana
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
0
Marc Schaaks
Top achievements
Rank 1
answered on 24 Aug 2010, 02:57 PM
Iana,

Via a formal support ticket a workaround has been provided to prevent the radgrid control in version 2010.2.713.35 from breaking. However i am still not able to configure a solution as described earlier:

A grid with static headers, verticale scrolling, column resizing and column widths that are automatically sized to fill up the grid width.

Please see the attached screenshots to see what is going wrong. I also inserted a code snippet of the grid configuration.

Can you please tell me why this is still not working ?

thx,  Marc.

<ClientSettings Scrolling-AllowScroll="true" Scrolling-UseStaticHeaders="true" 
 EnableRowHoverStyle="true" EnablePostBackOnRowClick="false" EnableAlternatingItems="false">
     <Resizing AllowColumnResize="true" ResizeGridOnColumnResize="false" 
     EnableRealTimeResize="false" ClipCellContentOnResize="false"/>
     <Scrolling AllowScroll="true" UseStaticHeaders="true" />
     <Selecting AllowRowSelect="false" />
     <ClientEvents OnRowContextMenu="TelerikSearchGrid_RowContextMenu" 
     OnRowClick="TelerikSearchGrid_RowClicked"/>
 </ClientSettings>
 <MasterTableView AutoGenerateColumns="False" ShowFooter="false" 
 ClientDataKeyNames="FileViewUrl,FileDownloadUrl,FileViewUrl_LastReleased,FileDownloadUrl_LastReleased,TDM_FILE_ID,CAD_REF_FILE_NAME,ObjectName,Description,CN_FILE_IN_USE,FileDownloadUrlOfficeUI" 
 HierarchyLoadMode="Client" GridLines="Horizontal" TableLayout="Auto">
0
Pavlina
Telerik team
answered on 24 Aug 2010, 04:48 PM
Hello Marc,

The described scenario should work across all browsers if TableLayout="Fixed" for the MasterTableView. Additionally, I suggest that you examine the following forum thread which elaborates on this matter:
http://www.telerik.com/community/forums/aspnet/grid/best-practice-for-grid-and-column-widths.aspx#1214355

All the best,
Pavlina
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
0
Marc Schaaks
Top achievements
Rank 1
answered on 24 Aug 2010, 08:32 PM
Pavlina,

I also tried the tablelayout = "fixed" option, but it does not seem to do anyting.

Could provide a working example for the mentioned scenario ?

thanks,

Marc.
0
Pavlina
Telerik team
answered on 25 Aug 2010, 11:53 AM
Hi Marc,

Attached to this message is a working project which handles the desired functionality. Give it a try and let me know if it works for you.

I hope this helps.

Regards,
Pavlina
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
0
Marc Schaaks
Top achievements
Rank 1
answered on 25 Aug 2010, 04:17 PM
Pavlina,

The demo project has the same problem. Please see the screenshots I took.
So can this be fixed with the latest release or not ? If not can you please provide a workaround or an internal build that does work as expected ?

0
Dimo
Telerik team
answered on 25 Aug 2010, 05:05 PM
Hello Marc,

I suspect there has been some misunderstanding here. Unfortunately, the desired behavior (static headers + column resizing + fixed table width) is not supported. Please turn off static headers or leave the control as is, with the ability to add a horizontal scrollbar or empty space on the right. Sorry about the inconvenience caused.

Regards,
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
0
Marc Schaaks
Top achievements
Rank 1
answered on 26 Aug 2010, 09:52 AM
Dimo,

Are there plans to support this behavior in a future release ?

kind regards,

Marc.
0
Dimo
Telerik team
answered on 26 Aug 2010, 10:45 AM
Hello Marc,

I am afraid we do not plan to implement the discussed behavior in the near future.

Regards,
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
Erwin
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Erwin
Top achievements
Rank 1
Marc Schaaks
Top achievements
Rank 1
Iana Tsolova
Telerik team
Dimo
Telerik team
Share this question
or