Hi,
We use the standard bing map provider in our WPF apps (2016.2.503.40).
We have just received notification that Microsoft are retiring Bing Maps AJAX Control and the SOAP Web Services on June 30, 2017.
Will this affect our current apps, or does the map control use v8\rest services?
Thanks,
Lee
I am trying to update a DataTable using a RadGridView. The data is displayed but whenever a column is edited and the cursor moved off the column the old data reappears. E.g. the underlying DataTable is not updated.
<Window x:Class="TestRadGridEdit.MainWindow" xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" xmlns:gridView="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView" xmlns:Controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" xmlns:data="clr-namespace:Telerik.Windows.Data;assembly=Telerik.Windows.Data" Title="MainWindow" Height="350" Width="525"> <Grid> <Controls:RadGridView Name="radGridView_HeadOfHouse" AutoGenerateColumns="False" ItemsSource="{Binding GetData}" DataContext="{Binding ElementName=radGridView_HeadOfHouse, Path=DataContext}"> <Controls:RadGridView.Columns> <Controls:GridViewDataColumn UniqueName="FirstName" Header="First Name" DataMemberBinding="{Binding FirstName, Mode=TwoWay}" /> <Controls:GridViewDataColumn UniqueName="LastName" Header="Last Name" DataMemberBinding="{Binding LastName, Mode=TwoWay}" /> </Controls:RadGridView.Columns> </Controls:RadGridView> </Grid> </Window> using System.Data; using System.Windows; using System.Windows.Data; using Telerik.Windows.Controls; namespace TestRadGridEdit { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); Binding bind = new Binding(); bind.Source = GetData(); radGridView_HeadOfHouse.SetBinding(RadGridView.ItemsSourceProperty, bind); } public DataTable GetData() { DataTable dt = new DataTable("Testing"); dt.Columns.Add(new DataColumn("FirstName")); dt.Columns.Add(new DataColumn("LastName")); DataRow dr = dt.NewRow(); dr["FirstName"] = "Tom"; dr["LastName"] = "Smith"; dt.Rows.Add(dr); dr = dt.NewRow(); dr["FirstName"] = "Fred"; dr["LastName"] = "Smith"; dt.Rows.Add(dr); dr = dt.NewRow(); dr["FirstName"] = "Jack"; dr["LastName"] = "Smith"; dt.Rows.Add(dr); dr = dt.NewRow(); dr["FirstName"] = "Joe"; dr["LastName"] = "Smith"; dt.Rows.Add(dr); dt.AcceptChanges(); return dt; } } } I need to bind List<string> to a treeview, the string is cut by /,like "a/b/c/d" ,''a/b/e/f" ,"a/b/c/g" ,
Is any simple method to bind it without constructing a cascading object?
Hello Telerik,
I'm using a DataTable to set my RadGridView ItemsSource. My grid was set like this :
_Xaml
<telerik:RadGridView x:Name="gridSaisie" Grid.Row="1" HorizontalAlignment="Stretch" Margin="5" ShowGroupPanel="False" CanUserInsertRows="False" CanUserDeleteRows="False" CanUserReorderColumns="False" RowIndicatorVisibility="Collapsed" AutoGenerateColumns="False" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto" CellValidating="gridSaisie_CellValidating" CellEditEnded="gridSaisie_CellEditEnded" RowEditEnded="gridSaisie_RowEditEnded"/>_C#
private void ConstructGrid() { //Création de la colonne de dates GridViewDataColumn colonneDate = new GridViewDataColumn(); colonneDate.DataMemberBinding = new Binding("Date"); colonneDate.Header = "Jour"; colonneDate.UniqueName = "Jour"; colonneDate.DataFormatString = "{0: dd}"; colonneDate.IsReadOnly = true; colonneDate.Width = 150; colonneDate.IsSortable = false; colonneDate.IsFilterable = false; colonneDate.HeaderTextAlignment = TextAlignment.Center; //colonneDate.DataType = typeof(DateTime); this.gridSaisie.Columns.Add(colonneDate); //Création dynamique des colonnes foreach (Variable v in this.ViewModel.Variables) { GridViewDataColumn colonneVariable = new GridViewDataColumn(); var bindVariable = new Binding(string.Format("Variable_{0}", v.Id)); bindVariable.UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged; bindVariable.StringFormat = "{0:F1}"; bindVariable.Mode = BindingMode.TwoWay; colonneVariable.DataMemberBinding = bindVariable; colonneVariable.Header = v.Code; colonneVariable.UniqueName = string.Format("Variable_{0}", v.Id); colonneVariable.IsReadOnly = false; //colonneVariable.Width = ; colonneVariable.IsSortable = false; colonneVariable.IsFilterable = false; colonneVariable.HeaderTextAlignment = TextAlignment.Center; //colonneVariable.DataType = typeof(double); this.gridSaisie.Columns.Add(colonneVariable); } } private void LoadData(int idStation) { this.gridSaisie.ItemsSource = this.ViewModel.Jours; //Its the DataTable
}
I have somes problems :
1) When I set DataType = typeof(...), the displayed values are empty.
2) StringFormat for the Date doesn't work.
3) When I start updating, the cell value is hidden (I think is linq to '4)')
3) I can't update values in the Grid. I found this topic : http://www.telerik.com/forums/updating-a-datatable-with-radgridview where is it explain that the update will be to do manually. So I didi it :
private void gridSaisie_CellEditEnded(object sender, GridViewCellEditEndedEventArgs e) { int numCol = e.Cell.Column.DisplayIndex; int numRow = this.gridSaisie.Items.IndexOf(this.gridSaisie.SelectedItem); var row = this.ViewModel.Jours.Rows[numRow]; row.BeginEdit(); var colonnes = row.ItemArray; colonnes[numCol] = e.NewData.ToString();// Convert.ToDouble(e.NewData.ToString()); row.EndEdit(); row.AcceptChanges(); //this.gridSaisie.Rebind(); }But there isn't changement.
Can you help me ?
Thank you.

Hello everyone.
Is it possible to add context menu (RadContextMenu or System.Windows.Controls.ContextMenu) to filtering control in RadGridView?
I need to implement copy and past functions on textboxes in the FilteringControl.
It is the sample where I try to do this ( https://drive.google.com/file/d/0B1j-40J5aVOfSEctRHdZYnh3RjA/view?usp=sharing ).
There are ContextMenu in UserControlWithMenu and in FilteringControlEx, but both of them doesn't appear on right mouse click.
When Mouse is on a recurring, it show tooltip.
However when case 'Recurring task on single row', it doesn't show tooltip.
How can I make it to show tooltip when 'Recurring task on single row'?
Hi,
I want to show one empty row at the end of the RadGridview when it is loaded when the data is empty.How to achieve this.I tried like shown below but no use
if(collection.Count ==0)
{
var itemsView = (IEditableCollectionView)CollectionViewSource.GetDefaultView(SyncObjects);
itemsView.NewItemPlaceholderPosition = NewItemPlaceholderPosition.AtEnd;
}
Once after loaded user will add data using add button.Now the grid is appearing as shown in the image where only headers are coming and it is not appealing like grid.
I want one empty row once it is loaded when no data exist.How to achieve this.
Hi I am having combobox in the GridViewData column and i am binding the ItemSource with one of the property present on the class binded to the radgridview itemsource collection.For example I binded radgridview with list of employees.Employee is a class and I binded the combobox itemsource with dependants property which is one of the property on the employee class.
But the combobox is not populating.DataContext of RadGridView is separate and it is another viewmodel class.
<telerik:GridViewDataColumn.CellEditTemplate> <DataTemplate> <telerik:RadComboBox x:Name="ComboBox" SelectedIndex="0" Height="20" Width="150" ItemsSource="{Binding Items,RelativeSource={RelativeSource AncestorType=telerik:GridViewRow}}" ItemTemplate="{StaticResource RadComboBoxItemTemplate}" SelectionBoxTemplate="{StaticResource SelectionBoxTemplate}"> </telerik:RadComboBox> </DataTemplate> </telerik:GridViewDataColumn.CellEditTemplate>
Hi,
I have a real simple grid prototype. Works fine until I group by a column. When any grouping applied the area below the header row is blank although the gridview seems to be resizing as expected. I think this is a rendering issue.
More details:
Images attached show the before and after. Notice that the size (border) of the grid changes as expected.
Code fragment:
<Grid xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <telerik:RadGridView Grid.Row="0" ItemsSource="{Binding Variables}" GroupRenderMode="Nested" AutoExpandGroups="True" AutoGenerateColumns="False"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn DataMemberBinding="{Binding Type}" Header="Type" IsGroupable="True"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name" IsGroupable="False"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding Index}" Header="Index"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding BriefDescription}" Header="Description" IsGroupable="True"/> </telerik:RadGridView.Columns> <telerik:RadGridView.GroupDescriptors> <telerik:GroupDescriptor Member="BriefDescription" SortDirection="Ascending" /> </telerik:RadGridView.GroupDescriptors> </telerik:RadGridView> </Grid>Any ideas?
Hello,
I've implemented 2 years ago a CustomDockingPane to work with Catel MVVM pattern but reviewing the code looks like a ...hum... Code smell...
I was wondering if I'm the only one which use those 2 framework together or is there anyone who can share his implementation with me
I've asked in the past and also sent ticket to Telerik support but they don't know the Catel Framework so well...
so...anyone alive?
Thanks