ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: shoushouleb on August 16, 2018, 05:22:23 pm

Title: Custom Editor: Textbox with button
Post by: shoushouleb on August 16, 2018, 05:22:23 pm
I need to create a custom editor in the PQGrid, that contains a text-box and to the right of it a button.

Thanks,
Title: Re: Custom Editor: Textbox with button
Post by: shoushouleb on August 30, 2018, 05:03:43 pm
Solution:


  {
                                    title: "Policy", width: 95, dataIndx: "Name",
                                    editor: {

                                        type: function (ui) {

                                            ui.$cell.append(ui.rowData["Name"] + "<button class='pqGrid-dots-button' onclick='showPolicies(this)'>...</button>");
                                        }
                                    }
                                }