When I add a new record in a master grid (records in descending order, the last one is added in the first row) I'd like it to be automatically opened the Add form in the detailed grid or, if not possible, that clicking on the Add icon in the subgrid you can open the Add Form without that says: "Please select the master …"
How can I do?
Thanks in advance
I will regenerate all the issues that you are facing and will update you.
When you add sortorder -> desc in master grid, e.g.
// master grid
$grid = new jqgrid();
$opt["caption"] = "Clients Data";
$opt["height"] = "150";
$opt["sortorder"] = "desc";
The newly added row will come at top and will be selected. You can then click detail grid [+] button to add in details grid.
I had already done as you say but it doesn't work.
I suppose this is because I have a heavy sql with 7 left join (and 1 on a view that sums the totals).
When I insert a new rec in fact appears a "Load" box and the grid loses the focus
I've emailed you an update that will wait till completion of load box, and then select new row.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?