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

[Solved] Grid auto refresh

2 Answers 160 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mallikarjun
Top achievements
Rank 1
Mallikarjun asked on 31 Oct 2011, 08:34 AM
Hi,

I need to refresh the grid automatically Below are some of my scenarios where i want to refresh the grid. Please let me know how can i achieve this.
  1. Icon to refresh the grid records. This Icon can be just below/Top the grid.
  2. On double click of the item in the grid, i have a popup/childwindow which displays the record details. If the user modifies/deletes the record, then it should be refreshed in the grid.
  3. On double click of the item in the grid, i open a separate silverlight application to show the record details. If the user modifies/deletes the record, then it should be refreshed in the grid.



Thanks,
Mallikarjun

2 Answers, 1 is accepted

Sort by
0
Mallikarjun
Top achievements
Rank 1
answered on 01 Nov 2011, 11:31 AM
Hi,

Can anyone help me with the below requirements.

Thanks in Advance
0
Pavel Pavlov
Telerik team
answered on 01 Nov 2011, 02:02 PM
Hi Mallikarjun,

This should be fairly easy . All you need to do is to make sure your ItemsSource implements the INotifyCollectionChanged interface ( System.Collections.Specialized namespace) .

In case your source collection does not implement this interface the only way to force RadGridView to update the UI and refresh the items with the fresh ItemsSource is to call the Rebind() method.

Greetings,
Pavel Pavlov
the Telerik team

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

Tags
GridView
Asked by
Mallikarjun
Top achievements
Rank 1
Answers by
Mallikarjun
Top achievements
Rank 1
Pavel Pavlov
Telerik team
Share this question
or