Self-Referencing Hierarchy Parent Row Modifications

7 posts, 0 answers
  1. digitall
    digitall avatar
    169 posts
    Member since:
    Jun 2006

    Posted 07 Apr 2009 Link to this post

    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.
  2. digitall
    digitall avatar
    169 posts
    Member since:
    Jun 2006

    Posted 09 Apr 2009 Link to this post

    Any suggestions?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. digitall
    digitall avatar
    169 posts
    Member since:
    Jun 2006

    Posted 11 Apr 2009 Link to this post

    Anyone at all?
  5. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 13 Apr 2009 Link to this post

    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.
  6. digitall
    digitall avatar
    169 posts
    Member since:
    Jun 2006

    Posted 14 Apr 2009 Link to this post

    Do you have a code example? I tried this and couldn't get it to work.
  7. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 17 Apr 2009 Link to this post

    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.
  8. Scott Salyer
    Scott Salyer avatar
    14 posts
    Member since:
    Apr 2009

    Posted 22 Apr 2009 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017