OK, i can do with php some trick to load this parameters, but is not an ajax action who loads dynamic information.
,
and $somevariable= colModel :[name:………, editoptions:{value:”1:Cat1;2:Cat2;…..”}]
greatings
Francisco
francisco.penaranda said:
I have a catalog table “Vivientes” but in when I tried to add a field the editoption is not filling the catalog data, because i dont find some addoption or maybe I'm doing something wrong. To understand better here is part of my code:
….
Hello, Tony.
Maybe the email was bloqued by the mail server, can you please re-send your complete message to francisco.penaranda@gmail.com
Thanks
Francisco P.
tony said:
Hello,
The best will be if you provide me a link to the problem.
You can email me to : tony at trirand dot com
Regards
Tony
Hello Tony, few days ago i sent you a rar archive with all the code and database, did you recive it?
Regards
Francisco P.
tony said:
Hello,
Check for not needed comas. It is not neccesary that this error is in this line.
Also try first with one grid and if all goes ok try to inlude the second grid with minimal options as possible.
Regards
Tony
Tony, everything goes OK in firefox, but in ie is not working, the second grid is very simple, but i need to do some operations like the first one. maybe if you probe this complete code you will see what kind of errors ie reports, please can i contact you by email and send to you all my code and database?
my email is: francisco.penaranda@padep.org.bo
Thanks
tony said:
Hello,
jQuery(”#fechainginventario”).val(”45″);
Ok, Thanks for all, this help me so much.
tony said:
Hello,
The beforeShowForm is called in the parameters for add or edit row. something like this:
jQuery(”#list2″).navGrid(”#pager2″,{edit:true,add:true,del:false,search:true},{reloadAfterSubmit:true,
beforeShowForm : function(formid) {
// your code here
}
}, // edit parameters
{reloadAfterSubmit:true}, // add parameters
{reloadAfterSubmit:true} // del parameters
);
Read the docs first.
Regards
Tony
Thanks Tony for your reply, now i know how to use beforeShowForm, but i have other problem, i want to put the default value into “fechainginventario”, i tried this:
jQuery(”#list2″).navGrid(”#pager2″,{edit:true,add:true,del:false,search:true},{reloadAfterSubmit:true},
tony said:
Hello,
Use beforeShowForm event when in add mode to add the needed default values.
Regards
Tony
Thanks for your reply, but i need to know where exactly is needed this beforeShowForm event, to make it easy i put my code here:
jQuery(document).ready(function(){
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top