Completed
Last Updated: 05 Feb 2020 10:37 by ADMIN
Release 2.6.0
David
Created on: 17 Jun 2019 19:57
Category: UI for Blazor
Type: Feature Request
27
AutoComplete component
We use the jQuery autocomplete in our apps now and would like to be able to use it in our Blazor apps.
11 comments
ADMIN
Marin Bratanov
Posted on: 05 Feb 2020 10:37

Hello Ion,

I might have not been clear enough - what you are seeking is a combo box (perhaps with custom values) where you have the value field and can find a model.

The autocomplete is a free text input for the user that can provide suggestions which are also strings.

If this does not help you move forward, please open a support ticket so we can discuss and see some code, and to avoid sending all those notifications to all those people who are following this page.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
Ion
Posted on: 04 Feb 2020 19:20

Hello again,

 

The sample you provided should be suitable, but I don't have TextField property on TelerikAutoComplete control, like DropDown has - only ValueField, which I like to use it for Id field, and TextField for some user-friendly info.

My Telerik.Blazor package is 2.7.0. Do I miss something?

 

Thanks,

Ion

ADMIN
Marin Bratanov
Posted on: 31 Jan 2020 15:16

Hi Ion,

The ValueChanged receives an object of the type of the ValueField. Then you can look up the actual model from the Data, in a fashion similar to this (see the second example): https://docs.telerik.com/blazor-ui/components/dropdownlist/overview#examples. An entire model cannot be a Value, because then validation (and a bunch of other things) would not work.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
Ion
Posted on: 31 Jan 2020 14:53

Hello Marin,

I updated Blazor Telerik to 2.7.0, OnRead event is there :), and I was able to get data from the remote source - a list of LocalityModel type, but I'm not able to bind the selected item to a LocalityModel value. In https://docs.telerik.com/blazor-ui/components/autocomplete/events sample, selected value binds to a string. It is possible, for example, to have 

OnChange="@((object x) => OnLocalityChange(x))"

where x to be of type LocalityModel (not string)?

Thanks,

Ion

ADMIN
Marin Bratanov
Posted on: 27 Jan 2020 14:07

Hello Ion,

It should be possible now (just make sure there is an empty list of suggestions at least https://docs.telerik.com/blazor-ui/components/autocomplete/data-bind#missing-data), and with our upcoming 2.7.0 release a dedicated OnRead event will enable custom filtering and loading suggestions on demand: https://github.com/telerik/blazor-docs/blob/master/components/autocomplete/events.md#onread

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
Ion
Posted on: 27 Jan 2020 12:58

Hi Marin,

 

Do you have a sample of binding Autocomplete component to a remote data source? I tried to get data from a controller via HttpClient Get method, but no success.

 

Thanks,

Ion

Ion
Posted on: 15 Dec 2019 22:08

Please, add a "MinLength" attribute, so we can perform the filtering and binding after typing few characters. For example, I have a huge static data list (>10000 records) and I would like to perform the filtering after typing 2 or 3 characters.

Thanks!

ADMIN
Marin Bratanov
Posted on: 19 Jun 2019 12:50
Hi Robert,

Thank you for your kind words and for your trust. Also, for confirming that the grid is more important to you as well.

I tried to answer with full candor because I was not completely sure if the comment was serious or not, so I chose to answer as if it were :) My apologies for misunderstanding, written communication sometimes masks emotions like that.

Do stay tuned, a lot of things are coming up - we just release support for Preview 6 mere minutes ago, and we're also working on menu and treeview.


Regards,
Marin Bratanov
Progress Telerik UI for Blazor
Robert
Posted on: 18 Jun 2019 14:34

Hi Marin,

My sarcasm was not well received, and I apologize for coming across as crass.   Of course Kendo/Telerik is world class, and we all look forward to prioritization of our favorite features and I am aggressively excited about the possibilities of Blazor. I absolutely agree that the advanced grid features are more important.

Thank you for all you do!

 

 

 

 

ADMIN
Marin Bratanov
Posted on: 18 Jun 2019 09:13
Hello Robert,

I guess people want an advanced grid more - from all the feedback we've received that was at the top of the list of the things we don't yet have.

The fact that this request was only now submitted by your company also means that it hasn't had time to accrue interest (apart from your own 4 votes), as it has only been live for under a day. With this in mind, if such a component is critical for your app development, I encourage you to open a private support ticket so we can discuss options.


Regards,
Marin Bratanov
Progress Telerik UI for Blazor
Robert
Posted on: 17 Jun 2019 20:19

How is this not the top upvoted item??  :-)