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
Item and Category, how to....
13/10/2009
09:29
Avatar
ffromdn
Member
Members
Forum Posts: 18
Member Since:
02/10/2009
sp_UserOfflineSmall Offline

Hi! I have 2 tables  - Items and ItemsCategory.  I want to edit Items table with jQgrid. In each row(through add or edit action) i must select category for each item from dropdown list. In all examples Tony(thanks for creating this magic tool:)) fill the dropdown list("select") element from string - like "FE:FedEx;IN:InTime;TN:TNT;AR:ARAMEX".

Here the question: what easy way to fill them from database?

Thank's, sorry for bad eng

15/10/2009
01:40
Avatar
ffromdn
Member
Members
Forum Posts: 18
Member Since:
02/10/2009
sp_UserOfflineSmall Offline

up

15/10/2009
01:50
Avatar
Rumen[Trirand]
Moderator
Members

Moderators
Forum Posts: 81
Member Since:
08/10/2009
sp_UserOfflineSmall Offline

Nothing that is built-in the grid to dynamically retrieve that from database, since this is a pure client-side side utility. The only (and as far as I can tell, the best) way to do it is to first featch the data from database and then when constructing the jQuery init statement from jqGrid to include it as a server variable, e.g. write it directly from server.

In ASP.NET that woud be

jQuery("#jqGridId").jqGrid ...

..

<%= DropDownValues.ToString() %>

...

where DropDownValues are calculated on the server.

Trirand ASP.NET WebForms & MVC components based on jQuery & ThemeRoller

http://www.trirand.net

15/10/2009
12:06
Avatar
ffromdn
Member
Members
Forum Posts: 18
Member Since:
02/10/2009
sp_UserOfflineSmall Offline

Even if datatype of my jQgrid instance is 'JSON'?

15/10/2009
12:20
Avatar
ffromdn
Member
Members
Forum Posts: 18
Member Since:
02/10/2009
sp_UserOfflineSmall Offline

Ok it's working. May i ask another question?

What if i want to select from 1000 categories?Did any autocomplete or paging functions provided for select element of jQgrid?

18/10/2009
14:51
Avatar
ffromdn
Member
Members
Forum Posts: 18
Member Since:
02/10/2009
sp_UserOfflineSmall Offline

sorry, up

Forum Timezone: Europe/Sofia

Most Users Ever Online: 994

Currently Online:
41 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