Skip to main content
cherdt
Inspiring
March 26, 2009
Answered

Display a checkbox in cfgridcolumn?

  • March 26, 2009
  • 1 reply
  • 2019 views
I'm using CF8. I have an HTML-format cfgrid with several columns, populated via a CFC in the bind attribute.

One of the columns I have set to type="boolean" in order to display a checkbox. However, no mater what data I send to it, it displays the data instead of a checkbox, e.g.:

  • 1 and 0
  • true and false
  • yes and no (displays true and false)


Code:
    This topic has been closed for replies.
    Correct answer cherdt
    Update: after making the cfgrid editable and adding the associated onchange method, I can now view the checkbox after I double-click the cell containing "true" or "false" (and the checkbox is checked appropriately).

    I have no idea if that is the intended behavior, but I definitely don't like it.

    1 reply

    cherdt
    cherdtAuthorCorrect answer
    Inspiring
    March 26, 2009
    Update: after making the cfgrid editable and adding the associated onchange method, I can now view the checkbox after I double-click the cell containing "true" or "false" (and the checkbox is checked appropriately).

    I have no idea if that is the intended behavior, but I definitely don't like it.
    Inspiring
    March 26, 2009
    You can also use a custom item renderer and have the checkbox displaying and not the true/false.

    Custom Item Renderer

    Ken
    sajjansarkaratlanta
    Participating Frequently
    June 22, 2010

    Thank you!!