Author Topic: Export value  (Read 242 times)

queensgambit9

  • Pro Ultimate
  • Sr. Member
  • *
  • Posts: 341
    • View Profile
Export value
« on: May 16, 2023, 12:47:31 pm »
Hi

Using 3 jquery tabs.
I use mumtiple toolbar definitions, One for tabs 1 and another for tab 2, 3. Having issue with export function where value from dropdown to select format is not picked from correct grid.
Example in tab 3 I choose csv but format is picked from grid in tab 2.

Do I need to have separate toolbar for each tab or can I reuse toolbar but handle logic to select drowdown from correct grid?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Export value
« Reply #1 on: May 16, 2023, 01:55:59 pm »
Try assigning class instead of id to the format dropdown.

and read the format value as

Code: [Select]
var format = this.toolbar().find('.export-format').val()

as in this example: https://paramquery.com/pro/demos/export