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

DropDownList with Custom DS Server Filtering

1 Answer 93 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Dina
Top achievements
Rank 1
Dina asked on 13 Apr 2017, 12:34 AM

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

1 Answer, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 17 Apr 2017, 04:48 AM
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.
Tags
DropDownList
Asked by
Dina
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or