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
Vertical record display
30/12/2009
22:16
Avatar
mchojrin
Member
Members
Forum Posts: 11
Member Since:
04/12/2009
sp_UserOfflineSmall Offline

Hi:

  I'm trying to accomplish this functionality, I'm not sure whether it's possible. What I need is to display the grid data in a vertical manner, like this:

Field1: Value1

Field2: Value2

Field3: Value3

Instead of:

Field1      Field2      Field3

Value1    Value2     Value3

Is there a simple way to achieve this? Thanks!

03/01/2010
18:47
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Direct is not possible, but you can construct the grid and use viewGridRow to achieve this - see demos.

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.

04/01/2010
14:29
Avatar
mchojrin
Member
Members
Forum Posts: 11
Member Since:
04/12/2009
sp_UserOfflineSmall Offline

Hi:

  Thanks for your answer. I checked the demos, but I can't quite get the idea of it. I looked at the example for "Grid view mode", how do I use it? Thanks!

11/11/2010
21:16
Avatar
tmiller
New Member
Members
Forum Posts: 2
Member Since:
11/11/2010
sp_UserOfflineSmall Offline

I actually have this same requirement. I have some tables that only have one row per parent record and have a lot of fields, making it impractical to use the horizontal grid.

I tried to figure out how to do it using the hints you gave but am kind of stumped. Can you offer anymore insight into how to accomplish this?

12/11/2010
07:17
Avatar
michaelg
Member
Members
Forum Posts: 51
Member Since:
10/04/2010
sp_UserOfflineSmall Offline

Couldn't you just feed the data into the grid as a table with 2 columns ("Table", and "Data"), so the grid is still the same, but each table will be a different row rather than a column?

15/11/2010
17:08
Avatar
tmiller
New Member
Members
Forum Posts: 2
Member Since:
11/11/2010
sp_UserOfflineSmall Offline

That would work if every field was the same data type. However, they are different data types and as far as I can tell, data types are defined per column. I suppose I can try defining a different field type by individual cell unless someone has a better idea. I'm all ears.

19/11/2010
04:27
Avatar
BenRivera
Member
Members
Forum Posts: 11
Member Since:
08/06/2010
sp_UserOfflineSmall Offline

I would go with the 2 column format and parse all your data fields as text in the format that you want the data displayed.  If you are going to provide editting then you will have to convert all your data back to the correct data type before updating.  If that is the case, I would add a 3rd column with the data type as a hidden column, to help in the data validation process.

Regards,

Ben

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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