This question is locked. New answers and comments are not allowed.
Hi,
I have a TileView control with RadFluid Content control,But when i Bind the Data from RIA Service to the Control, It only displays 4 panels,No Data is loaded as i intended.....
And i am trying to Bind the Data got from the RIA Service like,
I have a TileView control with RadFluid Content control,But when i Bind the Data from RIA Service to the Control, It only displays 4 panels,No Data is loaded as i intended.....
<
Grid
x:Name
=
"LayoutRoot"
>
<
telerik:RadTileView
Name
=
"TileVIew1"
TileStateChanged
=
"RadTileView_TileStateChanged"
>
<
telerik:RadTileViewItem
Header
=
"{Binding FirstName}"
>
<
telerik:RadFluidContentControl
ContentChangeMode
=
"Manual"
>
<
telerik:RadFluidContentControl.SmallContent
>
<
Grid
Width
=
"200"
Height
=
"200"
>
<
TextBlock
Text
=
"{Binding FirstName}"
></
TextBlock
>
</
Grid
>
</
telerik:RadFluidContentControl.SmallContent
>
<
telerik:RadFluidContentControl.Content
>
<
Grid
Width
=
"400"
Height
=
"400"
>
<
TextBlock
Text
=
"{Binding FirstName}"
></
TextBlock
>
</
Grid
>
</
telerik:RadFluidContentControl.Content
>
<
telerik:RadFluidContentControl.LargeContent
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"*"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
</
Grid.ColumnDefinitions
>
<!--<Image Source="../Images/TileView/Flags/map.png" Grid.ColumnSpan="2" Grid.RowSpan="2" />-->
<!--<Image Source="{Binding LargeFlag}" Grid.Column="1" Margin="10" />-->
<
telerik:RadWrapPanel
Margin
=
"20"
>
<
StackPanel
Orientation
=
"Horizontal"
Margin
=
"10"
>
<
TextBlock
Text
=
"First Name:"
/>
<
TextBlock
Text
=
"{Binding FirstName}"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
Margin
=
"10"
>
<
TextBlock
Text
=
"Last Name:"
/>
<
TextBlock
Text
=
"{Binding LastName}"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
Margin
=
"10"
>
<
TextBlock
Text
=
"Company Name:"
/>
<
TextBlock
Text
=
"{Binding CompanyName}"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
Margin
=
"10"
>
<
TextBlock
Text
=
"Email ID:"
/>
<
TextBlock
Text
=
"{Binding EmailAddress}"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
Margin
=
"10"
>
<
TextBlock
Text
=
"Phone:"
/>
<
TextBlock
Text
=
"{Binding Phone}"
/>
</
StackPanel
>
</
telerik:RadWrapPanel
>
<
TextBlock
FontSize
=
"11"
TextWrapping
=
"Wrap"
Text
=
"{Binding EmailAddress}"
Grid.Row
=
"1"
Grid.ColumnSpan
=
"2"
Margin
=
"20"
/>
</
Grid
>
</
telerik:RadFluidContentControl.LargeContent
>
</
telerik:RadFluidContentControl
>
</
telerik:RadTileViewItem
>
</
telerik:RadTileView
>
</
Grid
>
AdventureWorksDomainContext _DomainContxt =
new
AdventureWorksDomainContext();
public
TileView()
{
InitializeComponent();
Loaded +=
new
RoutedEventHandler(TileView_Loaded);
}
void
TileView_Loaded(
object
sender, RoutedEventArgs e)
{
try
{
AdventureWorksDomainContext ctx =
new
AdventureWorksDomainContext();
// List<Customer> customers = new List<Customer>();
// var loadOperation = _DomainContxt.Load(_DomainContxt.GetCustomerQuery());
//loadOperation.Completed += new EventHandler(loadOperation_Completed);
//dataGrid1.ItemsSource = ctx.Customers;
TileVIew1.Items.Clear();
TileVIew1.ItemsSource = ctx.Customers;
ctx.Load(ctx.GetCustomerQuery());
}
catch
(Exception ex)
{
}
}