I try to refresh a kanban with the result of an ajax query.
My kanban is composed of 2 columns, and each column has several items (representing persons) :
Name on the top, and role on the bottom part of the item.
I have a form to add a new person (Name and role).
An ajax query save the new person in the database and the response is the new list of persons (including the new one).
This list is a json.
I set this json to the localData of my kanban source.
As there is no refresh function, I remove all kanban’s items and then add the new items list one by one with the addItem function :
It works fine except for the new person I added. The role is displayed in the item, but instead of having is name, “no name” is displayed.
I think it’s a mapping problem because when I refresh my page, the kanban is well displayed.
In my new json list, i have these properties :
classname, color, content, id, identity, libelle, name, resourceId, status, tags and text
When i refresh my page :
color, id, identity, libelle and status
Do you have any idea? when we change the kanban localdata, do we have to set again a mapping ? how ?
Thx a lot for your help. It’s the last bug of my application !!!!!
This topic was modified 6 years, 4 months ago by admin.