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

RowStyleSelector CellStyleSelector - not to change style

1 Answer 84 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ifdev02
Top achievements
Rank 1
Ifdev02 asked on 07 Jun 2012, 07:05 PM
How can i during StyleSelector event either cancel not to change style or send the current style back to grid?

I have encountered a difficult situation where. 

1 - When I applied AlternateRowBackground the ulternate row will not be overide by styleselector - so i made custom alternaterow from style selector
2- more bad news is that styleselector will not use style base on custom global style so all colors and the disable of mouseover event will just show again when use styleselector.

3- if i set style global with x:key and set it in styleselector ... in realtime text just symply disappear.
4- so my idea is that if I could keep the style the way it is , i can change property with storyboard or something and still reserve the correct style, this will do the job? 

5- if I return Null as example it will get yet another style from somewhere and not the current style.

So in all it is very difficult to manipulate color events with radgridview in realtime data?


1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 12 Jun 2012, 10:13 AM
Hi Joe,

Indeed, alternate row background will be overridden by style set through cell style selector. What you can try is to implement the logic inside your SelecteStyle method and return the required style based on the position of the item in Items collection. However, the most appropriate implementation depends entirely on your exact requirements and scenario.

Kind regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

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