Filtering with OData

4 posts, 1 answers
  1. Baptiste
    Baptiste avatar
    2 posts
    Member since:
    Apr 2013

    Posted 17 May 2013 Link to this post

    Hello,

    I am using a combobox with an OData data source as defined here:

    <telerik:RadODataDataSource runat="server" ID="RadODataDataSource1" EnablePaging="True" EnableSorting="True" EnableFiltering="True">
        <Transport>
            <Read Url="http://localhost/DataService/" DataType="JSONP"></Read>
        </Transport>
        <Schema>
            <telerik:DataModel ModelID="Country" Set="CustomCountries">
                <telerik:DataModelField FieldName="Name"></telerik:DataModelField>
                <telerik:DataModelField FieldName="ISOCountryCode"></telerik:DataModelField>
            </telerik:DataModel>
        </Schema>
    </telerik:RadODataDataSource>
     
    <telerik:RadComboBox runat="server" ID="RadComboBox1" ODataDataSourceID="RadODataDataSource1" Filter="Contains"
        DataModelID="Country" DataTextField="Name" DataValueField="ISOCountryCode" EnableLoadOnDemand="True"
        MaxHeight="200">
    </telerik:RadComboBox>

    I was expecting that when filtering, the combobox would use the $filter parameter but when inspecting the request, it is always empty. Am I missing something?


    Thanks in advance,

    Baptiste

    PS: One more question, will OData v3 be supported in a near future? :)
  2. Answer
    Nencho
    Admin
    Nencho avatar
    1457 posts

    Posted 22 May 2013 Link to this post

    Hello Baptiste,

    I noticed that you sent us an identical support ticket. Therefore, I would like to ask you to continue the communication in the other ticket, in order to keep the correspondence consistent.

    Regards,
    Nencho
    Telerik
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Denis
    Denis avatar
    6 posts
    Member since:
    Sep 2011

    Posted 29 Aug 2013 Link to this post

    Hello,

    I have the similar issue. OData + WebAPi, RadODataDatasource, RadCombobox. The "$filter" property is always empty (as well as $orderby). Is it a WebAPI which does not understand empty queries or RadCombobox which sends incorrect query problem?

    Thank you,
    Denis Mitropolskiy
  5. Nencho
    Admin
    Nencho avatar
    1457 posts

    Posted 03 Sep 2013 Link to this post

    Hello Denis,

    We had inspected the issue thoroughly and it turned out  that this is a bug, which is already forwarded to our developer team for further inspection. As for the OData v3 support, here you may vote and tack that feature request progress. Please excuse us for any inconveniences caused.

    Regards,
    Nencho
    Telerik
    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 the blog feed now.
Back to Top