Share via

Increase performance

Eduardo Gomez 4,316 Reputation points
2022-04-01T20:06:24.39+00:00

I am trying to have better performance in my app, I already changed everything to compile bindings. But when I go to the Editor Page, the syncfution richtextbox takes time to show.

I already report this to them, but they tell it works fine on their end.

What are you trying to do?

I am tryingto navigate to the editor page and load the editor when the page appears

What code are you using to do that?

  public override async void SelectedItemActionAsync() {

            if (SelectedItem != null) {

                var edit = new EditorPage();
                Application.Current.Properties[AppConstant.SelectedNote] = SelectedItem;
                await Application.Current.MainPage.Navigation.PushAsync(edit);
            }
        }

What is the actual behaviour that results?

The editor takes time to appear

How does that differ from the expected behaviour?

Demo

https://reccloud.com/u/w0x2tfv

App

https://github.com/eduardoagr/DuoNotes

Developer technologies | .NET | Xamarin

Answer accepted by question author

  1. Lloyd Sheen 1,491 Reputation points
    2022-04-02T22:01:36.34+00:00

    I would look at the Syncfusion controls as the culprit. In a project I was working on we found that the sfDataGrid did so many things wrong that we turfed them.

    The sfDataGrid called the get for a property for one of the columns about 5-8 times for each item. While this was not good the clincher was when we loaded the datagrid with 20 items it got properties so many times it took a long time to load, but the clincher was when the datagrid was loaded a second time, this time with only 4 items it did the same multiple load for each property for the 4 items but then somehow accessed the property for each item (item number greater than 4) from the previous load.

    I have not used their richtextbox control but since the datagrid was not the only control with major problems I would check what it is doing behind the scenes as the reason for a long time in loading.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.