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

ToggleButton

2 Answers 134 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Paresh Sen
Top achievements
Rank 1
Paresh Sen asked on 23 Oct 2009, 03:13 PM
Hi,

Need some help on togglebutton functionality.

I have gone through the blog post http://blogs.telerik.com/blogs/posts/09-07-30/how_to_display_hierarchical_data_with_row_details_radgridview_for_silverlight.aspx
and able to create a toggle button. However not able to complete the functionality to work in the below scenario:

My grid's first column is toggle button. on click it expands to show details + changes to - sign.
I want - sign to change to + when I cancel/submit my deatils presenter of the row.


any help will be great.

Thanks,
Paresh

2 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 29 Oct 2009, 09:22 AM
Hello Paresh Sen,

In one of the latest internal releases we have introduced a built-in GridViewToggleRowDetails column. You can simply add it as the first column of your grid and it will hook up to the row details automatically.

From then on, if you programmatically change the DetailsVisibility of the parent GridViewRow, the details will collapse and the toggle button will update its sign automatically.

I have prepared a small sample project to demonstrate this. You can use it as a base. I hope it helps.

Sincerely yours,
Ross
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Paresh Sen
Top achievements
Rank 1
answered on 08 Nov 2009, 05:32 PM
Thanks a lot for the example.
Tags
General Discussions
Asked by
Paresh Sen
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Paresh Sen
Top achievements
Rank 1
Share this question
or