views:

48

answers:

1

Hello,

I'd like to know if there is a way to tell if the RadToolBarButton "Filter" is checked or not using JS.

    <telerik:RadToolBar ID="SelectionToolBar" runat="server" OnButtonClick="SelectionToolBar_Click" OnClientButtonClicking="clientButtonClicking">
            <Items> 
                <telerik:RadToolBarButton Value="Flagged" Text="Flagged Reports" Group="ViewMode" CheckOnClick="true"/>
                <telerik:RadToolBarButton Value="Separator" IsSeparator="true"/>
                <telerik:RadToolBarButton IsSeparator="true"/>
                <telerik:RadToolBarButton ImageUrl="~/images/refresh.png" Value="Refresh" ToolTip="Refresh"/>
                <telerik:RadToolBarButton IsSeparator="true"/>
                <telerik:RadToolBarButton Value="Filter" ImageUrl="~/images/funnel.png" CheckOnClick="true" Checked="false" AllowSelfUnCheck="true" ToolTip="Toggle Filters"/>
            </Items>     
        </telerik:RadToolBar>

Since RadToolBarButton is a subset of RadGridSelectionToolBar I wasn't sure how to get the property of one specific button.

Many thanks.

A: 

Why don't you use the get_checked client property of RadToolBarButton inside the OnClientButtonClicking handler you wired? That should do the trick.

Dick Lampard