Author Topic: Pivot mode Issue- Grouping  (Read 2599 times)

EPM Solutions

  • Pro Ultimate
  • Full Member
  • *
  • Posts: 182
    • View Profile
Pivot mode Issue- Grouping
« on: April 22, 2019, 03:30:04 pm »
Hello Team,

                We have requiretment to change grouping option dynamically using dropdown.

It is working fine in Non-Pivot mode but seems it is not working for Pivot Mode.

Also, after Pivot mode on and off it stops working for Non-Pivot Mode as well.

We create a plunker for better understanding. Please check and give your feedback asap.

https://next.plnkr.co/edit/SppPfMTgEyj1Mvg9?preview

Thanks.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Pivot mode Issue- Grouping
« Reply #1 on: April 23, 2019, 10:12:51 am »
Dropdown listener is incorrect in your code.

Please correct it as below.

Code: [Select]
{
            type: 'select',           
            listener:function(evt){             
              this.Group().option({
                dataIndx:$(evt.target).val()? [$(evt.target).val()]: []
              })
            },
            options: [{
                '':'',
                'division': 'Division',
                'Budget_x0020_Year': 'Budget Year'
            }]
}

https://stackblitz.com/edit/paramquery-pivot?file=index.js

EPM Solutions

  • Pro Ultimate
  • Full Member
  • *
  • Posts: 182
    • View Profile
Re: Pivot mode Issue- Grouping
« Reply #2 on: April 23, 2019, 06:08:46 pm »
Hello Team,

Thanks for your quick and valuable reply. We tried your suggestion in our code and it is working fine.

But now Grouping is not coming in Sorted order.

Please check below image for reference.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Pivot mode Issue- Grouping
« Reply #3 on: April 24, 2019, 09:34:13 am »
Please remove sortable: false from column definition and click on header cell to sort it.