Form Based Editing for master detail grid at Pro Version

150 views
Skip to first unread message

Zümrüt Vardar

unread,
Aug 7, 2016, 4:08:28 PM8/7/16
to paramquery
Hi,
We're utilizing form based editing demo for a master-detail
Grid, we would like to edit master grid. In editRow(), when
we call
grid1.pqGrid('updateRow', {rowIndex:rowIndex, row:row, checkEditable:false});
The following exception occurs:
Uncaught TypeError: Cannot read property 'dataIndx' of undefined.
C.saveCell @pqgrid.min.js:101
c._digestData @pqgrid.min.js:160
p.updateRow. @pqgrid.min.js:362
(Anonymous function) @jquery.ui.min.js:6
each @jquery-1.11.0.min.js:2
each @jquery-1.11.0.min.js:2
e.fn.(anonymous function) @jquery.ui.min.js:6
Update
s.click @jquery.ui.min.js:10
dispatch @jquery.ui.min.js:3
r.handle @jquery.ui.min.js:3

Thank you.
Best wishes.

Zümrüt Vardar

unread,
Aug 7, 2016, 5:52:55 PM8/7/16
to paramquery
Hi,
We need to solve this asap, any help would be greatly appreciated.

Many thanks

Paramvir Dhindsa

unread,
Aug 8, 2016, 4:58:52 AM8/8/16
to param...@googlegroups.com
It's rowIndx instead of rowIndex. Hope it helps.

Please post in the forum if you if any further questions.


Regards


--
You received this message because you are subscribed to the Google Groups "paramquery" group.
To unsubscribe from this group and stop receiving emails from it, send an email to paramquery+unsubscribe@googlegroups.com.
To post to this group, send email to param...@googlegroups.com.
Visit this group at https://groups.google.com/group/paramquery.
For more options, visit https://groups.google.com/d/optout.

Zümrüt Vardar

unread,
Aug 9, 2016, 8:33:59 AM8/9/16
to paramquery
Hi,

Thank you, it was rowIndx, there's been an error while sending through phone. We get the same error.

I send the code for the master grid below:  

var grid1 = $("div#grid_json").pqGrid({ width: 930, height: 390,
            dataModel: dataModel,
            colModel: colM,
toolbar: toolbarM,
title: "<center><font style=\"font-size:16px;font-family: Arial, Helvetica\"><b>List</b></font></center>",
            showBottom: false,
            resizable: false,
            editable: true,
            //pageModel: { type: "local", rPP: 15, rPPOptions: [10, 15, 20, 50, 100] },
            flexHeight: true,
            resizable: true,                        
            selectionModel: { mode: 'single', type: 'row' },
rowClick: function (evt, ui) {                    
txt_no = ui.rowData["NO"]; 
txt_tip = ui.rowData["TIP"];
txt_kod1 = ui.rowData["KOD1"];
txt_kod2 = ui.rowData["KOD2"];
txt_no2 = ui.rowData["NO2"];
txt_no3 = ui.rowData["NO3"];
txt_t1 = ui.rowData["T1"]; 
txt_adt = ui.rowData["ADT"];
grid2.pqGrid("option", "dataModel.url", "AjaxHandler_PHList_Detail.aspx?txt_no=" + txt_no + "&txt_no2=" + txt_no2 + "&txt_no3="+ txt_no3 + "&txt_adt="+ txt_adt);
grid2.pqGrid("refreshDataAndView");
}
        });
Thank you.






7 Ağustos 2016 Pazar 23:08:28 UTC+3 tarihinde Zümrüt Vardar yazdı:

Zümrüt Vardar

unread,
Aug 16, 2016, 9:23:00 AM8/16/16
to param...@googlegroups.com
Hi, could you please share a master detail sample, with master edit form and dynamic update of the detail grid based on the rowClick of the master table?Thank you.Regards.  

--
You received this message because you are subscribed to a topic in the Google Groups "paramquery" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/paramquery/js0SM3R-YSk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to paramquery+unsubscribe@googlegroups.com.

Zümrüt Vardar

unread,
Aug 17, 2016, 7:59:08 AM8/17/16
to param...@googlegroups.com
Hi,
The following error continues when calling updateRow function as follows:

grid1.pqGrid('updateRow', { rowIndx: rowIndx, row: row, checkEditable: false });.

Uncaught TypeError: Cannot read property 'dataIndx' of undefined
pqgrid.min.js:formatted:2212
pqgrid.min.js:101 

    c.saveCell = function(e, h, a) {
        e[h.dataIndx] = a
    }
Thank you.

Zümrüt Vardar

unread,
Aug 17, 2016, 9:35:11 AM8/17/16
to param...@googlegroups.com
Hi,
When we try to run the demo for the CRUD operations against remote data using a form at the following address, always "please select a row" alert is displayed, even tough a row is selected:


Could you please check it?

Thank you. 
Reply all
Reply to author
Forward
0 new messages