Using C1.Xaml.C1CollectionView on FlexGrid in Multi-View App

Posted by: kevin.banks on 29 January 2020, 9:35 am EST

    • Post Options:
    • Link

    Posted 29 January 2020, 9:35 am EST

    I’m trying to use a FlexGrid on a secondary view and that works fine.

    When I try to add a CollectionView to group items the secondary view crashes when I create 2 views with a Xaml error:

    The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD))

    We have other issues with other controls C1DropDown but this one there is no work around.

    Attached is the Microsoft Sample MultipleViews app with a demo flexgrid.

    Note: If I set List<> directly on ItemSource it works fine.

    ThanksMultipleViews.zip

  • Posted 30 January 2020, 1:07 am EST

    Hi,

    I can see the exception. So, I am discussing it with the development team [ID: 419008].

    I will get back to you once there is any update on this.

    Thanks,

    Ruchir

  • Posted 3 February 2020, 2:30 am EST

    Hi Ruchir,

    Any update on this.

    Is the issue related to the collection view or the threading model in the FlexGrid itself? We can help fix it if needed.

    We are under a time crunch for a fix and hope not to have to replace the control library.

    Thanks

  • Posted 3 February 2020, 4:23 pm EST

    Thank you Kevin, for reaching out to help but the developers are currently investigating it and in case they need any help/information, I will let you know.

    I understand that this issue is critical for your work hence, I have updated the developers with this information and have requested to keep it at the top of their to-do list.

    I shall keep you updated with the progress.

    ~Regards,

  • Posted 3 February 2020, 10:26 pm EST

    Hi,

    The developers have added the workaround for this case, refer to attachment.

    In the workaround, it sets the value for C1FlexGrid icon templates, please take a look into OnNavigatedTo method.

    SecondaryViewPage Codebehind.zip

    Thanks,

    Ruchir

  • Posted 5 February 2020, 2:54 am EST

    Thank you that worked!

    I did not have to wrap it in a dispatch call it was only the creation of the icon templates that was needed.

  • Posted 5 February 2020, 4:02 pm EST

    Glad that it works for you and that you can proceed.

    ~Ruchir

  • Posted 17 March 2020, 7:51 pm EST

    Hi Kevin,

    We are happy to inform you that the issue has been fixed in the latest package(i.e. 2020v1). You can get the latest package from “http://prerelease.componentone.com/winrt/c1xaml/2020-t1/C1UWP_10.0.20201.697.zip”.

    Regards,

    Basant

Need extra support?

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

Learn More

Forum Channels