volosoft / jtable

A JQuery plugin to create AJAX based CRUD tables.
http://www.jtable.org
1.1k stars 506 forks source link

Radio button #1373

Open shashankdbargaje opened 10 years ago

shashankdbargaje commented 10 years ago

How to get radio button in a column

selectingRadiobutton:true,

does not work. Any ideas?

misterparsons commented 10 years ago

Radiobutton: true is not in the jtable documentation.

try type: radiobutton

see documentation http://jtable.org/ApiReference/FieldOptions#fopt-type you MUST supply an option list

shashankdbargaje commented 10 years ago

Hello,

Thanks for the answer .So how can I make the first column as radiobutton? Thank you

On Wed, Jul 2, 2014 at 10:09 AM, misterparsons notifications@github.com wrote:

Radiobutton: true is not in the jtable documentation.

try type: radiobutton

see documentation http://jtable.org/ApiReference/FieldOptions#fopt-type you MUST supply an option list

— Reply to this email directly or view it on GitHub https://github.com/hikalkan/jtable/issues/1373#issuecomment-47806361.

misterparsons commented 10 years ago

jtable displays the option value in the list view. The radio button only appears in the add/update dialog. If you want a different appearance you will need to use the display function and return valid html for the radio buttons. Remember to disable them as the list view is not designed to provide inline editing.