how i can Adjust height of RadGridView (agendaview) automatically in UI for WinForms
thanks
3 Answers, 1 is accepted
0
Hello, Andre,
Agenda view in RadScheduler uses a RadGridView for data visualization. The illustrated element in the screenshot actually represents a single row in the grid. You can control the height of the data rows by the RadGridView.TableElement.RowHeight property. Note that the grid is stretched to fill the entire space of the scheduler. However, if not enough rows are available in the view, an empty space will be available below the last row. You can adjust the RowHeight considering the total number of data rows and grid's size.
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Agenda view in RadScheduler uses a RadGridView for data visualization. The illustrated element in the screenshot actually represents a single row in the grid. You can control the height of the data rows by the RadGridView.TableElement.RowHeight property. Note that the grid is stretched to fill the entire space of the scheduler. However, if not enough rows are available in the view, an empty space will be available below the last row. You can adjust the RowHeight considering the total number of data rows and grid's size.
this
.radScheduler1.ActiveViewType = SchedulerViewType.Agenda;
SchedulerAgendaViewElement agendaViewElement =
this
.radScheduler1.SchedulerElement.ViewElement
as
SchedulerAgendaViewElement;
RadGridView agendaGrid = agendaViewElement.Grid;
agendaGrid.TableElement.RowHeight = 60;
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Andre
Top achievements
Rank 1
answered on 26 Apr 2019, 11:22 AM
hi dess
thank you very much for your help !
that is, there is no setting that automatically adjusts the height of the line based on its content ?
andre
0
Accepted
Hello, Andre,
RadGridView is not actually designed to allow stretching its rows vertically to fill the table element's space. You can either auto-size the rows according to their content or specify a fixed size. Any other behavior needs to be implemented according to the specific custom requirement.
Should you have further questions please let me know.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
RadGridView is not actually designed to allow stretching its rows vertically to fill the table element's space. You can either auto-size the rows according to their content or specify a fixed size. Any other behavior needs to be implemented according to the specific custom requirement.
Should you have further questions please let me know.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.