Forum

November 2nd, 2014
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
XML example?
22/06/2009
14:07
Avatar
efet
Member
Members
Forum Posts: 5
Member Since:
13/06/2009
sp_UserOfflineSmall Offline

Hi,

I am not very capable with php so I was wondering if there is a working XML example for treegrid.

23/06/2009
02:29
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

First good starts is a documentation - see tree grids

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.

23/06/2009
11:39
Avatar
mistertreegrid
Member
Members
Forum Posts: 4
Member Since:
23/06/2009
sp_UserOfflineSmall Offline

Hi, I've read the documentation and checked out the examples; I haven't been able to find out how to format the xml to support treegrid with multiple leaves. The documentation's example seems to be incomplete in this respect as it seems to only produce a non-leafed example.

Example(s) would help me get going...

Does anyone have example(s) of the different way(s) we can form the XML to get a leafed result?

Thank you!

-David

02/07/2009
02:19
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

It is not so complicated as you say.

You should use only the property isLeaf and export all the leaf nodes. Please see in detail what information additionally is needed to construct the trree grid.

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.

02/07/2009
15:59
Avatar
todd_b
todd_b
Member
Members
Forum Posts: 7
Member Since:
16/06/2009
sp_UserOfflineSmall Offline

mistertreegrid said:

...

Example(s) would help me get going…

Does anyone have example(s) of the different way(s) we can form the XML to get a leafed result?


Adjacent example with summary row:

<?xml version='1.0' encoding='utf-8'?>
<rows>
     <page>1</page>
     <total>1</total>
     <records>12</records>
     <userdata name="aaaa">total</userdata>
     <userdata name="bbbb">1b2b3b</userdata>
     <userdata name="cccc">1c2c3c</userdata>
     <userdata name="dddd">1d2d3d</userdata>
     <row>
          <cell>1</cell> # row id
         
          <cell>1a</cell> # expanding column
          <cell>1b</cell> # column 2
          <cell>1c</cell> # column 3
          <cell>1d</cell> # column 4
         
          <cell>0</cell>      # node level 0
          <cell>NULL</cell>   # parent row id
          <cell>false</cell>  # is this a leaf?
          <cell>false</cell>  # expand?
     </row>  

     <row>
          <cell>2</cell> # row id
         
          <cell>2a</cell> # expanding col
          <cell>2b</cell> # column 2
          <cell>2c</cell> # column 3
          <cell>2d</cell> # column 4
         
          <cell>0</cell>      # node level 1
          <cell>1</cell>      # parent row id
          <cell>true</cell>   # is this a leaf?
          <cell>false</cell>  # expand?
     </row>        

     <row>
          <cell>3</cell> # row id
         
          <cell>3a</cell> # expanding col
          <cell>3b</cell> # column 2
          <cell>3c</cell> # column 3
          <cell>3d</cell> # column 4
         
          <cell>0</cell>      # node level 1
          <cell>1</cell>      # parent row id
          <cell>true</cell>   # is this a leaf?
          <cell>false</cell>  # expand?
     </row>
</rows>

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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