I'm trying to learn how to use Razor WebGrid in MVC3. How does the ajaxUpdateCallback parameter work?
相关问题
- Entity Framework throws exception - Network Relate
- Slow loading first page - ASP.NET MVC
- TextBoxFor decimal
- How to do an inline style with asp.net mvc 3 razor
- How to access the System.ComponentModel.DataAnnota
相关文章
- “Dynamic operations can only be performed in homog
- Change color of bars depending on value in Highcha
- How to get server path of physical path ?
- Breakpoint in ASP.NET MVC Razor view will not be h
- How to define function that returns html in asp.ne
- How to find the exceptions / errors when TryUpdate
- ASP.Net MVC 3: optgroup support in Html.DropDownLi
- A circular reference was detected while serializin
The ajaxUpdateCallback is the name of the javascript function that will get called after the server call is complete. The title of your question is regarding paging and sorting with the WebGrid which would look something like this...
I have a full example here if you'd like to see it:
Example
The ajaxUpdateCallBack parameter is used to specify the JavaScript function that should be called when the element denoted by the ajaxUpdateContainerId value has been updated as a result of sorting or paging etc. You pass it into the constructor like this:
And it will point to this: