This is a migrated thread and some comments may be shown as answers.

Short/Detailed row design

2 Answers 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mykhaylo
Top achievements
Rank 1
Mykhaylo asked on 27 Jul 2011, 11:08 PM
Hi,

I'm trying to implement the following and need your advice/assistance in this task.
I have a grid binded to the list of objects, so each column is some property of the object.
I need something like the + sign as the first column, that will change the column DataField on the client-side.

For example, lets say I have the list of files.
So short version of row will look like this
+ | 1.4mb | somefile.txt

Pressing the + will change it to - and show something like this in this row:

- | 1.4mb | somefile.txt
                Last Modified Date: xxx
                Create date: xxx

All this stuff should be client-side and cause no postback.

Looking forward to hear from you.

Thanks,
Mykhaylo

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 28 Jul 2011, 06:24 AM
Hello Mykhyalo,

You can achieve this by setting HierarchyLoadMode as Client which avoids postback to the server. In order to use client-side hierarchy expand, also set  ClientSettings.AllowExpand.Collapse to true. Check the following help documentation which explains more about this.
Hierarchy load modes.

Thanks,
Princy.
0
Mykhaylo
Top achievements
Rank 1
answered on 28 Jul 2011, 09:55 AM
Thanks, Princy. That is not exactly what I was looking for, but it will work.
Tags
Grid
Asked by
Mykhaylo
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Mykhaylo
Top achievements
Rank 1
Share this question
or