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

Adjust height of RadGridView (agendaview) automatically in UI for WinForms

3 Answers 429 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Andre
Top achievements
Rank 1
Andre asked on 25 Apr 2019, 02:21 PM

how i can Adjust height of RadGridView (agendaview) automatically in UI for WinForms

thanks

3 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 26 Apr 2019, 11:12 AM
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.

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
Dess | Tech Support Engineer, Principal
Telerik team
answered on 26 Apr 2019, 12:10 PM
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
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.
Tags
Scheduler and Reminder
Asked by
Andre
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Andre
Top achievements
Rank 1
Share this question
or