最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to programmatically fire click event on specific grid row in JqGrid - Stack Overflow

programmeradmin4浏览0评论

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?

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?

Share Improve this question edited Dec 8, 2017 at 17:31 Cœur 38.8k26 gold badges205 silver badges277 bronze badges asked Jan 26, 2011 at 9:45 EduardEduard 3,2163 gold badges23 silver badges31 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 5

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

发布评论

评论列表(0)

  1. 暂无评论