Telerik Forums
UI for WPF Forum
7 answers
128 views

Hello

I need to implement this scenario:

There is int in the data item that represents value in data base table.

In the grid there is data column that binding to this int.

When the Create Cell Element method called I take the int and go to service that return the value from DB.

This is the issues:

1.

 I need to show the string that returns form the service in this column instead of the int.

This is extra data that not in the data item of the column.

How can I add this data to the column?

2.

The filter knows the int in the data member binding.

 I need to give the filter the same data that shown in the column.

 

I don’t want to use combo box column.

What is the solution for this scenario?

Best regards

Ehud

 

Avi Avni
Top achievements
Rank 1
 answered on 23 Dec 2010
2 answers
139 views
I have a number of children property on each of my items in the TreeGridList, this list is currently an ObservableCollection. 

If I have the children expanded in the grid, and then transition the number of children on the parent to 0 through the grid, the collection changed notification coming from the ObservableCollection causes the grid to try to revert the change that is under way (changing the number of children to 0).  I am not sure how to resolve this (keep the 0 child count).

I have a very simple sample project but am not sure how to attach it.  (I pasted the view item below).

reproduction steps - launch application, change child count on an item to 3, expand item, change child count to 0 (notice that the number of children remains 3).

Thanks for your help..

> WpfApplication1.exe!WpfApplication1.ViewItem.NumberOfChildren.set(int value = 5) Line 63 C#
  [External Code]
  Telerik.Windows.Data.dll!Telerik.Windows.Data.ItemPropertyInfoExtensions.SetValue(System.ComponentModel.ItemPropertyInfo itemProperty = {System.ComponentModel.ItemPropertyInfo}, object item = {WpfApplication1.ViewItem}, object value = 5) Line 89 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.ReturnOldValuesToRow(Telerik.Windows.Controls.GridViewColumnCollection columns = Count = 3, System.Collections.Generic.Dictionary<string,object> oldValues = Count = 3, object dataItem = {WpfApplication1.ViewItem}) Line 1011 + 0xbc bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.CancelRowEdit(Telerik.Windows.Controls.GridView.GridViewRow gridViewRow = {Telerik.Windows.Controls.TreeListView.TreeListViewRow}) Line 980 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.CancelEdit(Telerik.Windows.Controls.GridViewEditingUnit editingUnit = Row) Line 972 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.CancelEdit() Line 963 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.ItemsSourceChanged(bool sourceChanged = false) Line 3084 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.OnItemsChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 7965 + 0xa bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.BaseItemsControl.OnItemCollectionChanged(object sender = {Telerik.Windows.Data.DataItemCollection}, System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 686 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.DataItemCollection.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 639 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.DataItemCollection.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(object sender = {Telerik.Windows.Data.HierarchicalCollectionView}, System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 914 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.WeakEvent.WeakListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.Handler(object sender = {Telerik.Windows.Data.HierarchicalCollectionView}, System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 32 + 0x42 bytes C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 642 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.RefreshOverride() Line 790 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.RefreshInternal() Line 737 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.RefreshOrDefer() Line 732 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.ProcessSynchronousCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 1009 + 0x9 bytes C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.ProcessCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 952 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.HierarchicalCollectionView.ProcessCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 267 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.HierarchicalChildCollectionView.ProcessCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 189 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.OnSourceCollectionChanged(object sender = Count = 0, System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 1308 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(object sender = Count = 0, System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 1292 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.WeakEvent.WeakListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.Handler(object sender = Count = 0, System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 32 + 0x42 bytes C#
  [External Code]
  WpfApplication1.exe!WpfApplication1.ViewItem.NumberOfChildren.set(int value = 0) Line 65 + 0x15 bytes C#
WpfApplication1.exe!WpfApplication1.ViewItem.NumberOfChildren.set(int value = 5) Line 63 C#
  [External Code]
  Telerik.Windows.Data.dll!Telerik.Windows.Data.ItemPropertyInfoExtensions.SetValue(System.ComponentModel.ItemPropertyInfo itemProperty = {System.ComponentModel.ItemPropertyInfo}, object item = {WpfApplication1.ViewItem}, object value = 5) Line 89 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.ReturnOldValuesToRow(Telerik.Windows.Controls.GridViewColumnCollection columns = Count = 3, System.Collections.Generic.Dictionary<string,object> oldValues = Count = 3, object dataItem = {WpfApplication1.ViewItem}) Line 1011 + 0xbc bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.CancelRowEdit(Telerik.Windows.Controls.GridView.GridViewRow gridViewRow = {Telerik.Windows.Controls.TreeListView.TreeListViewRow}) Line 980 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.CancelEdit(Telerik.Windows.Controls.GridViewEditingUnit editingUnit = Row) Line 972 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.CancelEdit() Line 963 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.ItemsSourceChanged(bool sourceChanged = false) Line 3084 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.OnItemsChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 7965 + 0xa bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.BaseItemsControl.OnItemCollectionChanged(object sender = {Telerik.Windows.Data.DataItemCollection}, System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 686 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.DataItemCollection.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 639 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.DataItemCollection.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(object sender = {Telerik.Windows.Data.HierarchicalCollectionView}, System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 914 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.WeakEvent.WeakListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.Handler(object sender = {Telerik.Windows.Data.HierarchicalCollectionView}, System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 32 + 0x42 bytes C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 642 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.RefreshOverride() Line 790 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.RefreshInternal() Line 737 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.RefreshOrDefer() Line 732 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.ProcessSynchronousCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 1009 + 0x9 bytes C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.ProcessCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 952 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.HierarchicalCollectionView.ProcessCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 267 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.HierarchicalChildCollectionView.ProcessCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 189 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.OnSourceCollectionChanged(object sender = Count = 0, System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 1308 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(object sender = Count = 0, System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 1292 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.WeakEvent.WeakListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.Handler(object sender = Count = 0, System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 32 + 0x42 bytes C#
  [External Code]
  WpfApplication1.exe!WpfApplication1.ViewItem.NumberOfChildren.set(int value = 0) Line 65 + 0x15 bytes C#
> WpfApplication1.exe!WpfApplication1.ViewItem.NumberOfChildren.set(int value = 5) Line 63 C#
  [External Code]
  Telerik.Windows.Data.dll!Telerik.Windows.Data.ItemPropertyInfoExtensions.SetValue(System.ComponentModel.ItemPropertyInfo itemProperty = {System.ComponentModel.ItemPropertyInfo}, object item = {WpfApplication1.ViewItem}, object value = 5) Line 89 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.ReturnOldValuesToRow(Telerik.Windows.Controls.GridViewColumnCollection columns = Count = 3, System.Collections.Generic.Dictionary<string,object> oldValues = Count = 3, object dataItem = {WpfApplication1.ViewItem}) Line 1011 + 0xbc bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.CancelRowEdit(Telerik.Windows.Controls.GridView.GridViewRow gridViewRow = {Telerik.Windows.Controls.TreeListView.TreeListViewRow}) Line 980 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.CancelEdit(Telerik.Windows.Controls.GridViewEditingUnit editingUnit = Row) Line 972 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.CancelEdit() Line 963 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.ItemsSourceChanged(bool sourceChanged = false) Line 3084 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.OnItemsChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 7965 + 0xa bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.BaseItemsControl.OnItemCollectionChanged(object sender = {Telerik.Windows.Data.DataItemCollection}, System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 686 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.DataItemCollection.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 639 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.DataItemCollection.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(object sender = {Telerik.Windows.Data.HierarchicalCollectionView}, System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 914 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.WeakEvent.WeakListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.Handler(object sender = {Telerik.Windows.Data.HierarchicalCollectionView}, System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 32 + 0x42 bytes C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 642 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.RefreshOverride() Line 790 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.RefreshInternal() Line 737 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.RefreshOrDefer() Line 732 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.ProcessSynchronousCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 1009 + 0x9 bytes C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.ProcessCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 952 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.HierarchicalCollectionView.ProcessCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 267 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.HierarchicalChildCollectionView.ProcessCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 189 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.OnSourceCollectionChanged(object sender = Count = 0, System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 1308 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(object sender = Count = 0, System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 1292 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.WeakEvent.WeakListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.Handler(object sender = Count = 0, System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 32 + 0x42 bytes C#
  [External Code]
  WpfApplication1.exe!WpfApplication1.ViewItem.NumberOfChildren.set(int value = 0) Line 65 + 0x15 bytes C#
public class ViewItem
    {
        private static int NameID = 0;
        public ViewItem()
        {
            this.Name = "ObjectName" + NameID++;
            this.Children = new ObservableCollection<ViewItem>();
        }

        public ObservableCollection<ViewItem> Children
        {
            get;
            set;
        }

        public string Name { getset; }

        public int NumberOfChildren
        {
            get
            {
                return this.Children.Count;
            }
            set
            {
                if (value == 0)
                {
                    this.Children.Clear();
                }
                else
                {
                    for (int i = this.Children.Count; i < value; i++)
                    {
                        this.Children.Add(new ViewItem());
                    }
                }
            }
        }
    }

> WpfApplication1.exe!WpfApplication1.ViewItem.NumberOfChildren.set(int value = 5) Line 63 C#
  [External Code]
  Telerik.Windows.Data.dll!Telerik.Windows.Data.ItemPropertyInfoExtensions.SetValue(System.ComponentModel.ItemPropertyInfo itemProperty = {System.ComponentModel.ItemPropertyInfo}, object item = {WpfApplication1.ViewItem}, object value = 5) Line 89 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.ReturnOldValuesToRow(Telerik.Windows.Controls.GridViewColumnCollection columns = Count = 3, System.Collections.Generic.Dictionary<string,object> oldValues = Count = 3, object dataItem = {WpfApplication1.ViewItem}) Line 1011 + 0xbc bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.CancelRowEdit(Telerik.Windows.Controls.GridView.GridViewRow gridViewRow = {Telerik.Windows.Controls.TreeListView.TreeListViewRow}) Line 980 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.CancelEdit(Telerik.Windows.Controls.GridViewEditingUnit editingUnit = Row) Line 972 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.CancelEdit() Line 963 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.ItemsSourceChanged(bool sourceChanged = false) Line 3084 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.OnItemsChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 7965 + 0xa bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.BaseItemsControl.OnItemCollectionChanged(object sender = {Telerik.Windows.Data.DataItemCollection}, System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 686 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.DataItemCollection.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 639 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.DataItemCollection.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(object sender = {Telerik.Windows.Data.HierarchicalCollectionView}, System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 914 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.WeakEvent.WeakListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.Handler(object sender = {Telerik.Windows.Data.HierarchicalCollectionView}, System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 32 + 0x42 bytes C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 642 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.RefreshOverride() Line 790 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.RefreshInternal() Line 737 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.RefreshOrDefer() Line 732 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.ProcessSynchronousCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 1009 + 0x9 bytes C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.ProcessCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 952 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.HierarchicalCollectionView.ProcessCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 267 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.HierarchicalChildCollectionView.ProcessCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 189 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.OnSourceCollectionChanged(object sender = Count = 0, System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 1308 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(object sender = Count = 0, System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 1292 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.WeakEvent.WeakListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.Handler(object sender = Count = 0, System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 32 + 0x42 bytes C#
  [External Code]
  WpfApplication1.exe!WpfApplication1.ViewItem.NumberOfChildren.set(int value = 0) Line 65 + 0x15 bytes C
> WpfApplication1.exe!WpfApplication1.ViewItem.NumberOfChildren.set(int value = 5) Line 63 C#
  [External Code]
  Telerik.Windows.Data.dll!Telerik.Windows.Data.ItemPropertyInfoExtensions.SetValue(System.ComponentModel.ItemPropertyInfo itemProperty = {System.ComponentModel.ItemPropertyInfo}, object item = {WpfApplication1.ViewItem}, object value = 5) Line 89 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.ReturnOldValuesToRow(Telerik.Windows.Controls.GridViewColumnCollection columns = Count = 3, System.Collections.Generic.Dictionary<string,object> oldValues = Count = 3, object dataItem = {WpfApplication1.ViewItem}) Line 1011 + 0xbc bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.CancelRowEdit(Telerik.Windows.Controls.GridView.GridViewRow gridViewRow = {Telerik.Windows.Controls.TreeListView.TreeListViewRow}) Line 980 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.CancelEdit(Telerik.Windows.Controls.GridViewEditingUnit editingUnit = Row) Line 972 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.CancelEdit() Line 963 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.ItemsSourceChanged(bool sourceChanged = false) Line 3084 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.OnItemsChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 7965 + 0xa bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.BaseItemsControl.OnItemCollectionChanged(object sender = {Telerik.Windows.Data.DataItemCollection}, System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 686 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.DataItemCollection.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 639 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.DataItemCollection.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(object sender = {Telerik.Windows.Data.HierarchicalCollectionView}, System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 914 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.WeakEvent.WeakListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.Handler(object sender = {Telerik.Windows.Data.HierarchicalCollectionView}, System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 32 + 0x42 bytes C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 642 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.RefreshOverride() Line 790 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.RefreshInternal() Line 737 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.RefreshOrDefer() Line 732 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.ProcessSynchronousCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 1009 + 0x9 bytes C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.ProcessCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 952 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.HierarchicalCollectionView.ProcessCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 267 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.HierarchicalChildCollectionView.ProcessCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 189 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.OnSourceCollectionChanged(object sender = Count = 0, System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 1308 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(object sender = Count = 0, System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 1292 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.WeakEvent.WeakListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.Handler(object sender = Count = 0, System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 32 + 0x42 bytes C#
  [External Code]
  WpfApplication1.exe!WpfApplication1.ViewItem.NumberOfChildren.set(int value = 0) Line 65 + 0x15 bytes C
WpfApplication1.exe!WpfApplication1.ViewItem.NumberOfChildren.set(int value = 5) Line 63 C#
  [External Code]
  Telerik.Windows.Data.dll!Telerik.Windows.Data.ItemPropertyInfoExtensions.SetValue(System.ComponentModel.ItemPropertyInfo itemProperty = {System.ComponentModel.ItemPropertyInfo}, object item = {WpfApplication1.ViewItem}, object value = 5) Line 89 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.ReturnOldValuesToRow(Telerik.Windows.Controls.GridViewColumnCollection columns = Count = 3, System.Collections.Generic.Dictionary<string,object> oldValues = Count = 3, object dataItem = {WpfApplication1.ViewItem}) Line 1011 + 0xbc bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.CancelRowEdit(Telerik.Windows.Controls.GridView.GridViewRow gridViewRow = {Telerik.Windows.Controls.TreeListView.TreeListViewRow}) Line 980 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.CancelEdit(Telerik.Windows.Controls.GridViewEditingUnit editingUnit = Row) Line 972 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.CancelEdit() Line 963 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.ItemsSourceChanged(bool sourceChanged = false) Line 3084 C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.OnItemsChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 7965 + 0xa bytes C#
  Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.BaseItemsControl.OnItemCollectionChanged(object sender = {Telerik.Windows.Data.DataItemCollection}, System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 686 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.DataItemCollection.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 639 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.DataItemCollection.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(object sender = {Telerik.Windows.Data.HierarchicalCollectionView}, System.Collections.Specialized.NotifyCollectionChangedEventArgs e = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 914 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.WeakEvent.WeakListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.Handler(object sender = {Telerik.Windows.Data.HierarchicalCollectionView}, System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 32 + 0x42 bytes C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 642 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.RefreshOverride() Line 790 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.RefreshInternal() Line 737 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.RefreshOrDefer() Line 732 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.ProcessSynchronousCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 1009 + 0x9 bytes C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.ProcessCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 952 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.HierarchicalCollectionView.ProcessCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 267 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.HierarchicalChildCollectionView.ProcessCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 189 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.OnSourceCollectionChanged(object sender = Count = 0, System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 1308 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.Telerik.Windows.Data.IWeakEventListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.ReceiveWeakEvent(object sender = Count = 0, System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 1292 C#
  Telerik.Windows.Data.dll!Telerik.Windows.Data.WeakEvent.WeakListener<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.Handler(object sender = Count = 0, System.Collections.Specialized.NotifyCollectionChangedEventArgs args = {System.Collections.Specialized.NotifyCollectionChangedEventArgs}) Line 32 + 0x42 bytes C#
  [External Code]
  WpfApplication1.exe!WpfApplication1.ViewItem.NumberOfChildren.set(int value = 0) Line 65 + 0x15 bytes C
Greg
Top achievements
Rank 1
 answered on 22 Dec 2010
1 answer
137 views
Hi,

I'm currently evaluating Tererik WPF RAD controls for use on a future large scale project. Those most samples work as expected but the gauge dashboard sample always crashes regardless.

I'm using build RadControls_for_WPF40_2010_3_1110_Trial

My design environment is VS2010 using .NET4 framework on XP Pro SP3. The graphics is standard onboard intel chipset and has the latest drivers and all patches applied including silverlight patches.

The following exception occurs when running the supplied compiled sample app:

System.NullReferenceException was unhandled
  Message=Object reference not set to an instance of an object.
  Source=Gauge
  StackTrace:
       at Telerik.Windows.Examples.Gauge.Gallery.CarDashboard.Example.Provider_RoutingCompleted(Object sender, RoutingCompletedEventArgs e) in c:\Dev3\branches\2010.Q3.Release\Output\Trial\Demos\Examples\Gauge\Gallery\CarDashboard\Example.xaml.cs:line 146
       at Telerik.Windows.Controls.Map.RouteProviderBase.OnRoutingCompleted(ResponseBase response) in c:\Dev3\branches\2010.Q3.Release\Controls\DataVisualization\Map\Providers\Route\RouteProviderBase.cs:line 63
       at Telerik.Windows.Controls.Map.BingRouteProvider.RouteServiceCloseCompleted(Object sender, AsyncCompletedEventArgs e) in c:\Dev3\branches\2010.Q3.Release\Controls\DataVisualization\Map\Providers\Route\BingRouteProvider.cs:line 428
       at Telerik.Windows.Controls.Map.BingRouteProvider.RouteServiceCalculateRouteCompleted(Object sender, CalculateRouteCompletedEventArgs e) in c:\Dev3\branches\2010.Q3.Release\Controls\DataVisualization\Map\Providers\Route\BingRouteProvider.cs:line 422
       at Telerik.Windows.Controls.Map.WPFBingRouteService.RouteServiceClient.OnCalculateRouteCompleted(Object state) in c:\Dev3\branches\2010.Q3.Release\Controls\DataVisualization\Service References\WPFBingRouteService\Reference.cs:line 2379
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Windows.Threading.DispatcherOperation.Invoke()
       at System.Windows.Threading.Dispatcher.ProcessQueue()
       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at Telerik.Windows.Examples.App.Main() in c:\Dev3\branches\2010.Q3.Release\Output\Trial\Demos\Examples.WPF\obj\x86\Release\App.g.cs:line 0
  InnerException:

While debugging in VS2010 the exception seems to be here:

****

Private Sub Provider_RoutingCompleted(sender As Object, e As RoutingCompletedEventArgs)

    dim routeResponse As RouteResponse = TryCast(e.Response, RouteResponse)

    If routeResponse IsNot Nothing Then 

       If routeResponse.Result.RoutePath IsNot Nothing Then

****

routeResponse.Result is set to nothing !


I am evaluating WPF controls but I'm unable to recommend them if the provided samples don't run, apart from that the controls look really good.

Any feedback would be appreciated,

Norman.
N Mackay
Top achievements
Rank 1
 answered on 22 Dec 2010
1 answer
112 views
Is there some way I can intercept a user's click of the red X (close) button on a criteria within the rad data filter? In particular, I'm trying to determine whether or not I can handle a click on the root-level X button in order to warn the user that their data filter will be cleared out by proceeding.
Rossen Hristov
Telerik team
 answered on 22 Dec 2010
2 answers
817 views
I am having a hard time having my FileExplorer Treeview maintain item selection when I click on another control.  You can see this happening by clicking 'Open FileExplorer Window' and then clicking on the textbox below the Treeview.

Im going to reference the same control that I have been using for various examples with you guys.
Please download it here  Copy the foo directory to C:\

Thanks again for your continued support!

Ryan
Ryan Black
Top achievements
Rank 1
 answered on 22 Dec 2010
2 answers
141 views
I would like to save the index of the active view so that the user comes back to the same view the next time he/she uses the schedule view.

Thanks,
Rod
Rod Yager
Top achievements
Rank 1
 answered on 22 Dec 2010
1 answer
130 views
Hi,

I have several usercontrol diplay on information layer (HotSpot). I need to interact with these user controls, for exemple changing color fo the control. How can I do this?

Thanks!

Andrey
Telerik team
 answered on 22 Dec 2010
2 answers
172 views
I am trying to implement a selection mechanism to select a series of MapShapes from a particular layer.  The stategy that I use is to create a MapPath and set the Data item to be a MapGeometryGroup.

For each shape that is selected (and these are either MapPaths or MapPolygons), I create a MapGeometry from it, and then add that geometry to the group.

Works perfectly!

However, I now need to shrink each of the geometries by 10%, and align them in the center of the original shapes.  So for each of the MapGeometries I have added a Transform

LocationRect locationRect = mapShape.GeographicalBounds;
locationRect.MapControl = MapControl;
TransformGroup transformGroup = new TransformGroup();
transformGroup.Children.Add(new TranslateTransform(-locationRect.Northwest.Latitude, locationRect.Northwest.Longitude));
transformGroup.Children.Add(new ScaleTransform(0.9, 0.9));
transformGroup.Children.Add(new TranslateTransform(locationRect.Center.Longitude, mapShape.GeographicalBounds.Center.Latitude));
mapGeometry.Transform = transformGroup;

I have two problems;

1. The translate doesn't take me to the correct origin to apply the ScaleTransform so that I don't move my X, Y coordinates in the scale
2. If I add two shapes to the Group, then the transform seems to be applied to both MapGeometries in the Group, rather than applying just to itself.

Any help would be appreciated

Thanks
Simon
Andrey
Telerik team
 answered on 22 Dec 2010
9 answers
643 views
I want to be able to move to the next cell or row although the current cell has validation errors but I cant seem to find a property to override the default behaviour. To be specific: I want to display validation but not restrict the user from moving to the next cell or row (or leaving the grid for that sake).

1) Is there a way to override this default behaviour?
2) If no, are there any plans to support this scenario?
Marius
Top achievements
Rank 1
 answered on 22 Dec 2010
1 answer
40 views
Hi,
I have  a line graph and i need my x axis to start with 1 instead of 0 and also is it possible to have a grid behind the plot points? Is that possible and how do you that please?
Any help would be great.


Thanks

Simon

Nikolay
Telerik team
 answered on 22 Dec 2010
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?