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

Do we have any Grid.Rows object available in RadGrdiView?

4 Answers 97 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sumati
Top achievements
Rank 1
Sumati asked on 22 Jun 2010, 10:03 AM
I need a Grid.Rows object in a method to change the back color on condition basis. How can get any such object?

ItemContainerGenerator.ContainerFromItem

will return null for some of the rows and will not work always

4 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 22 Jun 2010, 10:05 AM
Hello Sumati,

Plese have a look at this online example.

All the best,
Pavel Pavlov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Sumati
Top achievements
Rank 1
answered on 22 Jun 2010, 10:08 AM
I missed one point in my previous post.
I am making use of Telerik RadGridView, Silverlight 3.

Your example requires me to install a new version.
0
Pavel Pavlov
Telerik team
answered on 22 Jun 2010, 12:56 PM
Hello Sumati,

For your scenario I would recommend to use the RowStyleSelector property of RadGridView. It is designed to ease conditional formatting requirements as yours. I am afraid we do not have SL 3 online demo for it , so I will gladly provide assistance if needed.

Best wishes,
Pavel Pavlov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Sumati
Top achievements
Rank 1
answered on 23 Jun 2010, 06:02 AM
Thanks for your help. Issue fixed. I applied:

EnableRowVirtualization

 

="False" EnableColumnVirtualization="False"

 



for my grid in *.xaml file and containerItem will be not null if row exists
Tags
GridView
Asked by
Sumati
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Sumati
Top achievements
Rank 1
Share this question
or