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

Resize row height?

11 Answers 160 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Geoff Marsh
Top achievements
Rank 1
Geoff Marsh asked on 20 Jul 2010, 11:27 AM
Hi,

How can I enable the end user to be able to resize row heights?

Thanks,
Geoff.

11 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 20 Jul 2010, 12:10 PM
Hello Geoff Marsh,

Do you have in mind dynamic (runtime) row resize of simply the ability to change the height of the rows before the grid is loaded? If you are dealing with the latter case you can use the RowHeight property of RadGridView. Unfortunately the first case is not recommended since it can interfere with our virtualization mechanism.


Kind regards,
Milan
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
Brian
Top achievements
Rank 1
answered on 16 May 2011, 10:20 PM
Hello
  How do i allow user to resize the rows? The user should be able to resize the row just like he can do with the columns. 
Please let me know.
0
Vlad
Telerik team
answered on 17 May 2011, 06:19 AM
Hello,

 Runtime rows resizing is not supported currently. Indeed we have plans to provide this however we cannot commit to any specific date. 

Greetings,
Vlad
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
Maulik Patel
Top achievements
Rank 1
answered on 02 Nov 2011, 12:30 PM
Hello Vlad,

Is the feature (of Resizing the Row of GridView runtime by user) supported in recent release?

Regards,
Maulik
0
Vlad
Telerik team
answered on 02 Nov 2011, 12:50 PM
Hi,

 Indeed this feature will be available official with our Q3 2011 (middle of November). You can check our Q3 2011 Beta demo for more info:
http://demos.telerik.com/silverlight/beta/#GridView/RowResizing

Best wishes,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Maulik Patel
Top achievements
Rank 1
answered on 02 Nov 2011, 01:03 PM
Thanks for the instant turn around. The feature looks cool. A quick question, is there any event/way where we can get the new size of the row (after resized)?

Thanks,
Maulik
0
Vlad
Telerik team
answered on 07 Nov 2011, 09:02 AM
Hi Maulik,

 Indeed you will be able to handle both RowResizing (can be canceled) and RowResized for the official release next week.

Regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Maulik Patel
Top achievements
Rank 1
answered on 02 Dec 2011, 09:50 AM
Hi Vlad,

Thanks for the information. I have used the events that you mentioned and I can see it is helpful. But I need something different also. When a user resizes any row, I want to change the size of all rows based on the last resized height (so all rows in grid have similar height). For that, I am setting up "RowHeight" property of RadGridView in RowResized event handler. This works fine (all rows are updated with the same resize height).

Now the problem is, once the RowHeight is set (for example, it is set to 100), I cannot decrease the size of row (it is not allowing me to reduce the height less than 100). It looks like, it internally sets the minimum height of the row. Whereas I want the functionality of allwoing user to change the size (either increase or decrease at any time). Is there any way to achieve it?

One more thing, the last row of the grid is not letting us to increase the height. Is it something expected behavior or something wrong with my code?

Regards,
Maulik 
0
Vlad
Telerik team
answered on 07 Dec 2011, 08:58 AM
Hi Maulik,

 You are right about the last row - we will look on how to improve this in the future versions. I'm afraid however that your first requirement is not possible currently. Generally it will be better to use implicit style to achieve your goal however even this will be very fragile and slow since all rows should be invalidated - still here is an example:

XAML

<telerik:RadGridView CanUserResizeRows="True"
   ItemsSource="{Binding View}"
   RowResizing="RadGridView1_RowResizing"/>

C#
private void RadGridView1_RowResizing(object sender, Telerik.Windows.Controls.GridView.RowResizingEventArgs e)
{
    var grid = ((RadGridView)sender);
 
    grid.Resources.Clear();
 
    var s = new Style(typeof(GridViewRow));
    s.Setters.Add(new Setter(GridViewRow.HeightProperty, e.Height));
 
    grid.Resources.Add(typeof(GridViewRow), s);
}
 

Greetings,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Thomas Mittag
Top achievements
Rank 1
answered on 25 May 2018, 04:25 PM

Has there been any update on the last row resizing issue? It does not appear to be resolved as of version 2017 Q3.

0
Vladimir Stoyanov
Telerik team
answered on 30 May 2018, 10:29 AM
Hello Thomas,

Currently there isn't any update with regards to that issue. You can follow the item in our feedback portal: GridView: When CanUserResizeRows property is True the last row is not resizable. This way you will be notified whenever there are any updates. 

Regards,
Vladimir Stoyanov
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
Geoff Marsh
Top achievements
Rank 1
Answers by
Milan
Telerik team
Brian
Top achievements
Rank 1
Vlad
Telerik team
Maulik Patel
Top achievements
Rank 1
Thomas Mittag
Top achievements
Rank 1
Vladimir Stoyanov
Telerik team
Share this question
or