Problem with setting a new data into a cell

Problem with setting a new data into a cell

ToffeetaToffeeta Posts: 12Questions: 3Answers: 0

Hello everybody, hello dear Support Team,

I have some problem with a setting a data into a certain cells after the table was initialized.
Some data was set during the initialization from an array of objects. But the another part of the data can be set only later because a user has to do some manipulations bevore the data can be calculated.

Here is an example:
http://live.datatables.net/pawijose/7/edit

The data should be added after the initialization into the column "Ranking". In this example it works if I click on the cell. But in the code I have in my tool not. I can't provide the hole code of it because of the company secret. But I used the data with the same structure (just less properties in the example) and the same event handler $('#example tbody').on('click', 'td', function () {...}) in my code. Unfortunately it doesn't set the data into the cell as in the example http://live.datatables.net/pawijose/7/edit.

Do you have some ideas what could be a problem, what I could made wrong?

By the way the code should work in IE 8, 9 or 10 that's why I tested it only in IE.

Thank you very much! I hope for your answers as soon as possible. It takes already more than half a day and I still can't find the reason...

Answers

  • ToffeetaToffeeta Posts: 12Questions: 3Answers: 0
    edited May 2015

    Update:
    Only using the document methods in IE console has changed the data in the cell:

    document.getElementById('table2').getElementsByClassName('even')[1].getElementsByClassName('all')[3].innerHTML = 'xyz';

    But this haven't solved the problem, because I need ordering on this column and only with innerHTML it doesn't work...

  • ToffeetaToffeeta Posts: 12Questions: 3Answers: 0

    Solved...

This discussion has been closed.