Author Topic: Custom Editor: Textbox with button  (Read 2170 times)

shoushouleb

  • Newbie
  • *
  • Posts: 12
    • View Profile
Custom Editor: Textbox with button
« 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,

shoushouleb

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Custom Editor: Textbox with button
« Reply #1 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>");
                                        }
                                    }
                                }