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

[Solved] ToggleRowDetails from First Look example

1 Answer 96 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Anne Lyon
Top achievements
Rank 1
Anne Lyon asked on 20 Jul 2011, 10:36 AM
Hi!

I am copying code from your brilliant GridView First Look demo where a grid view contains a tabControl as Row details. Everything works fine, but the example displays the GridView with the first row expanded. I do not want this, rows will expand ONLY when user clicks on the GridViewToggleRowDetailsColumn. Using the FirstLook example as a basis, what do I add to avoid the first row to display as expanded?

I would also like my row to be set as Selected when I click the toggle to expand the row. Setting the

IsSynchronizedWithCurrentItem

="true"

does not work for the toggle.

Thanks,
Anne

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 20 Jul 2011, 11:16 AM
Hi Anne Lyon,

In case you do not want to expand the first row automatically, remove the row style selector and it will not expand .

As for the other thing, the current item is this triangle that you see on the left of the row. It has absolutely nothing to do with whether a row has its details expanded or not. The plus/minus button comes from the GridViewToggleRowDetailsColumn and has absolutely nothing to do with IsSynchronizedWithCurrentItem.

Please, read this and this.

I hope this helps.

All the best,
Ross
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
GridView
Asked by
Anne Lyon
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or