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

Change the CurrentItem using MoveCurrentTo

1 Answer 37 Views
DomainDataSource
This is a migrated thread and some comments may be shown as answers.
Waleed Seada
Top achievements
Rank 2
Waleed Seada asked on 12 Mar 2011, 05:57 PM
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

1 Answer, 1 is accepted

Sort by
0
Waleed Seada
Top achievements
Rank 2
answered on 12 Mar 2011, 10:51 PM
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
Tags
DomainDataSource
Asked by
Waleed Seada
Top achievements
Rank 2
Answers by
Waleed Seada
Top achievements
Rank 2
Share this question
or