GridViewBooleanColumn: strange behaviour when work with keyboard

4 posts, 0 answers
  1. Emanuele Savarese
    Emanuele Savarese avatar
    14 posts
    Member since:
    Apr 2007

    Posted 13 Jan 2008 Link to this post

    WinForms RadControls Q3 2007
    Visual Studio 2005
    .NET 2.0

    In other grid when I work with check box column I can set value of checkbox pressing space bar. I tried to set value with space bar but RadGridView have a strange behaviour.

    1. on first load on first row press once space bar but grid doesn't check
    2. after few seconds press another time space bar and grid check cell
    3. go to second row with arrow keys
    4. press space bar first time on second row and... check on first row disappear ?!? and on check on second row stay off
    5. press space bar second time on second row and appears check on second row
    6. go to third row and appers check also on the first row ?!?!?

    I want a simple way to set checkbox in column similar Microsoft standard control ListView when set with CheckBoxes  = true.

    Placed a listview and a radgridview this code can reproduce error and my favourite behaviour.

    Thanks in advance,
    Emanuele Savarese

    1         private void Form1_Load(object sender, EventArgs e) 
    2         { 
    3             DataTable dt = new DataTable(); 
    4             dt.Columns.Add("From", typeof(bool)); 
    5             dt.Columns.Add("To", typeof(bool)); 
    6             dt.Columns.Add("Description", typeof(string)); 
    7  
    8             dt.Rows.Add(false, false, "hi1"); 
    9             dt.Rows.Add(false, false, "hi2"); 
    10             dt.Rows.Add(false, false, "hi3"); 
    11             dt.Rows.Add(false, false, "hi4"); 
    12             dt.Rows.Add(false, false, "hi5"); 
    13             dt.Rows.Add(false, false, "hi5"); 
    14             dt.Rows.Add(false, false, "hi6"); 
    15             dt.Rows.Add(false, false, "hi7"); 
    16             dt.Rows.Add(false, false, "hi8"); 
    17             dt.Rows.Add(false, false, "hi9"); 
    18             dt.Rows.Add(false, false, "hi10"); 
    19  
    20             radGridView1.MasterGridViewTemplate.AutoGenerateColumns = false
    21             radGridView1.Columns.Add(new GridViewBooleanColumn("From")); 
    22             radGridView1.Columns[0].IsPinned = true
    23             radGridView1.Columns.Add(new GridViewBooleanColumn("To")); 
    24             radGridView1.Columns[1].IsPinned = true
    25             radGridView1.Columns.Add(new GridViewTextBoxColumn("Description")); 
    26             radGridView1.Columns[2].ReadOnly = true
    27             radGridView1.Columns[2].Width = 600
    28  
    29             radGridView1.SelectionMode = GridViewSelectionMode.FullRowSelect; 
    30             radGridView1.DataSource = dt
    31  
    32             listView1.View = View.Details; 
    33             listView1.FullRowSelect = true
    34             listView1.CheckBoxes = true;             
    35             listView1.Columns.Add("To"); 
    36             listView1.Columns.Add("Description"); 
    37             listView1.Items.Add(new ListViewItem(new string[] { "hi", "hi1" })); 
    38             listView1.Items.Add(new ListViewItem(new string[] { "hi", "hi2" })); 
    39             listView1.Items.Add(new ListViewItem(new string[] { "hi", "hi3" })); 
    40         } 



  2. Georgi
    Admin
    Georgi avatar
    212 posts

    Posted 15 Jan 2008 Link to this post

    Hi Emanuele Savarese,

    I have replied to your previous post. Here is the text:

    Unfortunately, this appears to be a bug. It is not related to the checkbox editor, but rather to the current cell in the RadGridView. This has been logged in our bug tracking system with the highest priority and will be addressed as soon as possible.

    We are sorry for the inconvenience. Your telerik points have been updated.

    Regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Quinn
    Quinn avatar
    1 posts
    Member since:
    Jul 2012

    Posted 24 Jul 2012 Link to this post

    Has this bug been fixed?
  4. Stefan
    Admin
    Stefan avatar
    2908 posts

    Posted 27 Jul 2012 Link to this post

    Hi Quinn,

    Yes, checking a check box of a cell with space is now working correctly. Please give it a try and let us know if you have any difficulties.
     
    All the best,
    Stefan
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Back to Top