Quantcast
Channel: Editor — DataTables forums
Viewing all articles
Browse latest Browse all 3800

Inline mode including Non Modified Fields in local storage "ajax" method

$
0
0

Hi,

This used to work as expected until Editor version 1.6.1.

I recently tried to move to newer version of Editor and noticed this issue. After downloading earlier versions of Editor, and trying with these, noticied that this issue has been occuring since Editor version 1.6.2

Attached HTML file has full test case code for this issue.

When using local ajax method with Editor, with inline edit,

1) Until DataTable Editor 1.6.1, here "d.data" variable in "ajax" method only used to have Changed Column Name and Value

2) Fom DataTable Editor 1.6.2, here here "d.data" variable in "ajax" method is having extra variables example "salary: "170750", even though i am editing only "Position" column

This would be issue, since i have written several switch conditions based on column that has changed.


Note: This issue goes away if i provide initial data for "salary" as

"salary": "170750" (number in quotes -- as string)

But this would be issue, since this is actually number and Datatables seems to correctly take this value and display it correctly.


Also i have also provided type: "num", for columns -> data: "salary", type: "num"

But this still does not have any affect, and Editor is still including non modified column in ajax method for changed colmns list.

Any suggestions to recolve this issue will be helpful.

Thanks


Viewing all articles
Browse latest Browse all 3800

Trending Articles