We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Getting Change Event to Fire in SyncFusion's SFAutoComplete Control

Thread ID:

Created:

Updated:

Platform:

Replies:

125261 Aug 3,2016 01:32 PM UTC Aug 4,2016 11:56 AM UTC Xamarin.iOS 1
loading
Tags: SfAutoComplete
Patrick Burrows
Asked On August 3, 2016 01:32 PM UTC

I asked this question over on Stack Overflow, figured I would also report it here:

I am trying to use the SFAutoComplete control from SyncFusion in a Xamarin iPad app. (only iPad).

I am not able to get any sort of change event to fire.

What I've tried:

If you download SyncFusion and install it, it comes with a "SampleBrowser" app that has samples for all the controls in the suite.

If you open that SampleBrowser in visual studio and open the AutoComplete_Tablet.cs file after line 97, I've added this code:

 countryAutoComplete.ValueChanged += (sender, args) =>
 {
     suggestionModeLabel.Text = "IT WORKED!";
 };

But it never fires.

I've tried to use several different events from the list of events this control has (partial list from screenshot):

enter image description here

None of them seem to fire (I haven't tried ALL of them).

What do I need to do to get one of these events to fire? What am I missing?


Hemalatha Marikumar [Syncfusion]
Replied On August 4, 2016 11:56 AM UTC

Hi Patrick Burrows,

Thanks for contacting Syncfusion Support.

We have Delegate property to hook the events of SfAutoComplete. We have created a sample for achieving your requirement. Please download the same from the following link

Linkhttp://www.syncfusion.com/downloads/support/forum/125261/ze/testingAutoComplete_21799375630 

Code Example,
  
autocomplete.Delegate = new SFAutoCompleteDelegate();

public class SFAutoCompleteDelegate : AutoCompleteDelegate
{
public override void DidTextChange(SFAutoComplete SFAutoComplete, string value)
// Hook while changing the text in SfAutoComplete
}
public override void DidSelectionChange(SFAutoComplete SFAutoComplete, string value)
//Hook while changing the suggestion from Suggestion box
}
  
Regards, 
Hemalatha M.R 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;