Telerik Forums
UI for Xamarin Forum
0 answers
56 views

 

Good Day,

Kindly help with the issue below:

I implemented RadAutoCompleteView in my Xamarin.forms application.

It works fine on  Android phones and Android tablets.

it works fine on the IOS tablets but failed on ios phones.

The entry input is displayed on IOS phones but the SuggestionItemTemplate does not display.

Kindly help on this issue as below is the name of the package i installed.

Telerik.UI..for,Xamarin.Lite

 

 

 

 

 

ILIASU
Top achievements
Rank 1
 asked on 09 Nov 2021
1 answer
57 views
Hello,

I have an issue with ,

I have a scenario like send Message to the Recipients, 

When select any Token, will appear, and then can not disappear keyboard with the *Return key*. I have to compulsory delete that Token for the keyboard,

Even, AutocompleteTextView.ResignFirstResponder() not disappearing Keyboard.

So, If can help me this, will be appreciated.

Thanks,
Yana
Telerik team
 answered on 07 Feb 2019
2 answers
73 views
Hello Team,

I am getting Issue while Remove Token Programmatically.

Steps i Follow:

1) I am Adding my Token Programmatically, which is successfully Add in the AutoCompleteTextView,
I am adding Token using Below Method.
=> this.Autocomplete.AddToken(new TKAutoCompleteToken(new NSString("DummyToken")));

2) Now when i try to remove the same Token Programmatically, I ma using Below Code,
=> this.Autocomplete.RemoveToken(new TKAutoCompleteToken(new NSString(DummyToken)));

But it is not removing from AutoCompleteTextView.

I spent many hours but not getting success,

So, if anyone can help me on this, it will be appreciated.

Thanks,

Mayank
Top achievements
Rank 1
 answered on 03 Jan 2019
2 answers
64 views

Hi,

 

I was trying to replace the 'X' image in 'CloseButton' for the Token, but I cannot remove the original image

This is my code inside of TKAutoCompleteDelegate class:

 

public class TKAutoCompleteDelegateWrap : TKAutoCompleteDelegate
    {
        //public List<UserAndGroupResult> UserToSendList { get; set; }

        public override void DidAddToken(TKAutoCompleteTextView autocomplete, TKAutoCompleteToken token)
        {
            var t = ((TKSuggestionListView)autocomplete.WeakSuggestionView).SelectedIndexPath;
            var tt = t.Row;

            var tt1 = (TKAutoCompleteTokenWrap)token;
            Console.Write(tt1.Id);
            ((TKListView)autocomplete.WeakSuggestionView).ScrollToItem(((TKSuggestionListView)autocomplete.WeakSuggestionView).SelectedIndexPath, UICollectionViewScrollPosition.Top, true);
        }
        public override void DidSelectToken(TKAutoCompleteTextView autocomplete, TKAutoCompleteToken token)
        {
            Console.WriteLine();
        }

        public override void DidAutoComplete(TKAutoCompleteTextView autocomplete, TKAutoCompleteToken token)
        {
            
        }
        public override void DidRemoveToken(TKAutoCompleteTextView autocomplete, TKAutoCompleteToken token)
        {
            
        }

        public override TKAutoCompleteTokenView ViewForToken(TKAutoCompleteTextView autocomplete, TKAutoCompleteToken token)
        {
            TKAutoCompleteTokenView tokenView = new TKAutoCompleteTokenView(token);

            tokenView.BackgroundColor = GlobalUI.LABEL_TEXT_COLOR_DARK;
            tokenView.TextLabel.Font = UIFont.FromName(GlobalUI.FONT_NEXT, 15);
            tokenView.TextLabel.TextColor = StyleKit.White;

            tokenView.Layer.CornerRadius = 5;
            tokenView.ImageView.Layer.CornerRadius = 3;

            TKAutoCompleteTokenRemoveButton _closeBtn = (TKAutoCompleteTokenRemoveButton)tokenView.RemoveButton; 
            _closeBtn.SetImage(StyleKit.ImageOfX_Ico_White(new CGSize(10,10)), UIControlState.Normal);
         
            return tokenView;
        }

    }

 

So, The attached file is showing that I am getting two images over one other.

 

how can I do to fix that?

 

Thanks.

 

 

 

Andy
Top achievements
Rank 1
 answered on 09 Feb 2018
0 answers
56 views

the autocomplete textfield seems to come with a border (or margin... or padding...)

looks like a 1 pixel space between the autocomplete control and whatever control comes next under it

how can i get rid of it?

 

also the clear (x) button of the textfield isnt in the proper location (far right), seems like the textfield is not as wide as the autocomplete control itself...

how would i change it to be full width?

 

i attached a small picture showing the gaps... the autocomplete control is where "General hospital" is showing

 

thanks in advance

roy
Top achievements
Rank 1
 asked on 26 Apr 2017
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?