Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Issue on double load on ListGrid smartclient

    Hi Isomorphic,

    I have issue on double load at ListGrid , how to manage to prevent from load twice.

    Java

    Code:
     Criteria c = new Criteria();
     c.addCriteria("id",id);
    listgrid.setDataSource(ds.getDataSource());
    listgrid.FetchData(c);
    listgrid.setFields(id,name,pass);
    does any function to disable the load ,


    Need help,

    Franko
    Last edited by franko; 24 Jun 2020, 05:05.

    #2
    Hi franko,

    you should setFields() before fetchData(), also your current fetch is not using the criteria. It should be a parameter of fetchData().

    Best regards
    Blama

    Comment


      #3
      Hi @Blama,

      Thanks for the answer, will try, actually typing error , fetchData have a parameter criteria. [ fetchData(c); ]

      Comment


        #4
        Hi ,

        The ListGrid still loaded twice, not sure , but I have checked the inspect firefox,

        for the second load , in performance result , =
        the 'isc_c_Timer_setTimeOut, isc_c_Timer_fireTimeout, isc_c_Class_fireClallback'
        with 'isc_c_canvas_clearRedrawQueue' and 'isc_GridBody_redraw', 'isc_ListGrid_redraw'

        Seems its redraw after timeout


        regards,
        franko
        Last edited by franko; 24 Jun 2020, 01:22.

        Comment


          #5
          Is the ListGrid loaded twice (=two ListGrids, perhaps also in Watch Tab of the developer console), or does the ListGrid load it's data twice? Posts #1 and #4 say different things here.
          In the developer console's RPC Tab you can see which JS component issued a request.

          Comment


            #6
            Also, as your code wasn't copy&paste, you should paste it here like it is with all setters - some setters (e.g. sort) might cause a 2nd load to succeed if in the wrong place.

            Comment

            Working...
            X