如何以编程方式在JqGrid中的特定网格行上触发click事件 [英] How to programmatically fire click event on specific grid row in JqGrid

查看:121
本文介绍了如何以编程方式在JqGrid中的特定网格行上触发click事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个场景,其中有几个jqgrids.单击一个网格中的行将重新加载另一个网格.现在,我需要以编程方式执行此操作.我想在其他事件触发时触发rowclick事件(例如,对话框onclose-什么事件都没有关系).重要的是将网格行号作为参数可用.有什么方法可以做到这一点?

解决方案

您可以使用这个小演示,我为您编写了演示该演示.

I have a scenario where I have several jqgrids. Clicking row in one grid is reloading the other. Now I need to do this programatically. I want to fire rowclick event when some other event fires (for example dialog onclose - it doesn't really matter what event). Important is a have the grid row number as a parameter available. Is there some way to do this?

解决方案

You can use setSelection method to select the row. See the small demo which I wrote for you to demonstrate this.

这篇关于如何以编程方式在JqGrid中的特定网格行上触发click事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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