Author Topic: Add Column to Grid without having any colModel  (Read 1761 times)

Sivakumar

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 32
    • View Profile
Add Column to Grid without having any colModel
« on: January 13, 2021, 07:27:28 pm »
Hi,

How can I add the column with delete button at the end of the grid to delete a particular row from the grid?

I tried to follow the Columns API, but was not able to understand how it can be implemented.

Below is the jsfiddle link:
https://jsfiddle.net/ucknge23/1/

Appreciate your help.

--
Uttam

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6210
    • View Profile
Re: Add Column to Grid without having any colModel
« Reply #1 on: January 21, 2021, 09:48:56 am »
It's the same method to add new columns.

grid.Columns().add()

https://paramquery.com/pro/api#method-Columns

Example: https://paramquery.com/pro/demos/context_menu