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

Row resize?

5 Answers 543 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Iron
Iron
Veteran
Doug asked on 21 Sep 2020, 05:06 PM
Is there a way to allow the user to resize row height? I have a column that could contain a lot of data and I'd like to set the initial row height but allow the user to expand it (in addition to expanding the column width) if they need to see all the text.

5 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 22 Sep 2020, 05:43 AM

Hello Doug,

You can set the RowHeight to the desired pixel value (note that browsers will ignore values lower than what they would have rendered based on the content).

Alternatively, you can use a template and put a <div> element in the cell that will render the desired height and contents.

 

Regards,
Marin Bratanov
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).

0
Doug
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 22 Sep 2020, 01:31 PM
Right, but does that mean it's not possible to have a user-resizable row height, i.e. the user can drag the height of the row bigger or smaller?
-1
Marin Bratanov
Telerik team
answered on 22 Sep 2020, 01:35 PM

Hello Doug,

Yes, a user-draggable row edge is not possible. Each row cannot store its own height for the grid - they are all supposed to be the same (barring any rendering difference the browser does based on the content).

Thus, a feature in the grid would be ambiguous - would it try to resize only the current row and if so - how should it read and store it? Or, would it try to resize all rows - in such a case the user experience will be quite strange with everything in the grid zooming in and out.

Have you seen a grid somewhere in the web do that? Spreadsheet components tend to have such functionality, but they are rather different from a grid in many ways.

 

Regards,
Marin Bratanov
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).

1
Doug
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 22 Sep 2020, 01:41 PM
Looks like a spreadsheet component would work for me but since there's not currently one available for Blazor I'll figure out another way. Thanks for your response.
0
Marin Bratanov
Telerik team
answered on 22 Sep 2020, 01:43 PM

You can Follow its implementation here: https://feedback.telerik.com/blazor/1442151-spreadsheet-component. I've added your Vote to raise its priority. For the time being, you can consider encapsulating the Kendo for jQuery widget as explained there.

 

Regards,
Marin Bratanov
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).

Tags
Grid
Asked by
Doug
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Marin Bratanov
Telerik team
Doug
Top achievements
Rank 1
Iron
Iron
Veteran
Share this question
or