refresh jeditable tabledetails

refresh jeditable tabledetails

tombopptombopp Posts: 4Questions: 0Answers: 0
edited February 2010 in General
Hello again,

I got following situation:

I have a table with almost 30 clickable/editable details. I use serversideprocessing and now, once a specific details-element is edited another details element should be calculated and updated.

A simple refresh changes the value and redraws the entire table, but i am looking for a possibility to refresh just this specific element without closing the the rowdetails.

Every hint, advise or suggestion is welcome.

Tombopp

Replies

  • allanallan Posts: 63,700Questions: 1Answers: 10,501 Site admin
    Hi Tombopp,

    fnUpdate allows you to update just a single cell: http://datatables.net/api#fnUpdate . Would this do what you want? You can tell it not to redraw the table, which would happen by default with server-side processing. Or perhaps just direct DOM manipulation?

    Hope this helps,
    Allan
  • tombopptombopp Posts: 4Questions: 0Answers: 0
    edited February 2010
    Hi Allan,

    thanks for your answer but ....no positiv result.

    I tried fnUpdate for single cells but it always closes the rowdetails and changes nothing. And DOM manipulation is the same.

    It seems like a kind of adressing problem, but Idont know. Perhaps it is the problem that i call it out of a jeditable callback?

    But when I adress a cell in another table without rowdetails it works fine...?!!?

    i think i have to find another workaround.

    Tombopp
  • allanallan Posts: 63,700Questions: 1Answers: 10,501 Site admin
    Hi Tombopp,

    How do you mean "rowdetails"? Do you mean you are using fnOpen / fnClose, and you want to update the 'opened row'? I missed that the first time around - sorry. fnUpdate wouldn't help with that... Can you just call fnOpen on the original row again? That effectively closes and then opens a new row with your new details - but it would happen so fast that the browser wouldn't have time to reflow (i.e. you wouldn't see it).

    Regards,
    Allan
This discussion has been closed.