Forum
Topic RSS
11:45
23/06/2010
Offlinevar languages = $.ajax({url:'test.php?q=3',
async: false,
success: function(data, result)
{
}
}).responseText;
I need to load this var to a select element on my grid, can anyone help me.
Output of languages:
{"value":[{"lng_Name":"Portugu\u00eas"},{"lng_Name":"Espanhol"},{"lng_Name":"Ingl\u00eas"}]}
And my element code:
{name:'LINGUA DEF.',index:'lng_Name', editable: true, resizable: true, edittype: "select", formatter: "select" }
and the code to load languages into "LINGUA DEF.":
$("#list2").setColProp('LINGUA DEF.', { editoptions: { value: languages} });
thanks in advance.
09:21
19/10/2010
OfflineI wish to do the same thing. I had the following code:
colModel: [
{ name: 'ID', width: "100", sortable: true, sorttype: 'int', key: true },
{ name: 'FirstName', width: "150", sortable: true, sorttype: 'text', stype: "select", searchoptions: { value: function (pdata) { getFilterData(pdata); } } },
{ name: 'LastName', width: "150", sortable: true, sorttype: 'text', search: false}]
However it never seems to call the function I try to call.
Most Users Ever Online: 994
Currently Online:
17 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
Log In
Home