CreateCellContent Event not worked after paging

Posted by: munemoto on 25 January 2023, 5:50 pm EST

  • Posted 25 January 2023, 5:50 pm EST - Updated 25 January 2023, 5:50 pm EST

    Hi.

    Now, I have a problem of ToolTip on FlexGrid in my WinUI3 Application.

    I set Paging Control in the FlexGrid, and the paging working fine.

    But a CreateCellContent Event worked at first time,

    it not working (araising) after paging.

    So, we can see previous information in the tooltip.

    please show me the right way .

  • Posted 25 January 2023, 5:51 pm EST

    My Code in GridCellFactory is follows.

            public override FrameworkElement CreateCellContent(GridCellType cellType, GridCellRange range, object cellContentType)
            {
                var element = base.CreateCellContent(cellType, range, cellContentType);
                if (cellType == GridCellType.Cell)
                {
                    var tooltip = new ToolTip() { Content = Grid.GetCellValue(range), IsEnabled = true };
                    ToolTipService.SetToolTip(element, tooltip);
                }
    
                return element;
            }
  • Posted 26 January 2023, 8:24 pm EST - Updated 26 January 2023, 8:30 pm EST

    Hi,

    We are unable to replicate this issue at our end. We tried to add your code in our product sample at path: “C:\Users\user\Documents\ComponentOne Samples\WinUI\CS\Grid\FlexGridExplorer\FlexGridExplorer\View\Paging.xaml.cs” and there is no issue while running the sample.

    We have tested with the latest 1.1.20223.370 version.

    Please refer the gif for the same:

    Best Regards,

    Nitin

Need extra support?

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

Learn More

Forum Channels