我正在使用MVC2并且有一个telerik弹出窗口,我正在进行搜索,并希望在第二个选项卡中显示搜索结果。
我在第一个标签中有我的搜索表单,在帖子上,我执行搜索并且包含一个包含telerik网格的partialview。 这在Chrome中完美运行,但是当我在IE9中使用它时,它会在一个全新的页面上显示搜索结果。
Ajax.BeginForm("Search", "DataSearch", new AjaxOptions { UpdateTargetId = "pnlSearchResults", OnSuccess = "ShowSearchResults", HttpMethod = "Post", InsertionMode = InsertionMode.Replace, LoadingElementId = "searchingProgess" }))div,pnlSearchResults包含在第二个选项卡中,位于表单之外。
I'm using MVC2 and have a telerik popup window in which I'm doing a search and wanting to display the search results in a second tab.
I have my search form in the first tab, on post, I perform the search and have a partialview containing a telerik grid. This works perfectly in Chrome, but when I give it a go in IE9, it shows the search results on a brand new page.
Ajax.BeginForm("Search", "DataSearch", new AjaxOptions { UpdateTargetId = "pnlSearchResults", OnSuccess = "ShowSearchResults", HttpMethod = "Post", InsertionMode = InsertionMode.Replace, LoadingElementId = "searchingProgess" }))The div, pnlSearchResults is contained in the second tab and is outside of the form.
最满意答案
我相信这与元素在表单内部有关。 我将我的加载div移到了表单之外,重新加载,现在看起来工作得很好。
I believe this had something to do with elements being inside the form. I moved my loading div outside the form, reloaded and it appears to be working just fine now.
更多推荐
发布评论