行上的Jqgrid中的上下文菜单单击Jqgrid中的 [英] Context Menu in Jqgrid on Row Click in Jqgrid

查看:81
本文介绍了行上的Jqgrid中的上下文菜单单击Jqgrid中的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp.net上使用Jqgrid 3.6 beta版,我想在行选择上添加动态上下文菜单.当用户右键单击jqgrid中的一行时,他想查看一些菜单,例如文件,编辑和其他菜单.我已经完成了单页的使用,即jqgrid及其父代(JS文件)都在单页中.但是在我的主应用程序中,我有一个母版页,其中不能定义所有JS和内容的单独页(Jqgrid).因此,发生的情况是在单页应用程序中运行的同一代码在主详细信息页面中无法正常工作.任何人都可以帮我解决这个问题

I am using Jqgrid 3.6 beta version with asp.net and i wanna add dynamic context menu on row selection.When ever user rightclick a row in jqgrid he wants to see some menu like file,edit and other menus. I have completed using single page i.e. both the jqgrid and its parent(JS files) are in single page . But in my main Application I have one master page in which ill define all the JS and seperate page for the content(Jqgrid). So what happens is the same code which is running in single page application is not working in the master detail page.Can any one help me out in this

推荐答案

最后,我得到了上下文菜单及其正常工作的解决方案.为此,我需要添加afterinsertrow以及ondblclickrow函数,然后它可以正常工作

Atlast i got the solution for the context menu and its working fine. for this to work i needed to add afterinsertrow as well as ondblclickrow function and then it works fine

这篇关于行上的Jqgrid中的上下文菜单单击Jqgrid中的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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