CSS is not working Blazor MudTable Inline edit

RAMAN RAGAVAN 51 Reputation points
2023-01-16T13:19:52.7966667+00:00

Hi,

i have added a mudtable with inline edit and delete function.Problem is when i am clicking the second row for editing un edited row and header jumping to left side.How can i fix these CSS? please find my blazor app having this issue in below link.I need to make un editable row and header freez while inline edit is activated.

Issue is reproduced below link

https://try.mudblazor.com/snippet/cOwnkPvqeLirEMGT

Developer technologies .NET Blazor
Developer technologies C#
0 comments No comments
{count} votes

Accepted answer
  1. Naimish Makwana 175 Reputation points
    2023-01-18T04:27:10.93+00:00

    Hi Raman,

    Please replace your part of code

    <ColGroup>
            @if (applyButtonPosition.DisplayApplyButtonAtStart() || (editButtonPosition.DisplayEditButtonAtStart() && editTrigger == TableEditTrigger.EditButton))
            {
                <col style="width:50px;" />
            }
    
            <col />
            <col />
            <col style="width:50%;" />
    
    
            @if (applyButtonPosition.DisplayApplyButtonAtEnd() || (editButtonPosition.DisplayEditButtonAtEnd() && editTrigger == TableEditTrigger.EditButton))
            {
    
                <col style="width:88px;" />
            }
    
        </ColGroup>
    

    To

     <ColGroup>
            @if (applyButtonPosition.DisplayApplyButtonAtStart() || (editButtonPosition.DisplayEditButtonAtStart() && editTrigger == TableEditTrigger.EditButton))
            {
                <col style="width:50px;" />
            }
           
            <col style="width:0px;"/>
            <col style="width:0px;"/>
            <col style="width:50%;" />
           
           
            @if (applyButtonPosition.DisplayApplyButtonAtEnd() || (editButtonPosition.DisplayEditButtonAtEnd() && editTrigger == TableEditTrigger.EditButton))
            {
             
                <col style="width:88px;" />
            }
    
        </ColGroup>
    

    Thanks

    Naimish Makwana

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.