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

refresh grid using script with NeedDataSource

1 Answer 94 Views
Grid
This is a migrated thread and some comments may be shown as answers.
William
Top achievements
Rank 1
William asked on 30 Sep 2011, 04:17 PM
How can I refresh a grid using script when I'm using a RadGrid1_NeedDataSource?  I've tried most of all of the sugestions in the forum but nothing seems to work.  I have a time stamp column in my datasource so I can tell when it was last updated.
My last attempt was
function refreshGrid()
{
 $find("<%= RadGrid1.ClientID %>").get_masterTableView().rebind(); 
}

Update information.  I'm using a usercontrol in DotNetNuke6.  I've researched and it seems  that its mostly an issue with the radAjaxManager.  I'm still haveing problems with putting the manager on the parent page programmatically from the user control.  I'm using

Dim manager As New RadAjaxManager()

manager.ID = "RadAjaxManager1"
Me
.Page.Form.Controls.Add(manager)
But I don't think it is getting registered.  If I can't get this last part to work I'm going to have to redo the entire structure.

As a hack work around a put a page refresh in the function OnClientClose

window.location.reload(true);
It's not very smooth but gets the job done for now.  Is there a better way?

Added information: I'm moving this question over to the Ajax forum since it more of an issue with the RadAjaxManager than with the RadGrid.  Sorry for the post but I did not see a way to delete.

 

Thanks

 

 

 

 

 

 

 

 

 

 


1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 03 Oct 2011, 05:00 AM
Hi William,

Find our answer in the other thread you have open on the same subject.

Kind regards,
Iana Tsolova
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
William
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or