I want TabStop even if ReadOnly

5 posts, 1 answers
  1. Håkan
    Håkan avatar
    183 posts
    Member since:
    May 2011

    Posted 29 May 2013 Link to this post

    Hi!

    I have a check box in a GridViewDataqColumn, and to make it one-click editable I have made the column ReadOnly.
    But I still want TabStop in the column to be able to use the keyboard.
    But setting TabStopMode="Stop" does not work.

    Is there any solution for this, or do I have to make the column editable?

    Regards,
    Håkan
  2. Yoan
    Admin
    Yoan avatar
    1070 posts

    Posted 31 May 2013 Link to this post

    Hello Håkan,

    Indeed, RadGridView has a GridViewCheckBox column type. You can check  this help article for a reference.

    Please let me know if this fits your scenario.

    Regards,
    Yoan
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Håkan
    Håkan avatar
    183 posts
    Member since:
    May 2011

    Posted 03 Jun 2013 Link to this post

    Hi!

    Ok, so I did as the article says about styling the CheckBox, since I have my own style on it.
    That works fine when the cell is not in edit mode, but as soon as I click the column the default "Telerik CheckBox" is displayed.
    I tried to set a style on it, both in the CellTemplate and as an ImpicitStyle of the whole GridView with no success.

    Also, is there anyway I can get the CheckBox to react on click immediately. Now the "one-click" functionality only works if the row is previously selected.
    So if I click in the CheckBox column of a non-selected row, it will only select the row (and cell), then I have to click again to select the CheckBox.

    Regards,
    Håkan
  5. Answer
    Yoan
    Admin
    Yoan avatar
    1070 posts

    Posted 06 Jun 2013 Link to this post

    Hello Håkan,

    You may change the appearance of GridViewCheckBox  through edit its and predefine the brushes which are used by default. As for the number of clicks, I have tested the solution and everything seems to work as expected. I have prepared a sample project which shows you the approach. Please find it attached.

    Regards,
    Yoan
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Håkan
    Håkan avatar
    183 posts
    Member since:
    May 2011

    Posted 10 Jun 2013 Link to this post

    It was the EditorStyle property I had missed.
    And also I had EditTriggers="CellClick" on the whole GridView but that did not make the one-click edit work, I had to put it on the CheckBoxColumn as well, then it worked fine!

    Regards,
    Håkan
Back to Top
DevCraft banner