Fixed row

10 posts, 0 answers
  1. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 27 Jan 2015 Link to this post

    Hi,

    in a medical context, I use a GridView to display on the first row the current exam data of the patient and on the others rows, the historicals exams data. When the user scroll through the historical, I need to have always the current exam visible on the first row. How it's possible???

    Thank's
    Alain
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 28 Jan 2015 Link to this post

    Hi Alain,

    Currently, such functionality is not supported. The thing is that all rows are in a single ScrollViewer and are arranged one below the other. Thus there is no way to scroll only a particular set of rows and not the one above it. 


    Regards,
    Maya
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 28 Jan 2015 in reply to Maya Link to this post

    Hi Maya,

    do we have the flexibility to move a row at other position??? If so, probably I can catch the scroll of the RadGridView and ensure that my row is always visible?!?

    Thank's
    Alain
  4. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 28 Jan 2015 Link to this post

    Hi Alain,

    RadGridView is a virtualized control and as such, its visual elements are recycled and reused on scrolling. You cannot get one instance of GridViewRow and place it in a different place. The only thing is to control the order of the items in which they are displayed in the grid. 
    One possible way to go is to created pinned rows as illustrated in the "Frozen / Pinned rows in RadGridView for Silverlight" blog post. However, please keep in mind that this is just a showcase on how to do something and it is not something we support internally. 

    Regards,
    Maya
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  5. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 28 Jan 2015 in reply to Maya Link to this post

    Hi Maya,

    can we do this scenario with another control???

    Thank's
    Alain
  6. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 28 Jan 2015 Link to this post

    Hi,

    There is no control that can support such functionality out-of-the-box. One thing that come to our mind is, if appropriate for your case, display your historical data in a hierarchy and have an external RowDetailsPresenter that will stay below/above the grid and have the current item displayed. 
    Will that work for your case ? 

    Regards,
    Maya
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  7. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 28 Jan 2015 in reply to Maya Link to this post

    Hi Maya,

    the pin row feature is more closer from what I'm trying to achieve :) I would like to know if it's possible to programmatically pin a row???

    Thank's
    Alain
  8. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 28 Jan 2015 Link to this post

    Hello Alain,

    The idea in the blog post is that the items that are pinned are removed from the Items of the grid and placed inside the other scrollViewer. You can check out the code in FrozenRowsBehavior class for further reference. 

    Regards,
    Maya
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  9. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 28 Jan 2015 in reply to Maya Link to this post

    Hi Maya,

    is it working in .Net 3.5???

    Thank's
    Alain
  10. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 29 Jan 2015 Link to this post

    Hello Alain,

    I believe there is nothing specific about .Net 4.0 or 4.5. But please keep in mind that we discontinued the support of .Net 3.5.

    Regards,
    Maya
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top