Hi telerik:
How to keep cell's background after girdview sorted?
I try to set the cell's background when the gridview sorted,but the CellInfo's item is null.
Because i need the item to judge i would set the cell's background or not.
Please Help.
How to keep cell's background after girdview sorted?
I try to set the cell's background when the gridview sorted,but the CellInfo's item is null.
Because i need the item to judge i would set the cell's background or not.
Please Help.
5 Answers, 1 is accepted
0
Hello chou,
Maya
the Telerik team
May you provide a bit more details on your exact requirements ? Do you want to keep the selected cell ? If so, you will need to save the cell before sorting and once the grid is sorted, to set it again.
Maya
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

chou
Top achievements
Rank 1
answered on 10 Jun 2011, 04:43 AM
Thanks for your response.
Some cells have backcolor before sorted.
What i need is to keep the cell's backcolor after sorted.
Some cells have backcolor before sorted.
What i need is to keep the cell's backcolor after sorted.
0
Hello chou,
Maya
the Telerik team
I would recommend you to use a CellStyleSelector instead. Thus you will be able to sett the background of the cells you want, but it will not be removed while sorting. You may take a look at our demos and online documentation for further reference.
Maya
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

chou
Top achievements
Rank 1
answered on 10 Jun 2011, 09:45 AM
Hi:
I was thinking about CellStyleSelector.
But the cell's backcolor can be changed in some situations.
I don't know if the CellStyleSelector can feed this
For example:
There is another GridView.When i change the other GridVIewCell's value and this GridViewCell's backcolor should be changed.
If can, could you please provide a demo?
Or anyother way to solve the issue?
thanks.
I was thinking about CellStyleSelector.
But the cell's backcolor can be changed in some situations.
I don't know if the CellStyleSelector can feed this
For example:
There is another GridView.When i change the other GridVIewCell's value and this GridViewCell's backcolor should be changed.
If can, could you please provide a demo?
Or anyother way to solve the issue?
thanks.
0
Hi,
Vlad
the Telerik team
Indeed CellStyleSelector will be re-evaluated when a property value is changed.
All the best,Vlad
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