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

Cancelling client row select

1 Answer 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Piyush Bhatt
Top achievements
Rank 2
Piyush Bhatt asked on 22 Apr 2008, 06:49 PM
I went through other messages in this thread but did not find similar question.

I am using Q1 2008 and I want to cancel the row-selecting event in some cases. here I have put a sample js method to call onrowselecting. looks like args.set_cancel(true) does not work at all. It should uncheck the checkbox that is being checked - but it does not do that. Also, if I click back on the checkbox which is already checked - it still calls - OnRowSelecting and OnRowSelected - instead of calling the Deselecting and DeSelected methods.

                <ClientEvents OnRowSelecting="onRowSelecting" />
                <Selecting AllowRowSelect="true" />

        function onRowSelecting(sender, args)
        {
            if (confirm("Do you want to cancel this?") == true)            args.set_cancel(true);
        }

1 Answer, 1 is accepted

Sort by
0
Brandon
Top achievements
Rank 1
answered on 22 Apr 2008, 11:58 PM
Not sure it will help, but I saw a post earlier today stating the CTRL Click of the mouse deselects rows on clientside.

Best of luck,
Brandon
Tags
Grid
Asked by
Piyush Bhatt
Top achievements
Rank 2
Answers by
Brandon
Top achievements
Rank 1
Share this question
or