This question is locked. New answers and comments are not allowed.
I've put the RadGridView control on a SketchFlow design surface and it magically appears to show data. While this is a nice feature to assist designing a grid, I'd like to have it use my own sample data.
Blend 3 allows me to define my own sample data and I can drag and drop it into a SilverLight 3 datagrid control. Can this be done with the Telerik RadGridView control too? If so, how? I've tried drag and drop and set the Data Binding to DataContext and Itemsource, but, neither work for me.
TIA
Mike
Blend 3 allows me to define my own sample data and I can drag and drop it into a SilverLight 3 datagrid control. Can this be done with the Telerik RadGridView control too? If so, how? I've tried drag and drop and set the Data Binding to DataContext and Itemsource, but, neither work for me.
TIA
Mike
** Update ** Ok, since drag and drop didn't work (for me) I hacked the XAML that Blend 3 produces. I'm able to see my sample data now with the following code:
<Grid x:Name="LayoutRoot" Background="White" DataContext="{Binding Source={StaticResource SampleListingDataSource}}" >
<telerikGridView:RadGridView
Margin="8,130,8,42"
FontFamily="Fonts/SketchFlow Print.ttf#SketchFlow Print"
ItemsSource="{Binding Listings}"
UseAlternateRowStyle="True">
</telerikGridView:RadGridView>
</Grid>
My issue now is, how do I control which columns appear in the RadGridView? They all show and I only want some. Can anyone tweak the XAML above to accomplish this? I think that I need to add some column controls but I can't figure it out.