Cell data disappears

Cell data disappears

levfellevfel Posts: 1Questions: 1Answers: 0
edited April 2019 in Free community support

Hello,
Glad I found this resource! So flexible and fun!
I am experimenting with the table and found some strange behavior.

Everything pretty standard... So, only related fragments:

HTML:

        <th>
            @Html.DisplayNameFor(model => model.Blocked)
        </th>
        <th>
            Test
        </th>

JS: I'm using the Responsive Extension.

            columnDefs: [
            {
                targets: 8, //"Test" column
                data: null,
                defaultContent: "",
                orderable: false
             },]

            columns: [
                { data: "blocked", name: "blocked" }, 
                { data: null, name: null }], //"Test" column

            rowCallback: function (row, data, index) {
                if (data.blocked == true) {
                    $("td:eq(2)", row).addClass("alert alert-danger width:100%");
                    $("td:eq(6)", row).text("Test"); //"Test" column
                }
            },

Here is the result on the Large screen...

...and on the Small screen:

Any help appreciated!

Answers

  • colincolin Posts: 15,142Questions: 1Answers: 2,586

    Hi @levfel ,

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.