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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SourceProvider asynchronous sources

Thread ID:





142325 Jan 28,2019 06:08 PM UTC Jan 29,2019 07:24 AM UTC Xamarin.Forms 1
Tags: SfDataForm
Asked On January 28, 2019 06:08 PM UTC

        public override IList GetSource(string sourceName)
            var list = new List<LookupValue>();

            if (!string.IsNullOrEmpty(countryCode))
                var task = CurrentState.Instance.ServiceClient.ListAllProvinces(countryCode);
                var items = task.GetAwaiter().GetResult();
            return list;

I want to call an async method from my GetSource provider...is there a documented approach to achieve this? The above code locks and causes the app to stall.

Jayaleshwari N [Syncfusion]
Replied On January 29, 2019 07:24 AM UTC

Hi Mark, 
Thanks for contacting Syncfusion Support. 
We have checked the reported query “SourceProvider asynchronous sources” from our side. You can refer the following article to get the source as asynchronously. 
Please let us know if you would require further assistance. 
Jayaleshwari N. 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon