Multiple calls of remote datas when using a template

Hi,

I am using a list view with remote data binding and a template:

<ejs-listview id="userList"

                          headerTitle="User List"

                          showHeader="false"

                          template="#listTemplate"

                          actionComplete="onUserDataBound">

                <e-data-manager url="/ListView/initialData" adaptor="UrlAdaptor" offline="true"></e-data-manager>

                          <e-listview-fieldsettings text="UserName" id="UserId" />

            </ejs-listview>

<script id="listTemplate" type="text/x-jsrender">

    <div class="e-list-wrapper">

        <span class='e-list-content'>${UserName}</span>

    </div>

</script>


When debugging with a break point in the controller method, the method is called :

  • Once if not using the template property of the listview
  • twice if using the template property
  • three times if setting offline property of the data manager to true.
So I have performance issue due to this behaviour. How can I manage to have only one controller call when using the template method?

Regards,
Laurent

1 Reply

SS Sharon Sanchez Selvaraj Syncfusion Team July 13, 2021 01:59 PM UTC

Hi Laurent, 
 
Sorry for the inconvenience.  
 
We are able to reproduce the mentioned issue “Multiple requests being sent to the Controller when using ListView with remote data and template” and considered this as a bug from our end. The fix for this issue will be included in our Volume 2, 2021 SP1 release, which is expected to be rolled out by the beginning of August 2021. 
 
Please track the below feedback link to know the status of the issue. 
 
 
We appreciate your patience. 
 
Regards, 
 
Sharon Sanchez S. 


Loader.
Up arrow icon