Announcement

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

    fetch data on Tree called after initialData empty

    Hi Isomorphic,

    I have a tree in Smart Client (using SC v8.3p_2013-09-17/Pro Deployment) whose data is loaded by a server response (using struts action and setting initialData on the tree grid). It seems like whenever initialData comes back as being empty, fetch data is automatically called on the tree (as seen in the smart client console). However, if initialData is not empty, fetch data is not called on the tree. I don't have any explicit calls to fetchData. Any ideas on what to look for or to prevent that fetch in the first case?

    Thanks.

    #2
    What do you mean by "whenever initialData comes back as being empty"?

    Do you:

    1. omit the property entirely
    2. supply null
    3. supply an empty array
    4. supply a root node with no children

    ?

    #1 would definitely not trigger a fetch. The others are either invalid, or should be expected to trigger a fetch (because it means root is present and open, and needs to load it's children).

    Comment


      #3
      Thanks for the info! Yes, it was set to (3) an empty array and hence was calling fetch.

      Comment

      Working...
      X