Ajax Reload for just one row? Alternatively speed up reload

Ajax Reload for just one row? Alternatively speed up reload

TronikTronik Posts: 37Questions: 7Answers: 0

Hi,

I have a table where a user from an input field can increase current stock qty.
When a user adds that number I would like to refresh the row instantly so the column for current stock updates.

Using table.ajax.reload(null, false) certainly works but the whole table is refreshed which leads to some delay and not optimal user experience.

Also using some css element manipulation wont work, because there maybe multiple users inputting at the same time so I really need the Database value fetched

Replies

  • kthorngrenkthorngren Posts: 4,257Questions: 19Answers: 924

    My suggestion would be to use a jQuery Ajax call and use the data parameter to fetch the desired data. Then in the success function update that one row with the response data.

    If this doesn't help then please provide more specifics of how you are inputting the data, like are you using Editor and how you are saving the data.

    Kevin

  • allanallan Posts: 48,452Questions: 1Answers: 7,015 Site admin

    I would suggest following Kevin's suggestion :).

    Allan

  • TronikTronik Posts: 37Questions: 7Answers: 0

    Yes, works perfect, thanks for the input.

    I messed around with trying to update the row/cell with API...

Sign In or Register to comment.