ASP.net的Telerik MVC网格Ajax的结合问题 [英] telerik ASP.net MVC Grid Ajax binding problem

查看:94
本文介绍了ASP.net的Telerik MVC网格Ajax的结合问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用的Telerik ASP.net MVC网格,并找到了问题。

I'm trying to use Telerik ASP.net MVC Grid, and find a problem.

当我在阿贾克斯结合普通视图使用一个网格,它​​工作得很好。然而,当我把电网由Ajax调用加载的局部视图,网格的Ajax绑定不工作,然后。从萤火虫,我觉得Ajax请求获取数据并没有发送到服务器端。

When I use a grid in an ordinary View with Ajax binding, it works well. However, when I put the grid in a partial View that is loaded by an Ajax call, the grid's Ajax binding does not work then. From firebug, I find the ajax request for getting data did not send to server side.

我觉得在计算器一个类似的问题:<一href="http://stackoverflow.com/questions/3115749/telerik-mvc-loading-grid-with-ajax-request-dont-work">Telerik MVC:载入电网与Ajax请求不工作,但没有找到解决办法

I find a similar question in stackoverflow : Telerik MVC: Loading Grid with ajax request don't work. , but don't find solution.

感谢您!

推荐答案

我也有同样的问题,我找到解决办法基本上是由于的Telerik JavaScript文件。

I also have same problem and i find the solution basically it is due to telerik javascript file.

<%: Html.Telerik().ScriptRegistrar().DefaultGroup(group => group.Combined(true).Compress(true)) %>

共付额和粘贴code在母版页身体年底之前,或者如果你没有使用母版页,然后把它的每一个页面,u使用AJAX的的Telerik约束力的。

copay and paste that code In master page before end of the body or if you are not using master page then place it on every page where u use ajax binding of telerik .

这篇关于ASP.net的Telerik MVC网格Ajax的结合问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆