Deselect Row Client-Side

3 posts, 0 answers
  1. Joe Hakooz
    Joe Hakooz avatar
    65 posts
    Member since:
    Dec 2007

    Posted 31 Oct 2008 Link to this post

    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. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 03 Nov 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Joe Hakooz
    Joe Hakooz avatar
    65 posts
    Member since:
    Dec 2007

    Posted 06 Nov 2008 Link to this post

    Ok, thanks.

    Just noticed the new site... Looks great!
Back to Top