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

Deselect Row Client-Side

2 Answers 95 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 2
Joe asked on 31 Oct 2008, 02:58 PM
Hi,
I think I ran into a bug regarding client-side row selection. Any help or workaround would be greatly appreciated.

I'm using Q2 2008 RadGrid (IE 6 if it matters)

This problem can be seen in the Telerik demo here... http://demos.telerik.com/aspnet/prometheus/Grid/Examples/Client/Selecting/DefaultCS.aspx (The second grid with checkboxes)

If AllowMultiRowSelection="false" on a grid, once you select a row you cannot deselect it on client-side. It acts like a radiobutton. If you set AllowMultiRowSelection="true" it works just fine. The problem for me of course is that I need AllowMultiRowSelection="false".

Come to think of it, I'll bet you guys are somehow masking a radiobutton to look like a checkbox in my scenario. Did I just crack the code? :-)
If that is the case, there should be a simple Javascript fix, right?

Thanks in advance for any suggestion or let me know if I need to clarify.
Joe

2 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 03 Nov 2008, 02:20 PM
Hello Joe,

Basically, the example which you pointed out behaves like this, because this is part of the selection logic.
You can use the following function to manually deselect the row when clicking on it.

Regards,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Joe
Top achievements
Rank 2
answered on 06 Nov 2008, 07:49 PM
Ok, thanks.

Just noticed the new site... Looks great!
Tags
Grid
Asked by
Joe
Top achievements
Rank 2
Answers by
Yavor
Telerik team
Joe
Top achievements
Rank 2
Share this question
or