jQWidgets Forums
Forum Replies Created
Viewing 2 posts - 1 through 2 (of 2 total)
-
Author
-
yeah but i want an alert from the master grid event and from the nested grid event, but not the same alert
if i now click on the nested click row i get the event alert from the master grid.
Some copy & paste Problems http://justpaste.it/2nsl < < code here
DEMO $(document).ready(function () { var initrowdetails = function (index, parentElement, gridElement, datarecord) { var getAdapter2 = function () { var url2 = "core/cont/json/textbausteine_json.php"; // prepare the data var source2 ={ datatype: "json", datafields: [ { name: 'x1', type:'string'}, { name: 'x2', type:'html'} , { name: 'x3', type:'string'} ], id: 'id', url: url2, root: 'data' };//source var dataAdapter2 = new $.jqx.dataAdapter(source2); return dataAdapter2; }//getAdapter $($(parentElement)).html(''); $($(parentElement).children()[0]).jqxGrid({ /* Sprachsteine */ source: getAdapter2(), theme: theme, columns: [ { text: 'Sprache', datafield:'x1', width: 80 ,cellsalign: 'center', align: 'center' }, { text: 'Betreff', datafield:'x2', width: 120 ,cellsalign: 'center', align: 'left'}, { text: 'Text', datafield:'x3', width: 400 ,cellsalign: 'center', align: 'left'} ], }); }//initrow var grid = "#tabelle_textbausteine"; var theme = getDemoTheme(); var getAdapter = function () { var url = "core/cont/json/textbausteine_json.php"; var source ={ datatype: "json", datafields: [ { name: 'z1', type: 'int' }, { name: 'z2', type: 'string' }, { name: 'z3', type: 'text' } ], id: 'id', url: url, root: 'data' }; var dataAdapter = new $.jqx.dataAdapter(source); return dataAdapter; } $(grid).on('rowdoubleclick', function (event) { alert(1); //should NOT alert when i click on the nested row }); $(grid).jqxGrid({ width: 1200, source: getAdapter(), theme: theme, rowdetails: true, rowdetailstemplate: { rowdetails: "", rowdetailsheight: 200 }, ready: function () { }, initrowdetails: initrowdetails, pageable: true, editable: false, selectionmode: 'multiplerowsextended', columns: [ { text: 'Webshop', datafield: 'z1', width: 150 }, { text: 'Textbaustein', datafield: 'z2', width: 200 }, { text: 'Gruppe', datafield: 'z3', width: 200 } ] }); });
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)