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

Self-Referencing Hierarchy Parent Row Modifications

6 Answers 81 Views
Grid
This is a migrated thread and some comments may be shown as answers.
digitall
Top achievements
Rank 1
digitall asked on 07 Apr 2009, 06:28 PM
I have a self referencing hierarchy that currently goes three levels deep (could be more in the future though). Whenever a specific column ("override") is equal to true the row highlights to a new background color to make it stand out. What I need is for the parent row(s) (all the way up to the top view) to also highlight should a child record have that value set to true as well. This is so the end user knows either the row itself is overridden or a child entry is overridden.

Suggestions?

Edit: I forgot to mention that I have tried using the "HideExpandColumnRecursive" function to do this, the DetailTableBinding event, and looping through the grid items (to expose NestedTableViews) but it seems like any object that can access the data in the cell can't talk to its parent or vice versa.

6 Answers, 1 is accepted

Sort by
0
digitall
Top achievements
Rank 1
answered on 09 Apr 2009, 02:34 PM
Any suggestions?
0
digitall
Top achievements
Rank 1
answered on 11 Apr 2009, 07:49 PM
Anyone at all?
0
Yavor
Telerik team
answered on 13 Apr 2009, 07:36 AM
Hello,

You can access the nested table view directly, for any item, and then access the Parent item, to get a reference to the parent items and style them. Give this suggestion a try and let me know how it goes and if any other questions arise.

Regards,
Yavor
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
digitall
Top achievements
Rank 1
answered on 14 Apr 2009, 12:26 PM
Do you have a code example? I tried this and couldn't get it to work.
0
Yavor
Telerik team
answered on 17 Apr 2009, 07:48 AM
Hi digitall,

Attached to this message, is a small application, which handles a similar task.
I hope it helps.

Kind regards,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Scott Salyer
Top achievements
Rank 1
answered on 22 Apr 2009, 10:36 PM
Yavor- that was perfect, thanks!! Sorry it took so long to reply. It's been quite busy at my office and this one fell through the cracks.
Tags
Grid
Asked by
digitall
Top achievements
Rank 1
Answers by
digitall
Top achievements
Rank 1
Yavor
Telerik team
Scott Salyer
Top achievements
Rank 1
Share this question
or