开发者

how to send the value from one tab to other tab

开发者 https://www.devze.com 2022-12-26 07:11 出处:网络
I am using this code to go to other tab one double click: ondblClickRow: function() { var $tabs = $(\'#tabs\').tabs();

I am using this code to go to other tab one double click:

 ondblClickRow: function() {
                var $tabs = $('#tabs').tabs();
                var s开发者_如何学Goelected = $tabs.tabs('select', 2);
                },

I am going to second tab on double click, I need to know is there anything way that we can pass the value.

I am getting a value in tab1 I am going to use the same value in tab2, is there any way I can do this?


Kumar, Hi again, It seem you are using JQGrid with this implementation. If so, the ondblClickRow event allows you to pass the following values (rowid,iRow,iCol,e).. by using this you could from one tab doubleClick the row and enter the next tab with the corresponding row selected. try something LIKE this

ondblClickRow: function (rowid, iRow, iCol, e)
{
  var $tabs = $('#tabs').tabs(); 
  var selected = $tabs.tabs('select', 2); 
  //now using rowID you can select grid values in your main grid  by $("#[your mainGrid]").getRowData(rowid)
}
0

精彩评论

暂无评论...
验证码 换一张
取 消