This is a migrated thread and some comments may be shown as answers.

Filter not working for RadCombobox

1 Answer 83 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Rajesh
Top achievements
Rank 1
Rajesh asked on 26 Apr 2013, 09:10 PM
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>

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 01 May 2013, 01:58 PM
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.
Tags
ComboBox
Asked by
Rajesh
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or