Skip Navigation LinksHome / Community & Support / Code Library / ASP.NET and ASP.NET AJAX > Grid > Multi-Selection RadComboBox for filtering grid

Not answered Multi-Selection RadComboBox for filtering grid

Feed from this thread
  • Posted on Sep 1, 2009 (permalink)

    Requirements

    RadControls version

     2009.1.311+

    .NET version

    2.x/3.x

    Visual Studio version

    2005/2008

    programming language

    C#, Javascript

    browser support

    all browsers supported by RadControls


    PROJECT DESCRIPTION

    This project shows how you could use Multi-Selection RadComboBox (with checkboxes in ItemTemplate) in the FilterTemplate of RadGrid. The application allows the user to filter the grid when checking/unchecking the checkboxes placed in the radcombobox itself. On clicking the checkbox, it loops through each combo item and and gets the unselected items and then passes the corresponding values to the server through an ajax request. Then in the code behind a query is created based on the
    passed values (here, unselected item values) and the radgrid is populated accordingly.

    Thanks,
    Princy.

    Reply

  • Sebastian Sebastian admin's avatar

    Posted on Sep 8, 2009 (permalink)

    Hello Princy,

    Thank you for the provided example - I updated it to support multi-column filtering and keep the dropdown of the RadComboBox editor expanded after filter operation triggered from it. I also added 'Clear filters' button below the grid to reset the data.

    However, I should outline two important things concerning the approach you chose:

    1. It can slow down the overall grid performance when having large amount of items displayed in the combobox.
    2. The number and state of the checkboxes inside the combobox dropdown will not be updated when you apply filters through the rest of the grid columns.

    Your Telerik MVP tokens have been updated for the involvement.

    Best regards,
    Sebastian
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

    Reply

  • Dheeraj avatar

    Posted on Dec 7, 2010 (permalink)

    Hi Princy,

    <telerik:GridBoundColumn DataField="Department" HeaderText="FIlter Department" SortExpression="Department"
                                UniqueName="DepartmentFilter" HeaderStyle-Width="180px">
                                <FilterTemplate>
                                    <telerik:RadComboBox ID="RadComboBox1" runat="server" DataSource='<%# BindDepartmentValues() %>'
                                        DataValueField="Department" DataTextField="Department" EmptyMessage="All Types"
                                        AllowCustomText="true" Width="160px">
                                        <ItemTemplate>
                                           <div class="combo-item-template" >
                                            <asp:CheckBox runat="server" Checked="false" ID="chk1" onclick="onCheckBoxClick(this)" />
                                            <asp:Label ID="lblDepartment" runat="server" Text='<%# Eval("Department")%>' />
                                            </div>
                                        </ItemTemplate>
                                    </telerik:RadComboBox>
    </FilterTemplate>
                            </telerik:GridBoundColumn>

    In above code I have to select multiple department values from Combobox and on select I have to filter the grid(but it should be in conjunction with grid default functionality).
    With this functionality I also want the Default Filter icon and functionality provided by telerik with(value like: Contains, Starts With,Equal To Not Equal To etc ).When I select any option from this it should take the text from Editable combobox and filter based on it.

    could you please suggest me regarding this how to achive both functionalities for the same column.

    Regards,
    Dheeraj

    Reply

  • Neil avatar

    Posted on Aug 17, 2011 (permalink)

    Hi,

    Im having a problem with this example code. The inital request when clicking on a tick box in the filter is passed okay, but subsiquent clicks on tick box items cause a 'null' is null or not an object on the line:

    $find(

    "<%=RadAjaxManager1.ClientID%>").ajaxRequest("ExampleID," + text);

    Is there a way to resolve this?

    Thanks,
    Neil

     

    Reply

  • Mira Mira admin's avatar

    Posted on Aug 23, 2011 (permalink)

    Hello Neil,

    Our system indicates that you have opened a support ticket concerning the same issue.

    In order to avoid duplicate posts, I suggest that we continue the communication in the support ticket.

    All the best,
    Mira
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

    Reply

  • Shekhar avatar

    Posted on Sep 7, 2011 (permalink)

    Hi,

    I would like to know how can I use multiselect RadcomboBox filtering along with the default filter options.

    Thanks
    Shekhar

    Reply

  • Nicolas Nicolas's avatar

    Posted on Nov 10, 2011 (permalink)

    Is it easy to combine 2 multi-selection RadCombobox ?In fact, I also need that but with 2 or 3 columns being filter with comboboxes.
    Users can choose multiple values in different RadCombo and filter the result on not 1 combobox but on the different values selected in the different radcombox.

    Nicolas

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Code Library / ASP.NET and ASP.NET AJAX > Grid > Multi-Selection RadComboBox for filtering grid