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

[Solved] How To Omit A Column From Row Select Postback?

1 Answer 130 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Max McKinney
Top achievements
Rank 1
Max McKinney asked on 01 Dec 2009, 12:08 AM
Hi,

I am doing row selection to post back to the code behind with.
<ClientSettings EnableRowHoverStyle="true"  EnablePostBackOnRowClick="true" >                                 
            <Selecting AllowRowSelect="True" />                                                 
        </ClientSettings> 

The issue I have is in my left column I have a template checkbox column that I have the users to select.  If they miss the checkbox just slightly then it causes the grid to postback.  Is there a way to disable a column from causing a OnRowClickPostBack?  I'm aware of how to get javascript events to fire on the row click, but the event args.set_cancel() is for only the client side and doesn't prevent the postback.

Thanks


1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 01 Dec 2009, 03:25 PM
Hi Max,

One suggestion would be invoking postback when clicking the specific columns instead of setting the 'EnablePostBackOnRowClick' property. Here is the KB article which shows how to invoke postback for grid client events. Hope this helps.
Performing postback from grid client events

-Shinu.
Tags
Grid
Asked by
Max McKinney
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or