Check filter use

5 posts, 0 answers
  1. Pablo
    Pablo avatar
    5 posts
    Member since:
    Nov 2016

    Posted 12 Dec 2016 Link to this post

    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.

     

  2. Eyup
    Admin
    Eyup avatar
    3288 posts

    Posted 15 Dec 2016 Link to this post

    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.
  3. Pablo
    Pablo avatar
    5 posts
    Member since:
    Nov 2016

    Posted 15 Dec 2016 in reply to Eyup Link to this post

    Thank you but I was asking about RadPivotGrid, not RadGrid.
  4. Eyup
    Admin
    Eyup avatar
    3288 posts

    Posted 20 Dec 2016 Link to this post

    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.
  5. Pablo
    Pablo avatar
    5 posts
    Member since:
    Nov 2016

    Posted 11 Jan Link to this post

    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>

Back to Top