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

ColumnHeader Blows

9 Answers 56 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Siddalingesh
Top achievements
Rank 1
Siddalingesh asked on 25 Nov 2016, 08:04 AM

I am facing problem with ColumnHeader . It blows when I drag any column to increase its size. This is happening when my grid has 195 columns, column width=200px and any numbers of rows.

I want to know whether there is any restriction with no.of column and column width size?

I have attached Before and After Screen shot.

 

9 Answers, 1 is accepted

Sort by
0
Siddalingesh
Top achievements
Rank 1
answered on 25 Nov 2016, 08:06 AM
Please find my attachment for above mentioned problem.
0
Siddalingesh
Top achievements
Rank 1
answered on 25 Nov 2016, 08:07 AM
PFA screen shot for above mentioned problem.
0
Siddalingesh
Top achievements
Rank 1
answered on 25 Nov 2016, 08:08 AM
PFA attachment  for  above problem
0
Siddalingesh
Top achievements
Rank 1
answered on 25 Nov 2016, 08:10 AM

Please find my screen shots in below link. (Attach files is not working here getting error)

https://drive.google.com/open?id=0BwTjd8OR-J2OQjNidmFXSDQyNlk

0
Stefan Nenchev
Telerik team
answered on 28 Nov 2016, 10:28 AM
Hi Siddalingesh,

Generally, there is no limitation in the number of columns defined for the RadGridView control. You can disable the possibility of column resizing by setting the CanUserResizeColumns property of RadGridView to False. Would this work for you?

Regards,
Stefan Nenchev
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Siddalingesh
Top achievements
Rank 1
answered on 29 Nov 2016, 06:54 AM

We don't want to restrict Column resize feature. It is already existing functionality we added  few more new columns from then this problem is coming.

You can simulate this problem by simply creating grid with data with 25 rows * 200 columns and column width size to 200px. 

0
Stefan Nenchev
Telerik team
answered on 29 Nov 2016, 12:34 PM
Hello Siddalingesh,

I managed to reproduce the behavior, however, it is caused due to a limitation in the Silverlight framework and its element measuring mechanism so there is not a convenient workaround that I can suggest. As you might have noticed, moving the scrollbar would cause the RadGridView to redraw correctly, so you can apply the following change in the ColumnWidthChanged event:

private void clubsGrid_ColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e)
       {
           var scrollbar = clubsGrid.ChildrenOfType<GridViewScrollViewer>().Where(x => x.Name=="PART_ItemsScrollViewer").FirstOrDefault();
           if (scrollbar != null)
           {
               scrollbar.ScrollToHorizontalOffset(scrollbar.HorizontalOffset + 1);
           }
       }

This will cause the scrollbar to move slightly and limit the glitch to be visible only while your users hold the column splitter.

Regards,
Stefan Nenchev
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Siddalingesh
Top achievements
Rank 1
answered on 01 Dec 2016, 09:03 AM

Hello Stefan Nenchev,

Your given changes will work. But we have problem while Grouping . When we add columns for grouping, header and rows will blow. In the end everything will left white.

0
Stefan Nenchev
Telerik team
answered on 05 Dec 2016, 10:59 AM
Hi Siddalingesh,

Indeed, grouping would be problematic. Unfortunately, this is a limitation in the Silverlight Framework so you will have to come up with some workaround. You can disable the grouping of the RadGridView or consider splitting the content into two separate  controls. I am not familiar with the context of your application but there definitely should be something you can do. For example, you can group the columns according to some viable criteria and present some UI for your users to choose which category to see. This way they can switch the different view of columns.

Regards,
Stefan Nenchev
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
Siddalingesh
Top achievements
Rank 1
Answers by
Siddalingesh
Top achievements
Rank 1
Stefan Nenchev
Telerik team
Share this question
or