How can I enable the end user to be able to resize row heights?
Thanks,
Geoff.
11 Answers, 1 is accepted
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
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.
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
Is the feature (of Resizing the Row of GridView runtime by user) supported in recent release?
Regards,
Maulik
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
Vlad
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Thanks,
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 >>
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
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 >>
Has there been any update on the last row resizing issue? It does not appear to be resolved as of version 2017 Q3.
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