Thanks for your reply vijayalakshmi RoopKumar,
It is my SfAccordion document, Please check once and help me to solve this issue.
Thanks & Regards,
Sai Priya. C
<!—DataContext set in datapager-->
<datapager:SfDataPager x:Name="sfDataPager"
Grid.Row="1"
MinHeight="20"
PageSize="10"
AccentBackground="DarkCyan"
AccentForeground="White"
FontSize="12"
UseOnDemandPaging="False"
VerticalAlignment="Bottom"
HorizontalAlignment="Right"
NumericButtonCount="5"
Source="{Binding Orders}" >
<datapager:SfDataPager.DataContext>
<local:ViewModel/>
</datapager:SfDataPager.DataContext>
</datapager:SfDataPager>
<!--Binding the data grid source in SfDataGrid-->
<syncfusiongrid:SfDataGrid x:Name="sfCompanyGrid"
Grid.Row="0"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch"
ItemsSource="{Binding ElementName=sfDataPager,Path=PagedSource}"
AlternationCount="2"
AutoGenerateColumns="True"
SelectionMode="Single" BorderThickness="0"
AllowRowHoverHighlighting="True"
RowHoverHighlightingBrush="Azure"
SelectionUnit="Row" Visibility="Visible"
RowHeight="45" FontSize="12"
Padding="8,0,8,0">
|
Thanks for your Reply, Actually i tried your solution its working, But in my scenario if i clicked the accordion at that time i'm binding the child item (users) to the company for example i have one class in that i'm having company name and in that class i have users class firstly i'm binding the company collection and then i'm binding the users collection, it shows the company list but if we click the company i have users in my collection but it was not showing users. Please check the attached document for reference. I'm getting the companies list in UI and i'm also getting the users list in cs file but there was something went wrong users are not displayed, Hope u understand my scenario.
Thanks in advance.
Thanks for your reply,
Why u need that, in that i'm calling the api and get the data as observable collection.
Thanks for your reply,
In my scenario after clicking the company by using that company id i'm getting the users list dynamically, In your reply you are getting the users list dynamically, i have two different item sources to bind one is for accordion and another is for SFDataGrid(it is the content in Accordion). Please do useful sample.
Thanks & Regards,
Sai Priya. C