Filter not working for RadCombobox

2 posts, 0 answers
  1. Rajesh
    Rajesh avatar
    6 posts
    Member since:
    Apr 2013

    Posted 26 Apr 2013 Link to this post

    Hi,

    I have created a RadCombo control and binded some values to it. I want to add filter to that combobox and applied the filter value using Filter="Contains" property as seen in the code below. When I expect the values to be filtered, it does not. Please find the screenshot attached. 

    btw, I have referenced the script resource assembly i.e. axd file in the web.config (included) and is there anything wrong in that file. 
    Am I missing anything ? 

      
    <form id="form1" runat="server">
       <div>
            
        <telerik:RadScriptManager runat="server" ID="RadScriptManager1">
              
        </telerik:RadScriptManager>
        <table>
           <tr>
               <td><telerik:RadComboBox ID="RadComboBox1" runat="server" Width="186px"  AutoPostBack="true"  EnableLoadOnDemand = "true" Filter="Contains" OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged" Label="Country:" /></td>
               <td><telerik:RadComboBox ID="RadComboBox2" runat="server" Width="186px" AllowCustomText="true" Filter="Contains" Label="Province:" OnSelectedIndexChanged="RadComboBox2_SelectedIndexChanged" /></td>
           </tr>
            <tr>
               <td>Country : <asp:Label ID="lblCountry" runat="server" Text=""></asp:Label> </td>
               <td>Province :<asp:Label ID="lblProvince" runat="server" Text=""></asp:Label></td>
           </tr>
        </table>
         <asp:XmlDataSource runat="server" id="XmlDataSource1" XPath="Countries"
               DataFile="~/App_Data/CountryRegionMapping.xml"/>
       </div>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadComboBox1" >
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadComboBox2" />
                    </UpdatedControls>
                </telerik:AjaxSetting>           
            </AjaxSettings>        
           </telerik:RadAjaxManager>
           <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
       </form>
    <configuration>
        <system.web>
            <compilation debug="true" targetFramework="4.0" />
          <httpHandlers>
            <remove verb="*" path="*.asmx" />
            <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
          </httpHandlers>
          <httpModules>
            <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          </httpModules>
        </system.web>
        
       
    </configuration>
  2. Plamen
    Admin
    Plamen avatar
    2968 posts

    Posted 01 May 2013 Link to this post

    Hi Rajesh,

     
    Thank you for contacting Telerik support.

    I have inspected and tested the code that you shared but could not reproduce the described unusual behavior. Would you please share the code behind so we could take a look at it as well and be more helpful?

    Greetings,
    Plamen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top