Author Topic: Load the Grid Fields Selection dialog from a button click  (Read 337 times)

mikep

  • Pro Ultimate
  • Full Member
  • *
  • Posts: 163
    • View Profile
Load the Grid Fields Selection dialog from a button click
« on: September 24, 2024, 06:18:40 pm »
I need to open the Grid Fields selection dialog from a button click event instead on clicking on the column hamburger icon. How can this be accomplished?
« Last Edit: September 24, 2024, 06:20:45 pm by mikep »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6307
    • View Profile
Re: Load the Grid Fields Selection dialog from a button click
« Reply #1 on: September 26, 2024, 10:01:16 pm »
Since there is no API for it, you can trigger a click.

Code: [Select]
  grid.getCellHeader({dataIndx: field_name }).find(".pq-icon-menu").click();

mikep

  • Pro Ultimate
  • Full Member
  • *
  • Posts: 163
    • View Profile
Re: Load the Grid Fields Selection dialog from a button click
« Reply #2 on: October 01, 2024, 05:50:54 pm »
Thank you. Can you update the button click in what I've tried?
https://jsfiddle.net/mkb0xevh/


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6307
    • View Profile
Re: Load the Grid Fields Selection dialog from a button click
« Reply #3 on: October 01, 2024, 06:45:03 pm »
Sorry it's ".pq-menu-icon"

Here is the jsfiddle: https://jsfiddle.net/1Lbe5rp7/