'Filter' Button

2 posts, 0 answers
  1. Cholo
    Cholo avatar
    14 posts
    Member since:
    Mar 2016

    Posted 07 Apr 2016 Link to this post

    I made a simple grid (using radgrid control) and i have a combobox that filters details on the grid based on the item selected item in the combo box

    Here's what i have on the client side for the combobox

    <label for ="Label1">Select One:</label>
    <telerik:RadComboBox ID="RadComboBox1" runat="server" DataSourceID="SqlDataSource2" DataTextField="GroupCompany" DataValueField="GroupCompany" AutoPostBack ="true" AppendDataBoundItems ="true" >
        <Items><telerik:RadComboBoxItem Text=" " Value=" " Selected ="true" /></Items>
    <asp:SqlDataSource runat="server" ID="SqlDataSource2" ConnectionString='<%$ ConnectionStrings:SiteSqlServer %>' SelectCommand="SELECT * FROM [Table-GroupCompany]"></asp:SqlDataSource>
    <br />

    The grid uses a different source (SqlDataSrouce1) just for everyone's reference. I used the demo for using Combobox as filter for RadGrid

    How do i make a button that will execute the filter functionality that the combobox makes?

    I couldn't follow nor find the demo for making a filter button (because perhaps it's too much spoon feeding :p) I appreciate any help possible.

    Thank you!

  2. Eyup
    Eyup avatar
    3296 posts

    Posted 12 Apr 2016 Link to this post

    Hi Cholo,

    You can use the filter() method to achieve this requirement:

    You can check the following live sample for a reference:

    You can also examine the first web site from this post:

    I hope this will prove helpful.

    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top