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

Check filter use

4 Answers 88 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Pablo
Top achievements
Rank 1
Pablo asked on 12 Dec 2016, 08:46 AM

is there any way to mark by any way a filter button when its filters are being used? I need to know when a filter is being used without having to open it.

 

4 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 15 Dec 2016, 09:24 AM
Hi Pablo,

You can check the attached web site sample to see how you can achieve this requirement.

Regards,
Eyup
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Pablo
Top achievements
Rank 1
answered on 15 Dec 2016, 11:57 AM
Thank you but I was asking about RadPivotGrid, not RadGrid.
0
Eyup
Telerik team
answered on 20 Dec 2016, 09:11 AM
Hello Pablo,

I'm afraid there is no built-in functionality to achieve this requirement.

Regards,
Eyup
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Pablo
Top achievements
Rank 1
answered on 11 Jan 2017, 11:28 AM

I have found a crappy workaround

.vb

Protected Overrides Sub OnPreRender(e As EventArgs)
        MyBase.OnPreRender(e)
 
        Dim css As String = ""
 
        For Each filter As PivotGridFilter In RadPivotGrid1.Filters
 
            css = css & "#ctl00_ContentPlaceHolder1_RadPivotGrid1_ctl00_ctl00_rc_" & filter.FieldName & "{background-color:" & ConfigurationManager.AppSettings.Item("PivotFilterActiveColor") & "!important;}" & vbCrLf
            css = css & "#ctl00_ContentPlaceHolder1_RadPivotGrid1_ctl01_ctl01_rc_" & filter.FieldName & "{background-color:" & ConfigurationManager.AppSettings.Item("PivotFilterActiveColor") & "!important;}" & vbCrLf
            css = css & "#ctl00_ContentPlaceHolder1_RadPivotGrid1_ctl02_RowZone1_rc__" & filter.FieldName & "{background-color:" & ConfigurationManager.AppSettings.Item("PivotFilterActiveColor") & "!important;}" & vbCrLf
 
        Next
 
        estilo.InnerHtml = css
 
    End Sub

 

.aspx

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadPivotGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadPivotGrid1" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                    <telerik:AjaxUpdatedControl ControlID="estilo" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>
     
    <style id="estilo" runat="server"></style>

Tags
PivotGrid
Asked by
Pablo
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Pablo
Top achievements
Rank 1
Share this question
or