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

Grid with EnablePostBackOnRowClick and ClientSelectColumn

2 Answers 107 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shane Leipper
Top achievements
Rank 1
Shane Leipper asked on 10 Aug 2010, 11:25 AM
Hi,

I have a RadGrid similar to the example (http://demos.telerik.com/aspnet-ajax/grid/examples/programming/selectedvalue/defaultcs.aspx) it has EnablePostBackOnRowClick="true" and this works fine. However my problem is when you introduce a ClientSelectColumn which then triggers a postback on every selection, I don't want it to. I want to keep my action on row click yet i also want a user to be able to select multiple rows with ease without the interuption of a postback. I have looked to try to find something i can use to determine what was clicked but the ItemCommand "RowClick" doesn't provide much and looking through client side is taking a while, any suggestions?

Shane

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 10 Aug 2010, 01:06 PM
Hello Shane,


One option is invoking postback from client side when clicking the row, while setting the EnablePostBackOnRowClick property as "False". The following KB Article will shed some light on how  to accomplish this:
Performing postback from grid client events


Another option you can find here in code library:
ClientSideSelectColumn - Disallow other selection
The code library differentiate whether the row is selected through a CheckBox in ClientSelectColumn or using row click, and based on that you can invoke the postback.


Hope these information helps,
Princy.
0
Shane Leipper
Top achievements
Rank 1
answered on 10 Aug 2010, 01:14 PM
Hi Princy,

I had already considering invoking a postback from client side when clicking the row but could not distinguish what was clicked, however it looks like the second article (link broken btw) will help me in regards to this.

Thank you,
Shane


Tags
Grid
Asked by
Shane Leipper
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Shane Leipper
Top achievements
Rank 1
Share this question
or