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

[Solved] Server-side select by clicking anywhere on the row

1 Answer 76 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Craig Smith
Top achievements
Rank 1
Craig Smith asked on 02 Oct 2009, 05:31 PM
In your demos you show this using the client-side functionality but for the server-side you have to click a "select" column or a checkbox. I want the row to be selected server-side by clicking anywhere on the row. How do I do this?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Mr. Plinko
Top achievements
Rank 1
answered on 03 Oct 2009, 12:01 AM
You could set the EnablePostBackOnRowClick to true and select the row manually on ItemCommand.

Example:
<ClientSettings EnablePostBackOnRowClick="true" /> 

protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e) 
    if (e.CommandName == "RowClick"
        e.Item.Selected = true
Tags
Grid
Asked by
Craig Smith
Top achievements
Rank 1
Answers by
Mr. Plinko
Top achievements
Rank 1
Share this question
or