Using Autocomplete in ASP.NET Core Grid column using tag helpers

0 Answers 75 Views
Miscellaneous
Rajesh
Top achievements
Rank 1
Iron
Rajesh asked on 19 Jul 2023, 08:37 PM

Hello I have being looking for examples on  using auto complete using tag helpers  but coulnt find any 

in my grid column i have

        <column field="TechnicianAssigned" width="250" editor="categoryDropDownEditor" />

 

 and the categoryDropDownEditor has  code as below....the code hits the  url but not sure how to pass the data from column to  method and serach the functionality.Any example would be helpful.

 

   function categoryDropDownEditor(data) {
            $('<input data-bind="value: value" name="' + data.field + '"/>')
                .kendoAutoComplete({
                    dataSource: {
                        transport: {
                            read: {
                                url: "/Home/EmpSearchData",
                                dataType: "jsonp"
                            }
                        }
                    },
                    dataTextField: "ename",

                    filter: "contains",
                    minLength: 4
                });
        }
Alexander
Telerik team
commented on 24 Jul 2023, 08:46 AM

Hi Rajesh,

I have submitted a possible recommendation targeting an identical topical here that you can review:

I am attaching it here as well in order for the community to further benefit from it as well.

With that in mind, I would recommend continuing the communication either in this thread or within the aforementioned one - wherever you find most suitable in order to continue the communication in a more separate manne.

No answers yet. Maybe you can help?

Tags
Miscellaneous
Asked by
Rajesh
Top achievements
Rank 1
Iron
Share this question
or