Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Filter on combobox lookup column not working

$
0
0

Georgi,

Thanks for the reply.Using your example, I was able to implement the “kendoComboBox”; however, I need to pass a “text” as a method parameter to the controller to make the combobox work.  So, how can I pass the text input to the controller? 

columns.Bound(q => q.Vendor).ClientTemplate("#: data.Vendor ? data.Vendor.Name : '[None]' #") .EditorTemplateName("ComboBoxLookup_Vendor")
.Filterable(filterable => filterable.Cell(cell => cell.Template("vendorFilter"))).Width(200);

functionvendorFilter(container) {
            container.element.kendoComboBox({
                name: "vendors",
                dataTextField: "Name",
                dataValueField: "VendorID",
                placeholder: "Select a vendor",
                autoBind: false,
                dataSource: {
                    transport: {
                        read: "@Url.Action("_GetVendors", "Quote")",
                    },
                    serverFiltering: false
                },
            });
        }

Controller:

publicActionResult _GetVendors(stringtext)

 

Thanks


Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>