vendredi 31 juillet 2020

How to jqGrid dynamic multiselecet?

I hava jqGrid checkbox column,This dynamic build

                colNames: ['Id', 'True/False'],
            colModel: [
                { name: 'Id', index: 'Id', sorttype: "int", hidden: false },
                {
                    name: "Selected", index: 'Selected', width: 70, align: "center",
                    formatter: "checkbox", formatoptions: { disabled: false },
                    editable: false, editoptions: { value: "True:False", defaultValue: "No" },
                    stype: "select", searchoptions: {
                        sopt: ["eq", "ne"],
                        value: ":Any;true:Yes;false:No"
                    },
                },

this code selected columns is checkbox how to this column is multiple selection with its own feature jqGrid

Multiselect: true

And I cant checkbox value (true or false ) How can I do it? ;

If selected column value is true, get multiselect (jqGrid feature) true If selected column false,get multiselect column false

Thank you in advance for your help. I wish you a good day.




Aucun commentaire:

Enregistrer un commentaire