This is a migrated thread and some comments may be shown as answers.

Error while filtering in pivot grid

1 Answer 59 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Kalyani
Top achievements
Rank 1
Kalyani asked on 16 Jun 2015, 05:49 PM

I have a pivot grid which connects to the olap cube.  Some of my cube fields do not have any values.  When I create the pivot grid I still see the filter icon in those fields.  When I click on those fields I get an error.  How can I avoid this error. In the image attached I would like to hide the filter icon for the "Actual Dollars" field. How can I achieve this?   

 

Thank you

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 19 Jun 2015, 11:30 AM
Hello,

Are you displaying the custom error alert to the user as we do not have such functionality built-in to the control?

As for hiding the filter icon you can do the following

JavaScript:
function pageLoad()
{
    var items=$telerik.$('.rpgFieldItem a');
for(i=0;i<items.length;i++)
{
    if(items[i].innerHTML=="Actual Dollars")
    {
        items[i].parentNode.children[items[i].parentNode.children.length-1].style.display='none';
    }
}
}


Regards,
Angel Petrov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
PivotGrid
Asked by
Kalyani
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or