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

4 posts, 1 answers
  1. Andre
    Andre avatar
    41 posts
    Member since:
    Feb 2018

    Posted 25 Apr Link to this post

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

    thanks

  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3451 posts

    Posted 26 Apr Link to this post

    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.
  3. Andre
    Andre avatar
    41 posts
    Member since:
    Feb 2018

    Posted 26 Apr in reply to Dess | Tech Support Engineer, Sr. Link to this post

    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

  4. Answer
    Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3451 posts

    Posted 26 Apr Link to this post

    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.
Back to Top