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

Server side filter parsing

2 Answers 74 Views
MultiColumnComboBox
This is a migrated thread and some comments may be shown as answers.
JT
Top achievements
Rank 1
JT asked on 30 Oct 2019, 12:13 AM
I would like to send the text of the combos input into the querystring (?text=abc) when server-side filtering. How can I accomplish this with the wrapper? Alternatively, is there code provided for parsing default query string information?

2 Answers, 1 is accepted

Sort by
0
JT
Top achievements
Rank 1
answered on 30 Oct 2019, 04:14 PM

I found a way to do this clientside by doing the following:

 

var combo = $("#combo").data("kendoMultiColumnComboBox");

combo.dataSource.transport.options.read.data = function () {
    return { text: $("#combo").data("kendoMultiColumnComboBox").text() }
};

 

Wondering if there is a way to do this server side in the control markup? Worst case I can use the ScriptManager to add it to every server side multi column combobox.

0
Peter Milchev
Telerik team
answered on 01 Nov 2019, 11:24 AM

Hello JT,

Until the server-side filtering via ItemsRequested event is implemented, you can use the ClientDataSource as suggested in the feedback portal item: 

The MultiColumnComboBox can be bound the ClientDataSource. The settings to configure the WebService binding are almost identical between the MultiColumnComboBox and the ClientDataSource, so you would be able to easily setup the ClientDataSource. 

The benefit of using the ClientDataSource would be using the OnCustomParameter event, which allows you to send various data to the server in the desired format:

Regards,
Peter Milchev
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
MultiColumnComboBox
Asked by
JT
Top achievements
Rank 1
Answers by
JT
Top achievements
Rank 1
Peter Milchev
Telerik team
Share this question
or