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

SfChart bug?

Thread ID:

Created:

Updated:

Platform:

Replies:

130809 Jun 5,2017 01:06 AM UTC Jun 9,2017 06:12 AM UTC UWP 3
loading
Tags: SfChart
Arman Balin
Asked On June 5, 2017 01:06 AM UTC

Hi,

There seems to be an issue with SfChart wherein an error is thrown when I try opening an SQLite database after a chart s created.

Below is a sample method that crashes when called after a chart is created. It runs fine if there's no chart on the page yet.



        public static void GetTrendData(string assetID, ObservableCollection<StringTrendline> trendData)
        {
            trendData.Clear();
            using (SqliteConnection db = new SqliteConnection("Filename=" + AppDatabase))
            {
                SqliteDataReader query = null;
                try
                {
                    db.Open();
                    SqliteCommand selectCommand = new SqliteCommand("SELECT Result, MaintDate, TrendID FROM tbl_TestResult WHERE AssetID = '" + assetID + "'", db);
                    query = selectCommand.ExecuteReader();
                }
                catch (SqliteException error)
                {
                    System.Console.WriteLine(error.Message);
                    System.Diagnostics.Debug.WriteLine(error.Message);
                }
                while (query.Read())
                {
                    StringTrendline row = new StringTrendline()
                    {
                        AssetResult = query.GetString(0),
                        Timeline = query.GetString(1),
                        AssetTypeResult = "",
                        TrendID = query.GetString(2)
                    };
                    trendData.Add(row);
                }
                db.Close();
            }
        }

Durgadevi Selvaraj [Syncfusion]
Replied On June 7, 2017 01:59 PM UTC

Hi Arman,

Thanks for contacting Syncfusion Support.

We would like to inform you that we are unable to reproduce the reported problem at our end. We have prepared a demo sample with the reference of provided information for your reference and it can be downloaded from below link, 

If you are still able to reproduce the reported problem, please revert us by modifying the provided sample. It would be helpful for us to serve you better.

Regards,
Durgadevi S
 


Arman Balin
Replied On June 8, 2017 08:00 AM UTC

Hi Durgadevi,

Thanks for the sample you've sent.

I ran the project by itself and it worked without the issues I'm encountering in my project.

I shall try and add this to my project and see if the issue persists.

Regards,
Arman

Durgadevi Selvaraj [Syncfusion]
Replied On June 9, 2017 06:12 AM UTC

Hi Arman,

Thanks for your update.

We will wait until hear from you.

Regards,
Durgadevi S

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

;