So I'm using this jquerygrid plugin () and it's working pretty well.
I'm trying to use the inline edit feature to edit a couple fields in
the row using checkboxes... the values in the DB are 1 and 0.

So in my colModel, I have this:

                {name:'ISOWNER',index:'ISOWNER', width:50, editable:true,
edittype:"checkbox", editoptions: {value:"1:0"}},
                {name:'SENDALERT',index:'SENDALERT', width:50, editable:true,
edittype:"checkbox", editoptions: {value:"1:0"}},

It works great.  Most importantly, if I uncheck something, then go to
another row, the original value of the checkbox is  restored (because
I didn't save).  So if it was a 1, and I unchecked it, then went to
another row, it would revert to a 1 - as it should.

But If  I change it to this:

                {name:'ISOWNER',index:'ISOWNER', width:50, editable:true,
formatter:yesNoFormatter, edittype:"checkbox", editoptions:
{value:"Yes:No"}},
                {name:'SENDALERT',index:'SENDALERT', width:50, editable:true,
formatter:yesNoFormatter, edittype:"checkbox", editoptions:
{value:"Yes:No"}},

the checkboxes LOAD properly, but the restore of the row fails and the
values are always reverted to "No"

I'm gonna hit up the jqgrid forums too but thought I'd toss this out
here.. lots of smart people on cf-talk!

-- 
Rick Root
New Brian Vander Ark Album, songs in the music player and cool behind
the scenes video at www.myspace.com/brianvanderark

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325570
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to