Autosize rows

5 posts, 0 answers
  1. ISB-developer
    ISB-developer avatar
    21 posts
    Member since:
    Jul 2011

    Posted 06 Sep 2011 Link to this post

    Hello
    I have a question. Is it possible to autosize rows but not only the viewable part but the entire row?
    For example I have a GridView with 45 columns but I can see in one time only part of all columns.
    And if I scroll left/right I see how the rows are autosized. but I would like to have all the rows autosized from the begining.
    can you help me?
  2. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 08 Sep 2011 Link to this post

    Hello,

    Could you please try to provide an example on this scenario and what you are trying to accomplish?

    Best Regards,
    Emanuel Varga
  3. UI for WinForms is Visual Studio 2017 Ready
  4. ISB-developer
    ISB-developer avatar
    21 posts
    Member since:
    Jul 2011

    Posted 08 Sep 2011 Link to this post

    Hi again
    I have attached two files.
    I one I am with the horizontal scroller on the left side. You can see the selected rod that has a specific width.
    See print_screen_1
    If I scroll a litle through right I will have a different width for the same selected row.
    See print_screen_2

    So I would like to have an aoutosize for row in gridview for the entire row, not only for visible part of the row
  5. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 08 Sep 2011 Link to this post

    Hello again,

    I will try this scenario and get back to you

    Best Regards,
    Emanuel Varga

    //(off topic & off language: (salutari din ro :P)//
  6. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 08 Sep 2011 Link to this post

    Hello Isb-Developer,

    Thank you for this question.

    RadGridView uses virtualization for its visual elements and they are created when requested. Only cells that are currently visible can have visual elements and when scrolling they are reused. Because of the virtualization it is not possible to calculate the height for cells that are not visible. However, this feature seems reasonable and will consider implementing it in a future version. I added it as a feature request in our issue tracking system and I updated your Telerik points accordingly.

    Should you have any other questions, do not hesitate to ask.
     
    All the best,
    Jack
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top
UI for WinForms is Visual Studio 2017 Ready