Clear Button Colour

5 posts, 1 answers
  1. Hernando
    Hernando avatar
    15 posts
    Member since:
    Jun 2018

    Posted 03 Apr Link to this post

    how can I change the Clear button Colour (X) ? 

     

    Thanks 

     

    Hernando

  2. Didi
    Admin
    Didi avatar
    208 posts

    Posted 03 Apr Link to this post

    Hello Hernando,

    Could you please elaborate more which clear button you mean - The RadAutoCompleteView Entry (x) button or the RadAutoCompleteView Tokens (x) button?

    1) AutoCompleteView Entry (x) button does not provide customization options.

    2) Tokens (x) button could be customized through the TokenTemplate property. I have attached a sample that shows how to achieve this. Note that when the RadAutoCompleteView Token Template is used its override the default template. In this case you should add the "X" icon manually. The icon is located in the telerikfontexamples.ttf file. For more details regarding this check the following link from our documentation: https://docs.telerik.com/devtools/xamarin/styling-and-appearance/telerik-font-icons

    Please review the attached sample (The icon is defined as a resource in the App.xaml file and used in the AutoCompleteView TokenTemplate - MainPage.xaml file) and let me know if you have any further questions.
     
    Regards,
    Didi
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Hernando
    Hernando avatar
    15 posts
    Member since:
    Jun 2018

    Posted 03 Apr in reply to Didi Link to this post

    Hi ,  Option 1 AutoCompleteView Entry (x). ;(

    another question regarding AutoCompleteView, can you Data Binding to commands?

    I am just replacing the search bar in our app with the AutoCompleteView , we have implemented MVVM with search Commands  on the viewModel. for example 

     public ICommand SearchCommand => new Command(searchText =><br>        {…...
  4. Answer
    Didi
    Admin
    Didi avatar
    208 posts

    Posted 04 Apr Link to this post

    Hi Hernando,

    I am glad to hear you want to use the RadAutoCompleteView in your app.

    Regarding to the question: "Can you Data Binding to commands?" - Currently the RadAutoCompleteView control does not provide a commands equivalent to the AutoCompleteView events. In this case you will need to use the Xamarin.Forms EventToCommandBehavior.

    I have attached a sample that shows how the EventToCommands behavior could be implemented for the AutoCompleteView - SuggesionItemSelected event.

    I hope this will help.

    Regards,
    Didi
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  5. Hernando
    Hernando avatar
    15 posts
    Member since:
    Jun 2018

    Posted 05 Apr in reply to Didi Link to this post

    Thank you .
Back to Top