Error after pdating to version 18.1.0.42

Hi,

After updating to version 18.1.0.42 I got this error:

The type arguments for method 'TypeInference.CreateListViewTemplates_4<TValue>(RenderTreeBuilder, int, int, RenderFragment<TValue>)' cannot be inferred from the usage. Try specifying the type arguments explicitly.

3 Replies

SP Sowmiya Padmanaban Syncfusion Team April 27, 2020 10:16 AM UTC

Hi Marcelo ,  
 
Greetings from Syncfusion support. 
 
We have checked your reported problem with ListView component. We are able to reproduce it. In the version (18.1.42), we have updated some changes in our component. In ListView component, you need to add the TValue when declaring templates. In the previous version, you don’t need that. So, your reported problem occurs. To access the full functionality of the ListView component, we suggest you to update the (Syncfusion.Blazor)package to the latest version(18.1.45). 
 
Refer the release notes below. 
 
Refer the below code snippet. 
<SfListView DataSource="@FruitsData" ShowHeader="true"> 
    <ListViewFieldSettings Id="Id" Text="Text"></ListViewFieldSettings> 
    <ListViewTemplates TValue="DataModel"> 
        <HeaderTemplate> 
            <div class="headerContainer"> 
                <span class="fruitHeader">Fruits</span> 
            </div> 
        </HeaderTemplate> 
    </ListViewTemplates> 
</SfListView> 
 
 
Refer the simple sample link for rendering ListView component. 
 
To know more about the ListView component, refer the below links. 
 
 
 
 
 
Please le us know, if you need any further assistance. 
 
Regards,  
Sowmiya.P 



MO Marcelo Oliveira Santos April 28, 2020 11:14 PM UTC

Thanks Sowmiya Padmanaban, it works perfectly.

Regards,
Marcelo


SP Sowmiya Padmanaban Syncfusion Team April 29, 2020 03:43 AM UTC

Hi Marcelo,  
  
Most Welcome. We are happy to hear that your problem has been resolved from our provided solution. Please contact us, if you need any help from us. We will happy to assist you. 
  
Regards,  
Sowmiya.P 


Loader.
Up arrow icon