DropDownList with Custom DS Server Filtering

2 posts, 1 answers
  1. Dima
    Dima avatar
    48 posts
    Member since:
    Feb 2012

    Posted 12 Apr Link to this post

    I found that ServerFiltering is not working out of the box if you set Custo() in datasorce

    Like in this example

    http://demos.telerik.com/aspnet-mvc/autocomplete/grouping

    This is about AutoComplete control. And text send to server via onAdditionalData Function

    How I need to do same for DropDownList.

    my solution to access filter text input is

        function onAdditionalData() {
            return {
                text: $("#Course").data("kendoDropDownList").filterInput[0].value
            };
        }

     

    Looks a bit awkward for me

    Can team please explain what if better way here

  2. Answer
    Plamen
    Admin
    Plamen avatar
    2810 posts

    Posted 16 Apr Link to this post

    Hi,

    Yes this is the correct way to get the string from the filter input - it is not an official value of the control because the value will not be set if there is no item with such value.

    Hope this will explain the issue.

    Regards,
    Plamen
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top