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

[Solved] Select a row in a GridView with a custom row layout

2 Answers 105 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.
Vincent Jezequel
Top achievements
Rank 1
Vincent Jezequel asked on 10 Nov 2009, 01:10 PM
Hi,
I've been implementing a Gridview with a custom row layout such as the one in your example.
But it doesn't seem to allow row selection anymore, once I set the RowStyle attribute ? Is there anything particular to do ?

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Milan
Telerik team
answered on 10 Nov 2009, 03:18 PM

Hi Vincent Jezequel,

There are two outstanding problems that will prevent you from selecting rows in such scenario.

The first one is that selection can only happen when a cell is clicked which is not very desirable in some custom scenarios like the custom row layout. We are currently working on a fix that will allow selection when users click anywhere on a row. The fix should be available this Friday with our latest internal build.

The second one is that our custom row layout sample uses GridViewCells which is an overkill for such scenarios. It is best to use TextBlock elements instead of GridViewCells. We are currently redoing our sample to use TextBlock elements.

Once we release our new build this Friday and if you could switch from GridViewCell to TextBlock you will be able to select  rows.

Kind regards,
Milan
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
Vincent Jezequel
Top achievements
Rank 1
answered on 10 Nov 2009, 03:24 PM
OK, that's pretty much what I was thinking...
I already have replaced GridViewCells, so I just have to wait for your next build :)

Thanks a lot for your reactivity
Tags
GridView
Asked by
Vincent Jezequel
Top achievements
Rank 1
Answers by
Milan
Telerik team
Vincent Jezequel
Top achievements
Rank 1
Share this question
or