Insert listview inside content of Dialog

Hello,
is possible insert a ListView componente inside a sfDialog? I tried to search on forums and in documentations but i didn't find it.

<SfDialog @ref="dialogDocsComponent" Width="420px" Height="500px" IsModal="true" ShowCloseIcon="true" Visible="false" >
    <DialogTemplates>
        <Header>Ordini per l'articolo</Header>
        <Content>
            <SfListView @ref="listView" DataSource="@Results">
                <ListViewFieldSettings Id="Id"></ListViewFieldSettings>
                <ListViewTemplates TValue="DocTesViewModel">
                    <Template>
                        @{
                            var currentData = (DocTesViewModel)context;
                            <a rel='nofollow' href="javascript: void(0)">@string.Format("nr. {0} del {1:dd/MM/yy}", currentData.DocTes.Nr, currentData.DocTes.Data);</a>
                    }
                    </Template>
                </ListViewTemplates>
            </SfListView>
        </Content>
    </DialogTemplates>
</SfDialog>




3 Replies

IS Indrajith Srinivasan Syncfusion Team April 23, 2020 09:18 AM UTC

Hi Alessandro,

Greetings from Syncfusion support,

We have validated your reported query. Yes, you can render SfListview inside the dialog. We have also prepared a sample with SfListview rendered inside the SfDialog.

Sample: https://www.syncfusion.com/downloads/support/forum/153550/ze/Dialog_with_Listview-1611842325

Please let us know if the solution helps,

Regards,
 
Indrajith 



AG Alessandro Giri April 23, 2020 09:41 AM UTC

Thanks,it is very usefull for my case


IS Indrajith Srinivasan Syncfusion Team April 23, 2020 01:15 PM UTC

Hi Alessandro,

Thanks for the update,

Please let us know if you need any further assistance.

Regards, 
Indrajith 


Loader.
Up arrow icon