Checkbox Column RadGridView UI Winforms

4 posts, 0 answers
  1. Donovan Kruger
    Donovan Kruger avatar
    7 posts
    Member since:
    May 2010

    Posted 29 Aug 2019 Link to this post

    I have  abound gridview that i have added a checkbox column to as the first column.
    i cannot check any checkboxes in any row, only able to check the headercheckbox which selects all checkboxes of every row.

    Dim checkboxcolumn As New GridViewCheckBoxColumn
    checkboxcolumn.DataType = GetType(Integer)
    checkboxcolumn.Name = "SelectedColumn"
    checkboxcolumn.FieldName = "Select"
    checkboxcolumn.HeaderText = "Select?"
    GV_Assets.MasterTemplate.Columns.Add(checkboxcolumn)
    checkboxcolumn.EnableHeaderCheckBox = True

     

  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3754 posts

    Posted 29 Aug 2019 Link to this post

    Hello, Donovan,  

    The GridViewCheckBoxColumn.EditMode property controls when the value of the editor will be submitted to the cell. By default, (OnValidate), the value will be submitted only when the current cell changes or the grid looses focus. The other value, (OnValueChange), will submit the value immediately after the editor value changes. I would recommend you to set the EditMode property to OnValueChange. Thus, the cell's value will be toggled as soon as you check/uncheck the RadCheckBoxElement.

    I have attached a sample project for your reference. Could you please give a try and see how it works on your end?

    I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

     

    Regards,
    Dess | Tech Support Engineer, Sr.
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Soroush
    Soroush avatar
    2 posts
    Member since:
    Aug 2019

    Posted 07 Sep 2019 Link to this post

    Dear Dess

    Would you please send the same project but in C# language? I am not able open VB projects at the moment.

    It is much appreciated.

  4. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3754 posts

    Posted 09 Sep 2019 Link to this post

    Hello, Soroush,    

    Please find attached the C# project for the GridViewCheckBoxColumn.

    I would like to note that we offer a free online code converter from C# to VB.NET and vice versa: http://converter.telerik.com/ Feel free to use it whenever you need to covert any piece of code.

    I hope this information helps.

     

    Regards,
    Dess | Tech Support Engineer, Sr.
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top