C1FlexGrid cell contents occasionally not displaying

Posted by: lmclean on 15 October 2017, 4:03 pm EST

    • Post Options:
    • Link

    Posted 15 October 2017, 4:03 pm EST

    Have been trying to replicate this issue we’ve been having very occasionally on a test project for some time and finally came across a way that would replicate it.

    Essentially, sometimes some data will not appear in the C1FlexGrid in some cells. Took me quite a while to realise that it tended to be when the size of the collection of the items source changed.

    I’ve got a test project here that should demonstrate the issue. It creates random appointments on a given day, between 8am and either 4pm, 5pm or 6pm (random choice). The appointment names and length are at random. The “notes” column is either a few words or super long, it cannot be empty.

    In this screenshot I’ve got an example of where this has occurred. I’ve set a breakpoint on line 128 of MainWindow.xaml.cs (FlexGridDaySession.ItemsSource = _vm.DaySessionDataList). The watch shows that appointment ID 11 has text for the notes, however it does not display in the grid:

    Test project can be found here:

    TestAppointmentsComponentOne.zip

    Are there any quick-fixes to the problem?

  • Posted 16 October 2017, 5:06 pm EST

    Hi,

    I observed that the said issue is related to implementation. I removed the Unnecessary call of Refresh as well as AutoSizeColumns & AutoSizeRows methods from your application and some other changes in binding and value converter.

    Please find the modified sample application and share your observation(s).

    TestAppointmentsComponentOne.zip

    Thanks,

    Singh Sonu

  • Posted 17 October 2017, 1:17 pm EST

    Thanks, this has worked for us. On our full implementation we also had some weird stuff going on in our cell templates with textblocks inside labels with complicated static resources and I’ve identified that as part of the problem we were having as well.

Need extra support?

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

Learn More

Forum Channels