Hi Barry,
The method I mentioned for Pete was setting a column with the needed id. If you are talking about the problem with the select input (Post returns value as it should but then when we load value, it displays value and not label 🙁 ) I had to do some serverside juggling to display the results correctly.
Cheers,
P.
Thanks for the quick reply Tony. I will try that out tonight.
Unfortunately for this current project I'm on a tight deadline and therefore cannot explore as much as I would like, but I have another project waiting and will be hopefully using jqGrid extensively.
I will post back on that project later with some fun things for newcommers like me. (Just to make the learning cureve less steep 😉 )
Cheers,
P.
Hi,
Just off the top of my head (and keep in mind I to am still new to jqGrid) but I think the best way would maybe be with userdata (see docs). You could then do something along the line of $(“#grid_id”).setGridParam(caption:”Output from userdata”,);
Hopefully some of the real experts will get back to you on this one to 😉
Cheers,
P.
Glad I could help! 😉
Cheers,
P.
Hi diptendu.
This is how I got mine to work. I'm sure there may be better ways of doing this but here goes:
$(“select#emp”).change(function(){
Hi Pete.
I'm not quite sure I get what you want to do, but try the following:
Pass the salesrepid as a colum also, set key:true and hidden:true. Column salesrep should be there also but visible. That way you can reference salesrepid and view salesrep.
Hopes this helps
P.
Thanks all,
Got this working finally!
Cheers,
P.
Hi Tony.
My code without jqGrid, standard form looks something like this:
$("#delag").change(function(){
Same here,
Linux, FF3.
Cheers,
P.
Sorry mates.
This one was my bad and Iwas way to quick to post. Found the problem. I had removed
.GridHeader{
display:none;
}
from grid.css by mistake :-$
Sorry once again for wasting anybodies time…
Mike said:
…
Other bug detected in my own code : don’t use “echo†or “print†in the PHP program. it destroys the structure of json string awaited by jqgrid.
Best solution here is to create the desired array and then return the result of json_encode($dataarray). ![]()
Cheers,
P.
Hi.
Credit for this answer goes to Tony for he mentioned it in an earlier thread.
For waht you want you could possibly use tree grid for folder structure and for the pictures and all else needed, just pass the html source through the server response.
For example.
colNames: ['Item','Image','Price'],
colModel: [ name:"item",index:"item"....},
My apologies to all. Apparently I didn't search hard enoughbefore asking for help. I have finally found the answer to this problem in the form.
Once agin, sorry and thanks to all
Cheers,
P.
P.S.: Just in case a poor soul comes along with the same problem, the solution is here.
Hi guys and gals.
Back with an update. I've been digging around and found a strangebug that was causing this behaviour.
This is my colModel:
colNames : ['N
HI.
This seems to be similar to what I need. I have a few select boxes that need to change dynamically based on the previous selection, example, First choose country, next selct box shows only cities of that country, then choose city, next shows prvinces of that city… and so on.
Tony, I didn't quite understand what you meant. I have a field in the colum of edittype select say name:country.
onInitializeForm : function (form_id) {
$(”select#country”,form_id).change(function() {
if( $(this).val() == “some_value”)
{
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top