allow multiselection in gridviewcheckboxcolumn

5 posts, 0 answers
  1. Hans
    Hans avatar
    15 posts
    Member since:
    Oct 2007

    Posted 10 Dec 2014 Link to this post

    How I can do to allow multiple checkbox checked in editable gridviewcheckboxcolumn. Now i can check only one column even if allow multi row selection is enabled
  2. Hristo
    Admin
    Hristo avatar
    1438 posts

    Posted 13 Dec 2014 Link to this post

    Hello Hans,

    I am not sure that I completely understand your scenario. Can you please provide more details on it?

    Our CheckBoxColumn allows checking multiple items by default. If you cannot check more than one item then there might be a problem in your project. if this is the case please send us your project so we can investigate it. This will let us provide you with further support.

    In case you want to select all items with a single click, you should set EnableHeaderCheckBox property to true. Please see the code snippet below:
    GridViewCheckBoxColumn checkBoxColumn = new GridViewCheckBoxColumn();
    checkBoxColumn.FieldName = "Checkbox";
    checkBoxColumn.HeaderText = "Checkbox?";
    checkBoxColumn.EnableHeaderCheckBox = true;
    this.radGridView.MasterTemplate.Columns.Add(checkBoxColumn);

    If this is not what you need, please get back to me with a more detailed explanation.

    I hope that this helps. Should you have further questions do not hesitate to write back.

    Regards,
    Hristo
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. Chris
    Chris avatar
    2 posts
    Member since:
    Dec 2017

    Posted 08 Dec 2017 in reply to Hristo Link to this post

    I am also having problems with check box persistence. The checks only stay while that cell is selected. Once I click off the cell it returns to a greyed out state. here is my table xaml:

    <telerik:RadGridView Grid.Row="11" x:Name="HAZtoConstraint_Table"
                                                               GroupRenderMode="Flat"
    AutoGenerateColumns="True"
    Height="Auto"
    Width="900"
    CanUserFreezeColumns="False"
    RowIndicatorVisibility="Visible"
    HorizontalAlignment="Left"
    Margin="5,1,0,0" >
    <telerik:RadGridView.Columns>
    <telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding IsActive, Mode=TwoWay}" IsAutoGenerated="True" />
    </telerik:RadGridView.Columns>
    </telerik:RadGridView>

     

  4. Chris
    Chris avatar
    2 posts
    Member since:
    Dec 2017

    Posted 08 Dec 2017 in reply to Chris Link to this post

    disregard.
  5. Hristo
    Admin
    Hristo avatar
    1438 posts

    Posted 11 Dec 2017 Link to this post

    Hello Chris,

    This thread is discussing the grid control for WinForms. I am assuming that you might be using WPF, in this case, you can refer to their forums: https://www.telerik.com/forums/wpf.

    Let me know if you have other questions.

    Regards,
    Hristo
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top