The text desappears

Posted by: soraroid on 18 March 2025, 2:54 am EST

    • Post Options:
    • Link

    Posted 18 March 2025, 2:54 am EST

    Hello.

    If the cursor is in another location, when you press the move button,

    The cursor moves to rows[0][1] and data becomes a block state.

    However, if the sursor is currently in rows[0][1], the cursor disappears and the block state also disappears.

    And if you click another location in this statue, the existing value in rows[0][1] also disappears.

    I would like it to become a block state as if it worked in another location even if the cousor is in rows[0][1].

    MoveCursor.zip

  • Posted 18 March 2025, 2:56 am EST

    Add video.

    example.mp4.zip

  • Posted 18 March 2025, 11:50 pm EST - Updated 18 March 2025, 11:55 pm EST

    Hi,

    Thank you for sharing the sample and video. I was able to reproduce the reported behavior on my end. It appears that the grid lifecycle is not correctly updating regarding cell edits and concurrent edits. To resolve this, you can use the Refresh() method to properly update the grid.

    Here’s the code to achieve the expected result:

    public async void btnMove_Click()
    {
        refgrid.FinishEditing();
        await refgrid.FocusAsync();
        refgrid.Refresh(GridCellType.Cell, new GridCellRange(0, 1));
        refgrid.Selection = new GridCellRange(0, 1);
        refgrid.SetCursor(0, 1);
        await refgrid.StartEditingAsync(0, 1, false);
    }

    Refresh Method: https://developer.mescius.com/componentone/docs/blazor/online-blazor/C1.Blazor.Grid~C1.Blazor.Grid.FlexGrid~Refresh(Nullable{GridCellType},GridCellRange).html

    Please let us know if you encounter any issues.

    Regards,

    Ankit

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels