Forum

July 12th, 2025
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
load data into a select
22/10/2010
11:45
Avatar
zeker
Member
Members
Forum Posts: 4
Member Since:
23/06/2010
sp_UserOfflineSmall Offline

var 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.

26/10/2010
09:21
Avatar
Polarbeer
Member
Members
Forum Posts: 5
Member Since:
19/10/2010
sp_UserOfflineSmall Offline

I 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.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information