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

Grid clientrow select and delete

1 Answer 15 Views
Grid
This is a migrated thread and some comments may be shown as answers.
vairam
Top achievements
Rank 1
vairam asked on 16 Mar 2010, 08:04 PM
Hi
    I have a radgrid inline Add/Edit/Delete .When i click on the delete button it show the confirm message "Do you want to delete this Record?".But the corresponding row has not been selected.Even i have given AllowRowSelect="True" .

Example
                   I have 10 records in my grid.Default first row got selected when the page load.The user click on delete button at last Row
now the confirm message will show.But the user get confused which record will delete whether the First record or last record.

See the attachment.
                    First record is selected but i am deleting the last record.


Regards
Vairamuthu

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 17 Mar 2010, 06:53 AM

Hello Vairam,

One suggestion would be attaching OnCommand client event and showing the confirmation explicitly, so that you can set the ConfirmText according to the row value (show the related value in the confirm message) which is going to be deleted. You can cancel the OnCommand event if the confirm returns false (set eventArgs.set_cancel(true) to cancel).

Hope this suggestion helps,

Shinu.

Tags
Grid
Asked by
vairam
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Share this question
or