Shortin Not Working After Inline Update Value

Shortin Not Working After Inline Update Value

prasenjitbaruaprasenjitbarua Posts: 7Questions: 3Answers: 0
edited November 2021 in General

My project in .Net Core. I have a Grid which has editable inline row. First time when I short for Status Column its working fine.
But after inline edit if I update Status "Active" to "InActive" or vice versa then shorting not working properly.
The Html Code:

<td class="DepartmentStatus">
                    @if (@item.DepartmentStatus == "Active")
                    {
                        <span css="Status" id="status" name="status" class="active-td">@item.DepartmentStatus</span>
                    }
                    else
                    {
                        <span css="Status" id="status" name="status" class="inactive-td">@item.DepartmentStatus</span>

                    }
                    <select name="ddlstatus1" id="ddlstatus1" css="StatusList" asp-for="@item.DepartmentStatus" asp-items="@item.StatusList" style="display:none">
                    </select>
                </td>

Here is my Jquery:

$(document).ready(function () {
$("#DepartmentTable").DataTable({
"pageLength": 5,
"lengthMenu": [5, 10, 25, 50],
"order": []
});
})

Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

Answers

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

    This sounds related to your other thread. As I mentioned there, it would be worth looking at Editor, as it's designed specifically to deal with these issues,

    Colin

Sign In or Register to comment.