using searchBuilder with export Buttons.

using searchBuilder with export Buttons.

BhavinBhattBhavinBhatt Posts: 24Questions: 8Answers: 0

buttons: [
'copy', 'csv', 'excel', 'pdf', 'print'
]
,dom:'QBfrtip'
shows 'AddCondition' Button with other export buttons.
Now I want to show popup while giving conditions for filtering to save space on page.

How to do this?

Answers

  • allanallan Posts: 57,254Questions: 1Answers: 9,118 Site admin

    Sounds like you want to use the searchBuilder button type rather than the Q option in dom.

    See this example. It doesn't use other button types, but they could be readily added to the array.

    Allan

  • BhavinBhattBhavinBhatt Posts: 24Questions: 8Answers: 0

    Thanks allan,

    i've tried with putting only SearchBuilder Button. but it fires error... when click on that button...

    Uncaught TypeError: this.popover is not a function
    at s.action (dataTables.searchBuilder.min.js:119:422)
    at k (VM351 dataTables.buttons.min.js:16:415)
    at HTMLButtonElement.<anonymous> (VM351 dataTables.buttons.min.js:17:284)
    at HTMLButtonElement.dispatch (jquery-3.0.0.js:5087:27)
    at elemData.handle (jquery-3.0.0.js:4895:28)
    action @ dataTables.searchBuilder.min.js:119
    k @ VM351 dataTables.buttons.min.js:16
    (anonymous) @ VM351 dataTables.buttons.min.js:17
    dispatch @ jquery-3.0.0.js:5087
    elemData.handle @ jquery-3.0.0.js:4895

  • colincolin Posts: 14,531Questions: 1Answers: 2,484

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

Sign In or Register to comment.