I am using VS2010 Ultimate with RIA Services,
and Telerik Silverlight 2010.1.0603.1040
When I open my Data Sources tab in VS, and drag a database table (MS Data Grid) into the designer -
The xaml is automatically written out with the grid and each column from the table.
I can also go into the grid properties, click on the columns ellipse button, and edit each of the data columns from the table.
Now, when I change my data sources tab to generate a RadGridView by default, and drag the same table into the designer -
The xaml only shows a radgridview - there are no <telerik:RadGridView.Columns/> written out.
If I go into the radgrid properties, click on the columns ellipse button, there are no entries.
Is there a way to get the radgridview to write out each column, and I'm just not doing something correctly?
Or are there plans to add this later?
My company wants to go with RIA data sources, and it will be hard for me to convince the company to continue using Telerik controls when I have to tell them that each developer will need to add the <telerik:RadGridView.Columns/> xaml by hand.
Generated for MS Data Grid:
Generated for Telerik RadGridView:
Thanks,
Ray
and Telerik Silverlight 2010.1.0603.1040
When I open my Data Sources tab in VS, and drag a database table (MS Data Grid) into the designer -
The xaml is automatically written out with the grid and each column from the table.
I can also go into the grid properties, click on the columns ellipse button, and edit each of the data columns from the table.
Now, when I change my data sources tab to generate a RadGridView by default, and drag the same table into the designer -
The xaml only shows a radgridview - there are no <telerik:RadGridView.Columns/> written out.
If I go into the radgrid properties, click on the columns ellipse button, there are no entries.
Is there a way to get the radgridview to write out each column, and I'm just not doing something correctly?
Or are there plans to add this later?
My company wants to go with RIA data sources, and it will be hard for me to convince the company to continue using Telerik controls when I have to tell them that each developer will need to add the <telerik:RadGridView.Columns/> xaml by hand.
Generated for MS Data Grid:
<sdk:DataGrid Grid.Row="0" AutoGenerateColumns="False" ItemsSource="{Binding ElementName=eventDomainDataSource, Path=Data}" Margin="12,0,12,12" Name="eventDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected"> |
<sdk:DataGrid.Columns> |
<sdk:DataGridTextColumn x:Name="eventTitleColumn" Binding="{Binding Path=EventTitle}" Header="Event Title" Width="SizeToHeader" MinWidth="250" /> |
<sdk:DataGridTemplateColumn x:Name="eventStartDateColumn" Header="Event Start Date" Width="SizeToHeader"> |
<sdk:DataGridTemplateColumn.CellEditingTemplate> |
<DataTemplate> |
<sdk:DatePicker SelectedDate="{Binding Path=EventStartDate, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true}" /> |
</DataTemplate> |
</sdk:DataGridTemplateColumn.CellEditingTemplate> |
<sdk:DataGridTemplateColumn.CellTemplate> |
<DataTemplate> |
<TextBlock Text="{Binding Path=EventStartDate, StringFormat=\{0:d\}}" /> |
</DataTemplate> |
</sdk:DataGridTemplateColumn.CellTemplate> |
</sdk:DataGridTemplateColumn> |
<sdk:DataGridTemplateColumn x:Name="eventEndDateColumn" Header="Event End Date" Width="SizeToHeader"> |
<sdk:DataGridTemplateColumn.CellEditingTemplate> |
<DataTemplate> |
<sdk:DatePicker SelectedDate="{Binding Path=EventEndDate, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true}" /> |
</DataTemplate> |
</sdk:DataGridTemplateColumn.CellEditingTemplate> |
<sdk:DataGridTemplateColumn.CellTemplate> |
<DataTemplate> |
<TextBlock Text="{Binding Path=EventEndDate, StringFormat=\{0:d\}}" /> |
</DataTemplate> |
</sdk:DataGridTemplateColumn.CellTemplate> |
</sdk:DataGridTemplateColumn> |
<sdk:DataGridTextColumn x:Name="eventVenueNameColumn" Binding="{Binding Path=EventVenueName}" Header="Event Venue Name" Width="SizeToHeader" MinWidth="200" /> |
<sdk:DataGridTextColumn x:Name="eventDescriptionColumn" Binding="{Binding Path=EventDescription}" Header="Event Description" Width="*" /> |
</sdk:DataGrid.Columns> |
</sdk:DataGrid> |
Generated for Telerik RadGridView:
<telerikPresentation:RadGridView Grid.Row="1" ItemsSource="{Binding ElementName=eventDomainDataSource, Path=Data}" Margin="12,0,12,12" Name="eventDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected" /> |
Thanks,
Ray