CreateCellContent Event not worked after paging

Posted by: munemoto on 26 January 2023, 2:50 am EST

  • Posted 26 January 2023, 2:50 am EST - Updated 26 January 2023, 2:50 am 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 26 January 2023, 2:51 am 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 27 January 2023, 5:24 am EST - Updated 27 January 2023, 5:30 am 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