ProgressNS / nativescript-ui-feedback

This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Other
115 stars 21 forks source link

RadListView binding error with HtmlView in itemTemplate #1466

Open gregersen79 opened 3 years ago

gregersen79 commented 3 years ago

Only testet in iOS with @nativescript/ios": "7.0.0".

Please provide the following version numbers that your issue occurs with:

Please tell us how to recreate the issue in as much detail as possible.

  1. Add HtmlView in itemTemplate and run.

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

<lv:RadListView id="messageList" items="{{ Items }}" separatorColor="transparent" row="2" style="margin-top: 0;">
        <lv:RadListView.listViewLayout>
            <lv:ListViewLinearLayout scrollDirection="Vertical"/>
        </lv:RadListView.listViewLayout>
        <lv:RadListView.itemTemplate>
           <HtmlView id="msgBody" html="test test test"/>
        </lv:RadListView.itemTemplate>
    </lv:RadListView>

This produces the following error:

Binding: Binding error while setting property items of RadListView@./Messages/thread-page.xml:41:5;: Error: the collection view's data source did not return a valid cell from -collectionView:cellForItemAtIndexPath: for index path <NSIndexPath: 0x837a697ce6870471> {length = 2, path = 0 - 0}

This has worked on previous versions nativescript-ui-listview: 6.4.0 and core modules 5.4.3.