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

Fixed row

9 Answers 178 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Christie Admin
Top achievements
Rank 1
Christie Admin asked on 27 Jan 2015, 08:22 PM
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

9 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 28 Jan 2015, 08:58 AM
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.

 
0
Christie Admin
Top achievements
Rank 1
answered on 28 Jan 2015, 01:02 PM
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
0
Maya
Telerik team
answered on 28 Jan 2015, 01:56 PM
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.

 
0
Christie Admin
Top achievements
Rank 1
answered on 28 Jan 2015, 01:59 PM
Hi Maya,

can we do this scenario with another control???

Thank's
Alain
0
Maya
Telerik team
answered on 28 Jan 2015, 02:08 PM
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.

 
0
Christie Admin
Top achievements
Rank 1
answered on 28 Jan 2015, 02:14 PM
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
0
Maya
Telerik team
answered on 28 Jan 2015, 03:07 PM
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.

 
0
Christie Admin
Top achievements
Rank 1
answered on 28 Jan 2015, 03:09 PM
Hi Maya,

is it working in .Net 3.5???

Thank's
Alain
0
Maya
Telerik team
answered on 29 Jan 2015, 09:42 AM
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.

 
Tags
GridView
Asked by
Christie Admin
Top achievements
Rank 1
Answers by
Maya
Telerik team
Christie Admin
Top achievements
Rank 1
Share this question
or