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

[Solved] Behavior of Ajax ActionLink to a Grid as partial view

2 Answers 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
propel studio
Top achievements
Rank 1
propel studio asked on 30 Aug 2010, 11:26 PM

I am using the Q2 2010 released MVC Grid and all basic functionalities are working just fine.


My grid is a user control (.ascx) and loaded with a page (e.g. Index.aspx view of HomeController).
The grid data is binding to a [GridAction] function (e.g.  DataAjax in GridController) as Ajax request (using => dataBinding.Ajax() ).
It works fine when it loads with its resident page (e.g. Index.aspx). The grid refresh button also works fine when I click it.
I can see the refresh links to the Index page path.
 
I place a MVC Ajax ActionLink on the page and link to an update function (e.g. FormatUpdateData in GridController). 
This will reload the grid part on the page as partial view.

When I click the Ajax Actionlink, it jumps to the linked function and reloads the grid as partial view update.
It seems the link and function work fine. Here is the problem:
1) The reloaded grid doesn’t trigger data binding action when it reloaded (Grid with no data)
2) The grid refresh link now changed to link to the Ajax partial view function path /Grid/FormatUpdateData. If clicked the refresh, 
the browser try to go to the path /Grid/FormatUpdateData
 
Are these the design behaviors? 
How can we update grid as a partial view and trigger refresh (data binding action) after partial page loaded?

Thanks,
  

Propel Studio

2 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 31 Aug 2010, 08:03 AM
Hi propel studio,

It looks as if the grid is not initialized properly after the ajax refresh. Please check this help article for more info.

Greetings,
Atanas Korchev
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
propel studio
Top achievements
Rank 1
answered on 31 Aug 2010, 07:12 PM

Thank you, Atanas.

After followed the instruction in help link, everything works like a charm.

Thank you again for your support!

Propel studio

Tags
Grid
Asked by
propel studio
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
propel studio
Top achievements
Rank 1
Share this question
or