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
cells with id
24/03/2010
19:23
Avatar
ccc28
spain
New Member
Members
Forum Posts: 2
Member Since:
24/03/2010
sp_UserOfflineSmall Offline

Hi,
I wonder if it is possible to identify a name or an ID from each of the cells in a column. Is it possible?

<row id="1">
    <cell> 111 </ cell>   ----->1
    <cell> 122 </ cell>   ----->2
    <cell> 133 </ cell>   ----->3
  </ row>

Thank you very much.

25/03/2010
09:56
Avatar
miguelchico
Member
Members
Forum Posts: 7
Member Since:
03/02/2009
sp_UserOfflineSmall Offline

Hi,

I have the same problem.
I generate the XML response automatically and can not control the order of cell elements.

Need to identify each cell with the id defined in the colModel.

For example.
If I define the colModel as:

colModel: [
                (name: "id", index: "id", width: 50),
                (name: "name", index: "name", width: 50)
]

and the XML generated is:

<row id="1">
    <cell> 1 </ cell>
    <cell> Miguel </ cell>
</ Row>

everything works fine, but if it generates the XML as

<row id="1">
    <cell> Miguel </ cell>
    <cell> 1 </ cell>
</ Row>

the information shown is not correct.

I think the best solution would be to build the xml:

<row id="1">
    <cell id="name"> Miguel </ cell>
    <cell id="id"> 1 </ cell>
</ Row>

and that the grid is filled in correctly.

Is there any way to get it?

Thanks!

30/03/2010
12:46
Avatar
ccc28
spain
New Member
Members
Forum Posts: 2
Member Since:
24/03/2010
sp_UserOfflineSmall Offline

It's the same problem as I have. "Anybody can help?
Thank you.

03/04/2010
13:55
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

I think you should define xmlReader and response so that there is no matter where is the cell.

Please check this

http://www.trirand.com/jqgridw.....a#xml_data

from the beginning to the end.

If you configure the xmlReader with repeatitems set to false, then the order of the cells does not take into account

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

06/04/2010
14:37
Avatar
miguelchico
Member
Members
Forum Posts: 7
Member Since:
03/02/2009
sp_UserOfflineSmall Offline

Thank you Tony!!!

I will try this.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 994

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