Forum
03:13
Hi all,
I am trying to populate the listgrid cell, which has a value id currently, with the name of a dropdown list name. The dropdown list value should match the cell value then displaying the dropdown list name.
ColModel
citySelect() function
var citySelect = jQuery.ajax({
url: "<?php bloginfo( 'wpurl' ); ?>/wp-admin/admin-ajax.php?action=ajax_select_city",
async: false
}).responseText;
return citySelect;
}
citySelect() function return value
As you can see below event_id 19 shows the value 1. event_id 18 is what i would like it to show (Australia-Melbourne value = 1, same as the cell value). event_id 17 is just showing a list of names for the drop down.
[Image Can Not Be Found]
01:47
30/12/2009
how do we get rid of the undefined in the dropdown. i am using a form not inline editing.
the data i am returning is
0:SELECT ONE;1:Value1;2:Value2;
The last semicolon is making the dropdown add undefined,
If i truncate the last semicolon then the dropdown adds a space character to the text in the last like
<select>
<option value='0'>SELECT ONE</option>
<option value='1'>Value1</option>
<option value='2'>Value2 </option>
</select>
Note the blank char after the Value2 for the last option tag.
Please advise.
Shah
Her is my code http://pastie.org/794369
18:27
Moderators
30/10/2007
Hello,
Since you do the string from ajax check your response from server. I think this ios the problem
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
17:26
Moderators
30/10/2007
Hello,
Form here
"\\n"
(suppose you use PHP)
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
37 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66