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

How to text instead of images for the expand and collapse image icons in hierarchial grid?

1 Answer 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ritika Gupta
Top achievements
Rank 1
Ritika Gupta asked on 31 Mar 2010, 11:41 AM
Hi,

I would like to use text ( eg. show or hide) instead of the arrow for the expand and collapse column. How can I do that?

Request you to share any code/ documentation for this.

Many Thanks,
Ritika

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 31 Mar 2010, 03:17 PM

Hello Ritika,

One suggestion would be using GridTemplatecolumn with Label control and in the onclick event, check for whether the item is expanded or not. If the item is collapsed, then expand the item and change the Label text to "Hide" and vice versa. Hide the ExpandCollapse column as well.

Access the corresponding item and use the set_expanded() property to expand/collapse from client side.

-Shinu.

Tags
Grid
Asked by
Ritika Gupta
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or