Hi Tony,
I am trying to set up a Master/Detail arrangement (for Bank Deposits: Master contains the cheque data, Details contains the distribution to accounts). I have both grids appearing the way I would like to see them.
I want to be able to add a record to the Master grid and edit it inline; then add records to the Details grid and edit them inline.
I also want to have the Details grid refreshed when I select a different record in the Master grid.
I think I have two problems:
First Problem:
I get an error when adding a new record to the Master Grid: “Object doesn’t support this property or method” on the following line (this is from the Master Grid; “tblcontents_details” is the Details grid)
onSelectRow: function(id) {
$(“#tblcontents_details”).setUrl(“wc.dll?PSProcess~GetXML~&Data=BankTrans&sk=2EA0CR4FT5764&sh=128&trans=” + id);
$(“#tblcontents_details”).setPage(1);
$(“#tblcontents_details”).trigger(‘reloadGrid’);
}
tblcontents_details exists by this point and is set up (so far as I can see) like all my other jqGrid tables
I have tried replacing setUrl with setGridParam, but no better; I have tried taking out the called functions one at a time and still no joy.
What have I done wrong here?
Second Problem:
If I am going to inline edit this new record, how do I get to it? On the first click of a dblClick, it selects the row and refreshes the Details grid and it never recognizes a dblclick. I am sure someone will have figured this out by now. Is adding a button on each row the only way around this problem?
Thanks
Reg
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top