Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
435
Problem with filtrviewmodel
posted

Hi

I declare private variable 

private IFilterViewModel filterViewModelTreeHotel;

Then i create my FIlterView on LoadDimensionsCompleted of my adomdDataSource

...

this.filterViewModelTreeHotel = this.adomdDataSourceVyber.CreateFilterViewModel(herarchy);

this.filterViewModelTreeHotel.LoadFilterMembersCompleted += new EventHandler<AsyncCompletedEventArgs>(fvm_LoadFilterMembersCompletedTreeHotely);

this.filterViewModelTreeHotel.LoadFilterMembersAsync();

This filtrView i Use as ItemSource for my TreeView

private void fvm_LoadFilterMembersCompletedTreeHotely(object sender, AsyncCompletedEventArgs e)

{

this.myTreeView.ItemsSource = this.filterViewModelTreeHotel.FilterMembers;

}

1. Question Why method fvm_LoadFilterMembersCompletedTreeHotely fired twice?

Now i have some logic on TreeView and setting IsSelected and IsEpanded property of FilterMember in FilterMembers collection.

Then I create another AdomdDataSource and use his.filterViewModelTreeHotel for columns

AdomdDataSource adomdDataSourceData = new AdomdDataSource();

...

adomdDataSourceData.Rows.Add(this.filterViewModelTreeHotel);

When data is Loaded, my TreeView is Empty! my collection in this.filterViewModelTreeHotel.FilterMembers[0].FilterMembers is empty ! Why?

But in adomdDataSourceData.Rows[0].FilterMembers[0].FilterMembers is everithing ok.

Parents
No Data
Reply
  • 7305
    Suggested Answer
    posted

    Hello,

    This information is not adequate for me to identify the issue or reserach the problem. Can you provide me with a small sample that demonstrates the issue, so I am able to investigate it further?

    Thank you,
    Sam

Children
No Data