Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Checkbox functionality on grid with inline editing

I have bit field in my database table which displays on my grid as a checkbox which is what I want it to do. I have enabled inline editing for this grid and would like to ask two questions relating to checkboxes:
1. To activate/edit the checkbox I have to double click it, is this normal functionality?
I am assuming the double click is once to select the row and the second click is to activate that field?
2. When I go to edit the checkbox it turns into a list (see below image) which I have to select Yes or No. What I would like is to simply click the checkbox and the tick would either be removed or the tick would appear i.e. no list which I have to select yes or no.
Thanks

2 people have
this question
+1
Reply
  • Change to the Controllers view in the lower right hand corner, expand the controller to reveal the Fields within the controller, open the boolean field, scroll down to the "Item Style" dropdown menu, select the checkbox option.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated

  • Dave
    Thanks for your assistance, I will try that this evening when I get home and post how I go
    Steve
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated

  • Dave
    I followed your instructions and selected the checkbox option but it nows displays a slider not a checkbox? Any suggestions



    I just found these posts, looks like you can't have the basic checkbox and not sure when/if COT will implement it.

    http://community.codeontime.com/codeo...

    http://community.codeontime.com/codeo...

    http://community.codeontime.com/codeo...
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated

  • I struggled with this one.

    The problem is that when a user sees a grid with check-boxes they expect to be able to simply click on them as they would in a form.

    COT please take note: double-clicking on a toggle is not good enough - you try training users to do this. They simply don't do it and complain every time.

    The way I tried to tackle it was to create two business rules; the first in C# calls a database function to toggle the current value of the boolean (an isntance of the current record values gets passed to the C# routine so this gives you a primary key to use in a simple SQL Update command).

    I hooked this routine it up to the Grid|Select row action (on execute), replacing the standard Select -> Edit action.
    (This can give concurrency issues because COT may think another user has changed the value).

    The C# routine concludes with a Refresh() to update the grid.

    You then need to implement a Action Column for the grid so that you can display an edit button to restore the edit capability.

    I discovered that the grid did not always update reliably so I implemented an JavaScript routine that flips the boolean value in the current record (After Select) but thus too was unreliable and I had to implement delays to make it work.

    In the end I abandoned this as all too flaky.

    The proposed Reader Pane may provide a workable compromise solution to this (see road map) which is one reason why I keep pushing for this feature.

    HTH

    P
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated