Refreshing my Grid

3 posts, 1 answers
  1. Andrew
    Andrew avatar
    171 posts
    Member since:
    Jun 2009

    Posted 26 Jun 2011 Link to this post

    I have two gridviews on my page.
    Both are bound to a ViewModel, in the viewmodel i have two 
    QueryableDomainServiceCollectionViews
    The two grid are bound to those.
    I have also a button that voids the records on the first grid. It simply sets a flag to 4 from it's original 1.
    The first grid shows all items that have the flag set to 1 and the second grid to items that have the flag set to 4.
    When i press the button, the item correctly disappears from my grid, however it does not appear in the second grid even though it has the right flag.
    When i click on the second grid and sort it, it does appear.
    How can i make the second grid load it's data when i press the void button.
    I tried using the .Load() command on the
    QueryableDomainServiceCollectionView but it did not appear to do anything at all.

  2. Answer
    Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 27 Jun 2011 Link to this post

    Hi Andrew,

    Unfortunately, we cannot what exactly is going on in your project based solely on your description of the behavior.

    Can you please prepare a small dummy project that demonstrates this and we will immediately take a look at it. We need to have something that we can actually debug.

    Thanks in advance. We are looking forward to hearing from you.

    P.S. By the way, if you are simply changing the property of a data item, grid's will not listen for its PropertyChanged. You have to help them by calling RadGridView.Items.EditItem(dataItem), then change the propererty and then finally call RadGridView.Items.CommitEdit(). Maybe this can help you.

    In case it does not, we will be waiting for your sample project.

    Kind regards,
    Ross
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Andrew
    Andrew avatar
    171 posts
    Member since:
    Jun 2009

    Posted 27 Jun 2011 Link to this post

    Thanks
Back to Top