Author Topic: Radio Button option for the column  (Read 413 times)

afterhours2

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 8
    • View Profile
Radio Button option for the column
« on: December 06, 2022, 05:08:42 am »
Hello,

I am using Paramquery v8.5.0. I am working on a functionality to add radio button to each row of the table, which will enable user select only one row from the list. Data from the select row will be used for further processing.

Below is the code we are currently using for checkbox, need to update this to Radio button functionality

 obj.colModel = [
         {title: "Select", dataIndx: "flag", type: 'checkbox', maxWidth: 30, align: "center", cls:'checkboxColumn',
                resizable: true, editor: false, sortable: false ,editable:true, cb: { all: false, header: true, check: "Y", uncheck: "N" }
            },
            { title: "Employee No", dataIndx: 'empNo', minWidth: 50,maxWidth: 100, align: "center" },
            { title: "First Name", dataIndx: 'firstName' , minWidth: 100,maxWidth: 400, align: "center" }
]

Screenshot attached, need help to update the checkboxes highlighted in yellow to Radio buttons.

Any help on this would be much appreciated

« Last Edit: December 06, 2022, 06:50:39 am by paramvir »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Radio Button option for the column
« Reply #1 on: December 06, 2022, 01:47:01 pm »
Please check this example: https://paramquery.com/pro/demos/selection_radio

Kindly let me know if you need further assistance.