Wonderful!! This works great with add option.
But Tony thers one problem now. I have put the beforeshowform function
as you told me. But now after adding a row, the editurl changes
permanently to editurl:”myurlhere.php?masterid=”+mid});
I need it to point to edit function url when im inline editing. But now what
happens is once I add a row, & then if I try to inline edit a row,
the url remains the url for adding the row.
I checkd out all the results for “master” in your forum.
But sadly enough, I have not found the solution for implementing it
in the navgrid. I am using navgrid & my navgrid does not take the
master grid id as one of the parameters for the add new option.
It would be great if you could help. Thanks for the cooperation.
All I want to do is simply add a row in the detail grid having bankID stored in the database equal to the id of the parent grid. So that the account is
linked to that bank (accounts are shown in the detail grid). But I am not
able to pass the parent grid id through the navgrid add option to the php script.
My edit function in inline editing seems to work fine.
But I need to add a row when I click on the add record icon on the
navgrid. that is when I dont get the master id of the parent grid to pass.
here is the code for the navgrid of details grid :
jQuery(“#list10_d”).navGrid('#pager10_d', {}, //options
I am getting error setURL is not a function after I have upgraded to 3.2rc.
I have setURL option in the onselectrow.
Can you please give me an example of what you are saying, as the current code doesnt seem to work for 3.2rc.
Thanks,
Mayank
also if i spearately alert the value of
the getgridparam value it works & gives me the
value of the selected row in master grid
I am trying to pass parameter of master grid id in the navigator of detail grid.
So when I click on the add icon of navigator of detail grid & save a row it should call the below URL passing the parameter in the url (ie. id of master grid)
url: '/test/public/account/addaccount?bankID='+jQuery(“#list”).getGridParam(“selrow”)
But instead the value is null. ie. the url is always /test/public/account/addaccount?bankID=null that is being called.
Please help. Am I trying the right thing.
Sorry the link had a problem.
Here is the link again .
CLICK HERE
I had a similar problem as your 2nd problem.
Please go through my post HERE
I have used single click to refresh the detail grid.
ie. onSelectRow
Then I have used ondblClickrow to inline edit the master grid.
Also I have single click for inline editing of detail grid.
oh alright….thanks alot tony. I will try that out & would let you know if I face any problems.
Thanks again.
should ondblClickRow be inside onselectRow or outside?
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top