check GridViewCheckBoxColumn with one click

7 posts, 1 answers
  1. Matthias
    Matthias avatar
    4 posts
    Member since:
    Dec 2010

    Posted 16 May 2011 Link to this post

    Hi all,

    I'm trying to do a quite simple thing: I simply want to check or uncheck checkboxes in a Gridview with one click.
    At the moment I need 3 clicks to do this. (I think one to select the row, one to switch the cell to edit mode and finally one to check or uncheck)

    Is it possible to reduce this to just one click?

    Regards,
    Matthias
  2. Answer
    Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 16 May 2011 Link to this post

    Hi Matthias,

     
    You may take a look at the following online help article "Number of clicks in the CheckBox column".

    Kind regards,
    Vanya Pavlova
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Matthias
    Matthias avatar
    4 posts
    Member since:
    Dec 2010

    Posted 17 May 2011 Link to this post

    Hi,

    the one-click-solution with EditTriggers="CellClick" and AutoSelectOnEdit="True" didn't work for me. I still have to click two times. But the other solution with a Checkbox in a GridViewDataColumn did exactly what I want.

    Thanks!
  5. Chandra Prakash
    Chandra Prakash avatar
    4 posts
    Member since:
    Mar 2011

    Posted 20 Jun 2011 Link to this post

    Hi Vanya,

    I am using GridViewCheckBoxColumn in RadGridView. I wanna System.Windows.Controls checkbox in GridViewCheckBoxColumn and surely this happening when I make style of GridViewCheckBox and set key of Standard Silverlight checkbox on GridViewcheckboxColumn as Style="{StaticResource CheckBoxStyle}".
    But somewhere I am not using GridViewCheckBoxColumn or not GridViewDataColumn. Using bool property in c# for the IsEmployee column. There should be silverlight Standard CheckBox instead of GridViewCheckBox exactly what I want. For that Which style I am missing or what should I have to do?

    Thanks,
    Prakash Gupta
    INDIA
  6. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 20 Jun 2011 Link to this post

    Hello Chandra,


    You may style the standard CheckBox control direclty through using the Telerik's StyleManager:

    <CheckBox telerik:StyleManager.Theme="Office_Black" ...../>


    If your columns are auto-generated, you may subscribe to the RadGridView's AutoGenerating event in order to access these columns. From there just set the appropriate CellTemplate with the desired CheckBox and its corresponding appearance.

    Regards,
    Vanya Pavlova
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Chandra Prakash
    Chandra Prakash avatar
    4 posts
    Member since:
    Mar 2011

    Posted 21 Jun 2011 Link to this post

    Hi Vanya,

    Thanks for your quick reply. In my case columns are generated from code and columns definition also comes on run time. So I can't set Cell Template. In this case when property with bool comes it takes column with checkbox, For this check box I want to apply Standard silverlight checkbox style instead of GridViewCheckBoxColumn Style. How can I overrite it??

    Thanks
    Prakash Gupta
    INDIA
  8. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 21 Jun 2011 Link to this post

    Hi Chandra Prakash,

     

    The logic behind GridViewCheckBoxColumn/GridViewDataColumn is internally handled and there is no easy way to change this behavior. The easiest way to handle this is through defining CellTemplate with the appropriate CheckBox control. 


    All the best,
    Vanya Pavlova
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top
DevCraft banner