Author Topic: export to pdf from grouped grid with selection checkbox  (Read 259 times)

arbyter

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 43
  • Retired IT Guy
    • View Profile
export to pdf from grouped grid with selection checkbox
« on: December 21, 2023, 08:39:31 pm »
hi
i am happy to discover the pdf export feature.
Now i try to export a grid with group using the checkbox option:
obj.groupModel = {
            checkbox: true,
            checkboxHead: true,           
            on: true,
            dataIndx: ["titel"],                       
            menuItems: ["grandSummary"],           
            summaryInTitleRow: "all",
            titleInFirstCol: true,
            fixCols: false,
            indent: 320,
            collapsed: [false, true],
            title: [
                "{0} ({1})",
                "{0} - {1}"
            ]
when i want to export some of the checked records (option selection:"row" , nothing gets exported)

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: export to pdf from grouped grid with selection checkbox
« Reply #1 on: December 21, 2023, 10:30:27 pm »
option selection:"row" is for row selections, so you also need to add select: true to groupModel.

arbyter

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 43
  • Retired IT Guy
    • View Profile
Re: export to pdf from grouped grid with selection checkbox
« Reply #2 on: December 23, 2023, 04:14:54 pm »
thanks a lot!