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

Refreah grid instead of page

3 Answers 96 Views
Grid
This is a migrated thread and some comments may be shown as answers.
L
Top achievements
Rank 1
L asked on 01 May 2008, 04:57 AM
i have this code that refresh the whole page:

Protected Sub btnRefresh_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnRefresh.Click

Response.Redirect(Page.Request.Url.ToString())

End Sub

I have a dropdownlist that display category and that if I select Toys category from the Dropdownlist it display the products in Toys category in the RADGrid. I would then update the product info thru a RADWindow and then close the RADwindow. At this point, i would click the refresh button to verify the updated info. But whenever I clicked the refresh button it refeshes the page and would bring me to Fruits category.  Fruits category is the default vaue in the SQLDataSource.

How do i refresh only the grid and that the Toys category remain?

3 Answers, 1 is accepted

Sort by
0
Accepted
Konstantin Petkov
Telerik team
answered on 01 May 2008, 08:13 AM
Hello Lui,

Unfortunately I'm unable to follow your scenario. About the Grid records editing in RadWindow though, I'd suggest you review the following integration demo, which updates the Grid through an AJAX request when the record is edited:

http://www.telerik.com/demos/aspnet/prometheus/Controls/Examples/Integration/GridAndWindow/DefaultCS.aspx?product=grid

I hope this helps!

Regards,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
L
Top achievements
Rank 1
answered on 02 May 2008, 05:14 AM
hi

This link http://www.telerik.com/demos/aspnet/prometheus/Controls/Examples/Integration/GridAndWindow/DefaultCS.aspx?product=grid provided almost what i want. But for my case, i do not have paging navigation. Mine is filter through a dropdownlist control. As the demo shown, when i navigate to page 2  and update a record there, it refeshes to show the updated record and it still remain at page 2.

So, for my purpose, when i filter by let say by Toys category, and update a record in that category, I want to be able to refresh by clicking a refresh button and at the same time the Toys category remain. How do I do that? Thanks
0
L
Top achievements
Rank 1
answered on 05 May 2008, 01:28 AM
hi

I have found the solution. Thanks
Tags
Grid
Asked by
L
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
L
Top achievements
Rank 1
Share this question
or