ASP.net MVC中同一视图/页面上的多个JqGrids

时间:2022-07-28 16:49:20

This is NOT a Master/Detail question.

这不是主/细节问题。

I am using ASP.Net MVC and trying to display several jqGrids on the same page from different data sources in a tabbed interface.

我正在使用ASP.Net MVC并尝试在选项卡式界面中从不同数据源在同一页面上显示多个jqGrids。

However, when the page loads each jqGrid has the layout and data for the last jqGrid that is defined on the page. Is it possible to have two unrelated jqGrids on the same view/page?

但是,当页面加载时,每个jqGrid都具有页面上定义的最后一个jqGrid的布局和数据。是否可以在同一视图/页面上有两个不相关的jqGrids?

When I load each jqGrid separately, the data displays in each one, as it should. However, when loading all at once, it does what I said earlier.

当我分别加载每个jqGrid时,数据显示在每个jqGrid中。但是,当一次加载时,它就像我之前说的那样。

1 个解决方案

#1


1  

This should be possible. What do you mean by "load separately" - how do you load "not separately"? Can you show a bit of code? Do you use different IDs for corresponding grid's HTML elements?

这应该是可能的。 “单独加载”是什么意思 - 如何加载“不单独”?你能展示一些代码吗?您是否对相应网格的HTML元素使用不同的ID?

#1


1  

This should be possible. What do you mean by "load separately" - how do you load "not separately"? Can you show a bit of code? Do you use different IDs for corresponding grid's HTML elements?

这应该是可能的。 “单独加载”是什么意思 - 如何加载“不单独”?你能展示一些代码吗?您是否对相应网格的HTML元素使用不同的ID?