确定在客户端的 DevExpress Pagecontrol 中单击了哪个选项卡
使用 DevExpress ASPXTabControl,如何确定使用 Javascript 单击了哪个选项卡客户端。
我有多个选项卡,每个选项卡都包含一个加载数据的回调面板。这一切都有效,但是当单击任何选项卡时,所有数据都会加载。
我想确定单击了哪个选项卡,并且仅确定相关回调面板上的 PerformCallback。
Using the DevExpress ASPXTabControl, How do i determine which Tab has been clicked with Javascript on Client Side.
I've got multiple tabs, each containing a callback panels which loads data. This is all working however when any tab is clicked all data is loaded.
I'd like to determine which tab was clicked and only PerformCallback on the related callbackpanel.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我了解,当 CallbackPanel 驻留在 TabPage 内时,您就会有一个布局。如果是这样,您的任务可以使用以下方法来实现:
1) 设置每个 ASPxCallbackPanel 的 ClientInstanceName 属性,如下所示:
"callBackPanel_" + Tab.Index.ToString();
即,每个 CallbackPanel 的 ClientInstanceName 取决于它所在的选项卡。
2) 处理 ASPxPageControl 的 ActiveTabChanged 客户端事件,如下所示:
另外,我建议您查看 如何在回调中创建和加载活动选项卡的内容
As far as I understand, you have a layout when a CallbackPanel is residing inside a TabPage. If so, your task can be implemented using the following approach:
1) set the ClientInstanceName property of every ASPxCallbackPanel as follows:
"callBackPanel_" + Tab.Index.ToString();
I.e. the ClientInstanceName of every CallbackPanel depends upon the tab it is residing in.
2) handle the ASPxPageControl's ActiveTabChanged client side event as shown below:
Also, I suggest that you take a look at the How to create and load an active tab's content on a callback
为 AspxpageControl 编写 ClientSideEvent,
这将在第一次单击每个选项卡时加载数据,之后选项卡模式将处于客户端模式
Write ClientSideEvent for AspxpageControl
this will load data on each tab when it is click for first time and after that Tab mode will on client Mode