Binding not showing without refresh

4 posts, 0 answers
  1. Dom
    Dom avatar
    18 posts
    Member since:
    May 2011

    Posted 09 Sep 2011 Link to this post

    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

  2. Dom
    Dom avatar
    18 posts
    Member since:
    May 2011

    Posted 12 Sep 2011 Link to this post

    anyone?
  3. DevCraft banner
  4. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 14 Sep 2011 Link to this post

    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 >>

  5. Dom
    Dom avatar
    18 posts
    Member since:
    May 2011

    Posted 14 Sep 2011 Link to this post

    Thanks but i found a way to fix it,

    just added

    OnPropertyChanged(

     

    "TreeView"); in the LoadCompleted method.

    Thansk again,

    Dom

     

Back to Top