Author Topic: Add Dropdown in column header. Apply value to whole column  (Read 746 times)

vijay@spinetechnologies

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 87
    • View Profile
Add Dropdown in column header. Apply value to whole column
« on: December 07, 2021, 08:16:50 pm »
2. How to add dropdown in the column header. I need apply all functionality. From header user can select value and apply to whole column.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Add Dropdown in column header. Apply value to whole column
« Reply #1 on: December 08, 2021, 03:43:43 pm »
dropdowns can be added via context menu in column header.

Any number of items can be added in context menu and linked to grid API via context menu item listener.

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

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Add Dropdown in column header. Apply value to whole column
« Reply #2 on: December 08, 2021, 08:32:20 pm »
Values can be updated in a column with updateRow or Range().value() methods.

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

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