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

Grid rebinding/updating doesn't work

1 Answer 40 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gilbert van Veen
Top achievements
Rank 1
Gilbert van Veen asked on 26 Nov 2010, 10:10 AM
Hi,
 I have a strange problem with the Telerik GridView. The code below worked fine until I installed the Q3 release:

var MyBadgeWindow = sender as Bad_EditWindow;
                  if (MyBadgeWindow.DialogResult == true)
                  {
                      foreach (Badges UpdateBadge in _BadgeList)
                      {
                          if (UpdateBadge.EntityBadgeId == MyBadgeWindow.Bad_Selected.EntityBadgeId)
                          {
                              UpdateBadge.EntityId = MyBadgeWindow.Bad_Selected.EntityId;
                              UpdateBadge.BadgeId = MyBadgeWindow.Bad_Selected.BadgeId;
                              UpdateBadge.Number = ((GaSuite.Web.ga_badge)MyBadgeWindow.Bad_BadgeId.SelectedItem).Number;
                              UpdateBadge.State = (byte)MyBadgeWindow.Bad_Selected.State;
                              UpdateBadge.ValidFrom = MyBadgeWindow.Bad_Selected.ValidFrom;
                              UpdateBadge.ValidTill = MyBadgeWindow.Bad_Selected.ValidTill;
                              UpdateBadge.IsVisitorBadge = MyBadgeWindow.Bad_Selected.IsVisitorBadge;
                          }
                      }
                      this.Bad_Grid.Rebind();

For some reason the grid's data isn't updated according the values in the list.

When I open my screen I set the grid as follows:

Bad_Grid.ItemsSource = _BadgeList;


When a user double clicks at a row then I open a new window where the user can make the changes. When the user presses OK the code (see code above) is executed. When I check the list I can see that the _Badgelist values are ok but for some reason the grid isn't updated? This worked before I installed the Q3 release.

Some ideas?

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 30 Nov 2010, 01:39 PM
Hi Gilbert van Veen,

I was unable to reproduce this issue. Could you please send us a sample project that illustrates the problem?


Best wishes,
Milan
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
GridView
Asked by
Gilbert van Veen
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or