Change the CurrentItem using MoveCurrentTo

2 posts, 0 answers
  1. Waleed Seada
    Waleed Seada avatar
    241 posts
    Member since:
    May 2006

    Posted 12 Mar 2011 Link to this post

    Dear All,

    I am using QDSCV collection to get my items for radtreeview.
    I just need to change the currentitem of the collection, so I use GroupItems.MoveCurrentTo(CurrentSelected) but it always return false.

    The CurrentSelected is of entity and is populated with the data. I need to add that the selected item in not at the first level but it is a child of from it. Does this make a problem. How can I locate the item in the collection and then make it the current.

    Best
    Waleed
  2. Waleed Seada
    Waleed Seada avatar
    241 posts
    Member since:
    May 2006

    Posted 12 Mar 2011 Link to this post

    Dear All,

    I have notice that the collection is not searching the nested (sub levels) I have tried this:
    var item = GroupItems.ToList().Where(o => o.id == CurrentSelected.id);
     
    but it return null as well, how can I search the entire collection for specific item using any of it's property

    Appreciate any help
    Waleed
  3. DevCraft banner
Back to Top