Display GridView inside cell

5 posts, 0 answers
  1. Wojciech
    Wojciech avatar
    13 posts
    Member since:
    Sep 2017

    Posted 13 Sep 2018 Link to this post

    Hello,

    Is it possible to display a RadGridView inside a cell? The grid should take data from cell (data will be splitted by columns and rows, not many, just a couple of rows per cell, 3 columns) I was considering examples of custom cells provided but without success. Could I get any clues how to proceed if it is feasible at all, please?

    Thanks

    Wojciech

  2. Dimitar
    Admin
    Dimitar avatar
    2856 posts

    Posted 14 Sep 2018 Link to this post

    Hello Wojciech,

    This is possible by creating a custom cell and adding a grid control by using a RadHostItem. I have attached an example that shows this. 

    This approach is not recommended since it will make the control really heavy. Could please share more information about your desired layout. Perhaps there is another solution that we can suggest.

    I am looking forward to your reply.
     
    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboard 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. Wojciech
    Wojciech avatar
    13 posts
    Member since:
    Sep 2017

    Posted 14 Sep 2018 in reply to Dimitar Link to this post

    Hello Dimitar,

    Thanks for the example - it performs the operation I need, however, what you said about the load the control can cause was my primary fear as my grid can contain up to about 1000 rows which might make it slow.

    What I need to achieve is exposed in attached file.

    I will give a try to the original idea anyway to find out how it works with my data.

    Wojciech

  4. Wojciech
    Wojciech avatar
    13 posts
    Member since:
    Sep 2017

    Posted 14 Sep 2018 in reply to Wojciech Link to this post

    Dimitar,

    I have disabled columns headers, disabled grouping in the example you provided, added 1000 rows and the grid is smoothly scrolled now. Seems like these two options had impact on the control load.

  5. Dimitar
    Admin
    Dimitar avatar
    2856 posts

    Posted 18 Sep 2018 Link to this post

    Hi Wojciech,

    Thanks for sharing this info. I will keep that in mind. 

    Please note that the performance will depend more on the currently visible rows than total rows count. This is because of the UI Virtualization and cell elements will be created only for the currently visible cells. 

    Should you have any other questions do not hesitate to ask.

    Regards,
    Dimitar
    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