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

Binding not showing without refresh

3 Answers 72 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Dom
Top achievements
Rank 1
Dom asked on 09 Sep 2011, 02:48 PM
I'm using Ria service for the data,

I load the data with this line :

MainDomainContext.Load(MainDomainContext.GetFoldersByTypeQuery(),

 

LoadBehavior.RefreshCurrent, x => LoadFoldersCompleted(x), null);

and I bind the threeview on this line

 

public

 

 

IEnumerable<FolderDto> Folders

 

{

 

 

get

 

{

 

 

return MainDomainContext.FolderDtos.Where(f => f.IdParent == null);

 

}

}

When i start the program the data doesn't show i need to refresh for it to show.
If I bind on this instead : return MainDomainContext.FolderDtos
It works directly but doesn't show the tree like i want, since it will show all folders even the ones that are children of the root.

Any reason doing this : .Where(f => f.IdParent == null); doesn't refresh or update the data once binding is done?

The treeview is in a docking and data shows if I move treeview into another place in the docks.

Thanks

3 Answers, 1 is accepted

Sort by
0
Dom
Top achievements
Rank 1
answered on 12 Sep 2011, 03:36 PM
anyone?
0
Petar Mladenov
Telerik team
answered on 14 Sep 2011, 01:00 PM
Hi Domingos,

 We want to investigate this issue but we will probably need more from your code. Is it possible for you to open a support ticket and send us a sample ? Don't worry for the data, we will use our DB table. Thank you for your cooperation in advance.

Regards,
Petar Mladenov
the Telerik team

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

0
Dom
Top achievements
Rank 1
answered on 14 Sep 2011, 02:53 PM
Thanks but i found a way to fix it,

just added

OnPropertyChanged(

 

"TreeView"); in the LoadCompleted method.

Thansk again,

Dom

 

Tags
TreeView
Asked by
Dom
Top achievements
Rank 1
Answers by
Dom
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or