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

bind to new data after text change

5 Answers 274 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
Sagi
Top achievements
Rank 1
Sagi asked on 29 Sep 2013, 11:22 AM
Hi,
I'm trying to bind the multiselect widget to a different source depends on the text.
It means that I need to detect every text change and than re-bind the widget's datasource.
How can I achieve that ?
Is there any event for text change ? (not select event)
btw,  My data source is very big so I can not bring it tio the client and use local datasource , In addition I can not bind it to remote data source cause the data is changing very quickly and updating the entire data (into odata format) is very expensive.

Sagi

5 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 01 Oct 2013, 02:41 PM
Hello Sagi,

Basically you can add custom keydown handler to the input element of the multiselect.

e.g.

$('#products').data().kendoMultiSelect.input.on('keydown',function(e){
     console.log('key down ->' , e);
})

Here is an example:

http://jsbin.com/ecivUw/2/edit


Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Venkat Chalasani
Top achievements
Rank 1
answered on 29 Jul 2015, 11:04 AM

Hi,

 

I am stuck in the same situation as Sagi. But I am developing with AngularJS  and Kendo UI v2014.2.903.

Please advice me solution to implement in AngularJS.  

 

My sample GET call is as : 

 Thanks in advance.

Regards,

 

dataSource: {
                     type: "json",
                serverFiltering: true,
 
                transport: {
                    read: function (options) {
                        var config = {
                            method: 'GET',
                            url: eventsService + "/getdata?q=a",
                            headers: credentials
                        };
                        $http(config).success(function (data) {
                            options.success(data);
                        });
 
                    }
                }
            }

 

0
Kiril Nikolov
Telerik team
answered on 31 Jul 2015, 08:38 AM

Hello Venkat Chalasani,

 

Please open a separate support request with some more information and we will be happy to help you.

 

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Venkat Chalasani
Top achievements
Rank 1
answered on 31 Jul 2015, 12:44 PM

i am able to  solve the issues.

 

 

Thanks

0
Kiril Nikolov
Telerik team
answered on 03 Aug 2015, 08:17 AM

Hello Venkat Chalasani,

 

Happy to hear that the issue is resolved. But in case you have any future questions, do not hesitate to open a thread and contact us.

 

 

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
MultiSelect
Asked by
Sagi
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Venkat Chalasani
Top achievements
Rank 1
Kiril Nikolov
Telerik team
Share this question
or