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

how to refreshing radgrid?

3 Answers 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
adrian
Top achievements
Rank 1
adrian asked on 02 Jul 2010, 10:37 PM

Hi, I have a radStripTab with 3 tabs, each tab has a radgrid. When I change a register status (have a column button to do this) on the first radgrid the register should disappear from the first radgrid and should be shown on the second radgrid -that is on the second tab- 

In my NeedDataSource method I refresh the datasource for both of the radgrids, the problem is that only the first radgrid refreshes when I change tabs the second radgrid doesn't have the latest data. 

This procress applies also for the second and third radgrids, and the issue happens, when I make a change on the second radgrid the change is shown but you wont se the updated data on the third one. So the rebind is only working on the radgrid where you make the change and I need it to refresh the three radgrids.

Any idea on what should  I do? Thanks

Protected Sub RadGrid_NeedDataSource(ByVal source As ObjectByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource, RadGrid2.NeedDataSource, RadGrid3.NeedDataSource  
 
        Dim wsNC As New webService  
 
        RadGrid1.DataSource = wsNC.searchByStatus("0")  
        RadGrid2.DataSource = wsNC.searchByStatus("A")  
        RadGrid3.DataSource = wsNC.searchByStatus("R")  
End Sub 

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 07 Jul 2010, 09:25 AM
Hello adrian,

Is the setup ajaxified? If this is the case, improper ajax settings may be causing this behavior - you can temporarily disable ajax to verify this. In any case, calling RadGrid.Rebind() should refresh the content(s) of the control.
If the problem persists, you can open a formal support ticket, and send us a small working project, demonstrating your setup, and showing the unwanted behavior, for additional review and testing.

Greetings,
Yavor
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
0
Cliff Gibson
Top achievements
Rank 1
answered on 22 Jul 2010, 04:37 PM
I'm having a very similar problem.

I've got a page layout using raddocks, with a slider control in one dock and a grid in the second dock.

I use a dock custom command to save the value of the slider which in turn enters the relevant number of rows into a table.  The grid is then rebound and even thought the datatable I'm binding to in the rebind event is returning the extra rows the grid is not displaying them.

I have dock zone 1 updating the grid in dock zone 2 using the ajax manager...and the loading panel is displaying for the the grid.

I'm using the 2010.1.519 build.

Regards
Cliff
0
Maria Ilieva
Telerik team
answered on 28 Jul 2010, 09:15 AM
Hello,

Could you please elaborate a bit more on your application? Does the scenario works as expected if the Ajax is disabled on the page? If it is convenient for you please open a regular support ticket and send us runnable application which demonstrates the issue. We will test it locally and advise you further.

Sincerely yours,
Maria Ilieva
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
Tags
Grid
Asked by
adrian
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Cliff Gibson
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or