Telerik Forums
UI for WPF Forum
4 answers
121 views
I'm reading Styling in Expression Blend from RadGridView Doc. I found that Edit Other Templates is disabled in Blend, why?

Thanks in advance.
Chris
Telerik team
 answered on 12 Aug 2008
3 answers
275 views
Hello,

There is a feature that I never see in other chart products, for example I got 4 array of results and wants to see dynamic evolution between them.

In RadChart there is animation when it is rendered, but I mean something like a slide with my arrays and animation.
Maybe it is already there and I missed this feature.

Thanks !
Ves
Telerik team
 answered on 11 Aug 2008
9 answers
607 views
We are currently using a single grid to display data for multiple "tabs" (in reality a restyled listbox where we bind a new data source to the grid when the selected item changes).

Different tabs can have different columns displayed, so we regenerate the collection of GridViewDataColumn objects whenever tab is switched.  We always set IsCustomSortingEnabled to true on these objects.  We then hook the SortingRequested event and refetch our data whenever a column header is clicked and the collection of sorting criteria changes.  This works fine when a column header is clicked, but breaks when we switch to a tab that was previously sorted.

When we switch to a previously sorted tab, we regenerate the GridViewDataColumn collection (setting IsCustomSortingEnabled to true as ever), clear SortDescriptions on the grid and repopulate it with the correct SortDescription objects.

The problem is that setting these SortDescription's appears to trigger the RadGridView's native sorting mechanism, at which point it complains that our domain objects don't implement IComparable.  I've attached the stack trace at the end of this post.

So it looks as if somewhere in the grid code IsCustomSortingEnabled is not being checked.

All help gratefully received

Regards

Chris

-----------------

at System.Collections.Comparer.Compare(Object a, Object b)
at System.Collections.Generic.ObjectComparer`1.Compare(T x, T y)
at Telerik.Windows.Data.Grouping.NullValuesComparer`1.Compare(Object x, Object y)
at Telerik.Windows.Data.Grouping.SortDescriptionComparer`1.CompareWithIndexes(Int32 xIndex, TElement xElement, Int32 yIndex, TElement yElement)
at Telerik.Windows.Data.Grouping.SortDescriptionsComparer`1.CompareWithIndexes(Int32 xIndex, TElement xElement, Int32 yIndex, TElement yElement)
at Telerik.Windows.Data.Grouping.DataSourceIndexComparer`1.Compare(Int32 x, Int32 y)
at System.Linq.EnumerableSorter`2.CompareKeys(Int32 index1, Int32 index2)
at System.Linq.EnumerableSorter`1.QuickSort(Int32[] map, Int32 left, Int32 right)
at System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count)
at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__0.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Telerik.Windows.Data.Grouping.DataRecordList`1.get_UnfilteredIndexes()
at Telerik.Windows.Data.Grouping.DataRecordList`1.get_DataSourceIndexes()
at Telerik.Windows.Data.Grouping.DataRecordList`1.get_Count()
at Telerik.Windows.Data.VirtualizingRecordCollection.get_Count()
at Telerik.Windows.Data.VirtualizingRecordCollection.System.Collections.ICollection.get_Count()
at MS.Internal.Data.IndexedEnumerable.GetNativeIsEmpty(Boolean& isEmpty)
at MS.Internal.Data.IndexedEnumerable.get_IsEmpty()
at System.Windows.Data.CollectionView.get_IsEmpty()
at System.Windows.Data.CollectionView.RefreshOverride()
at System.Windows.Data.CollectionView.RefreshInternal()
at System.Windows.Data.CollectionView.RefreshOrDefer()
at System.Windows.Data.CollectionView.ProcessCollectionChanged(NotifyCollectionChangedEventArgs args)
at System.Windows.Data.CollectionView.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
at Telerik.Windows.Data.VirtualizingRecordCollection.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Data.VirtualizingRecordCollection.OnCollectionReset()
at Telerik.Windows.Data.VirtualizingRecordCollection.Reset()
at Telerik.Windows.Data.VirtualizingRecordCollection.set_RealRecords(IList`1 value)
at Telerik.Windows.Data.RecordManager.RecalculateGroups()
at Telerik.Windows.Data.RecordManager.SortDescriptions_CollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Data.RadObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
at Telerik.Windows.Data.RadObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedAction action, Object item, Int32 index)
at Telerik.Windows.Data.RadObservableCollection`1.InsertItem(Int32 index, T item)
at System.Collections.ObjectModel.Collection`1.Add(T item)
at Epro.ClientControls.Entity.DataGrid.EntityGridSortHandler.SetSortedColumnHeaders(ICollection`1 sortDescriptions, IEnumerable`1 propertiesToDisplay) in C:\Epro4Trunk\Epro.ClientControls\Entity\DataGrid\EntityGridSortHandler.cs:line 63
Atanas
Telerik team
 answered on 07 Aug 2008
1 answer
458 views
How can I open a second window for editing when a row in the grid is double clicked?

I have been trying to use the MouseDoubleClick event on the grid and that almost works as desired. When the event is fired I use the CurrentRecord value to determine which record needs to be shown in the new window. The problem is when someone double clicks on a part of the grid that is not a row. For example, double clicking on the header will still open the CurrentRecord even thought that record was not clicked on. I have MultipleSelect set to false so only one record can be selected at a time.
Jimmy
Telerik team
 answered on 06 Aug 2008
1 answer
483 views
Hello, I've downloaded the beta for RadCoontrols for WPF (today, 2008/8/1) and am trying to use the RadTreeView control. Looking in the .chm help file, it refers to the assembly Telerik.Windows.Controls.Navigation.dll, but I don't see that anywhere. Help!

The RadTreeView was the reason I downloaded this.

Incidentally, the opening screen when you first load the beta samples project into VS 2008, is beautiful. Where is that created, and can we get the sample source that generates this (I assume it's created in XAML somewhere?)?

Thank you for your time and help, it's great appreciated

James Hurst
Milan
Telerik team
 answered on 05 Aug 2008
7 answers
214 views
I don't know if it is just me, but the WPF Demo of the Carousel control (and only that control) crashed for almost every example I tried.  That's a little frustrating. :(  Anyway, I just wanted to alert you to that.
Allen
Top achievements
Rank 2
 answered on 04 Aug 2008
2 answers
100 views
Is it possible to prevent sorting happening when a user right clicks on a header cell? We would like to display a context menu instead, but still allow sorting if they left click.

Kind regards,

Will Holley
Will
Top achievements
Rank 1
 answered on 04 Aug 2008
1 answer
252 views

Hi,

I am building a WPF app and would like to integrate WPF treeview control from Telerik.

I have a couple of questions which will help me make decision faster.

1.Can we create dynamic context menus for different treeview nodes.
2.Can we create tree view nodes by just passing observable collection of different objects. Means like I have list of cars object at first node and then their parts as child and in second node I have Trucks or something like that.

Thanks

Atul
Valentin.Stoychev
Telerik team
 answered on 30 Jul 2008
6 answers
456 views
Hi, I am having a little problem with databinding against the Treeview in WPF.

This is my data template

 <DataTemplate x:Key="TreeParameterDataTemplate" DataType="TreeParameter">  
            <StackPanel>                  
                <Telerik:RadTreeView  
                 VerticalAlignment="Top" 
                 HorizontalAlignment="Left" 
                 MinHeight="100" 
                 x:Name="myTreeview" 
                 Margin="0, 0, 20, 0" 
                 SelectionMode="Single" 
              
                 SelectedValuePath="{Binding Path=ParameterValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" 
                 ItemsSource="{Binding Path=Nodes, Mode=Default}" 
                 ItemTemplate="{DynamicResource ValidValueNodeDataTemplate}" 
                 IsTriStateMode="True" 
                 IsOptionElementsEnabled="True" 
                 ItemsOptionListType="CheckList">  
            </Telerik:RadTreeView> 
                <!--<ListBox ItemTemplate="{DynamicResource ValidValueNodeDataTemplate}"  ItemsSource="{Binding Path=Nodes, Mode=Default}" />--> 
            </StackPanel> 
    </DataTemplate> 

It seams to be the SelectedValuePath that is causing the problem. It should be a string, and ParameterValue is a string, but I get the following error:

System.InvalidOperationException was unhandled  
  Message="Syntax error in PropertyPath 'Syntax error in Binding.Path '[Business Hierarchy].[Power Pack Hierarchy].[Power Pack Description].&[Aggreko International]' ... '&[Chile]&[1]'.'." 
  Source="PresentationFramework" 
  StackTrace:  
       at System.Windows.PropertyPath.PrepareSourceValueInfo(ITypeDescriptorContext typeDescriptorContext)  
       at System.Windows.PropertyPath..ctor(String path, Object[] pathParameters)  
       at Telerik.Windows.Controls.RadTreeView.GetSelectedValuePathBinding()  
       at Telerik.Windows.Controls.RadTreeView.UpdateSelectedValue()  
       at Telerik.Windows.Controls.RadTreeView.SelectionChanger_SelectionChanged(Object sender, SelectionChangedEventArgs e)  
       at Telerik.Windows.Controls.SelectionChanger`1.InvokeSelectionChangedEvent()  
       at Telerik.Windows.Controls.SelectionChanger`1.End()  
       at Telerik.Windows.Controls.SelectionChanger`1.InsertItem(Int32 index, T item)  
       at System.Collections.ObjectModel.Collection`1.Add(T item)  
       at Telerik.Windows.Controls.RadTreeViewItem.OnIsSelectedPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs args)  
       at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)  
       at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)  
       at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)  
       at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, OperationType operationType)  
       at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, OperationType operationType, Boolean isInternal)  
       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)  
       at Telerik.Windows.Controls.RadTreeViewItem.set_IsSelected(Boolean value)  
       at Telerik.Windows.Controls.RadTreeView.SetSelectedItem(RadTreeViewItem itemContainer)  
       at Telerik.Windows.Controls.RadTreeView.HandleItemSelectionFromUI(RadTreeViewItem itemUnderCursor)  
       at Telerik.Windows.Controls.RadTreeViewItem.OnHeaderMouseLeftButtonDown(Object sender, MouseButtonEventArgs e)  
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)  
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)  
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)  
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)  
       at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)  
       at System.Windows.UIElement.CrackMouseButtonEventAndReRaiseEvent(DependencyObject sender, MouseButtonEventArgs e)  
       at System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)  
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)  
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)  
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)  
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)  
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)  
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)  
       at System.Windows.Input.InputManager.ProcessStagingArea()  
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)  
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)  
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)  
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)  
       at System.Windows.Interop.HwndSource.InputFilterMessage(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, Boolean isSingleParameter)  
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)  
       at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)  
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)  
       at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)  
       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 System.Windows.Application.Run()  
       at Aggreko.ABI.ABIReportViewer.Application.Main() in C:\Working\Workspaces\ATFS01\Sirius\DEV\R699\Aggreko.ABI.ABIReportViewer\obj\Debug\Application.g.vb:line 73  
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)  
       at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)  
       at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)  
       at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()  
       at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)  
       at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)  
       at System.Activator.CreateInstance(ActivationContext activationContext)  
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()  
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)  
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)  
       at System.Threading.ThreadHelper.ThreadStart()  
  InnerException:   
 

Help...
Valentin.Stoychev
Telerik team
 answered on 28 Jul 2008
9 answers
175 views
Hi,

we own a "RadControls for ASP.NET AJAX+WinForms+Reporting" subscription.

While your Silverlight and WPF controls are still beta some of your competitors (like infragistics, xceed and so on) offer allready complete suites (even with charts and a lot more controls).

Our question is when and what we have to expect.
We are on some customer projects in WPF - Silverlight will follow.

We have some possibilities now:
a.) Buy a suite from a different vendor
++Available NOW (in Versions greater 1.x - so stable)
--We don't know them and have (almost) good experiences with you
--Extra cost - maybe!!
b.) Wait for you
++Well known things
++Extremly good Experiences with ASP Suite
++Good support (Except Winforms)
--Lots of problems with Winforms - maybe the same with WPF
--Donno when we get releases
--Donno what will be in or when we get (for an example) chart
??Save a lot of money --- if about 1.000 means a lot off :)

A primary question is if WPF and Silverligt will be included in the
"RadControls for ASP.NET AJAX+WinForms+Reporting" subscription.

And will the quallity stay on the ASP controls level or be as problematic as with Winforms (OK - question not answerable).

The thing with ASP - this was the first product we purchased - and we had (very little) problems - AND they have been solved very quickly.
With Winform there are a lot of problems - and some of them not solved over two releases!!!
Just a few things occuring to us:
Button - not working with "DialogResult"
TabPages - strange navi keys.
Panels - not copying all conctent (copy a well done panel to another form for an example).
Textbox - ShitTab does not work.
Listbox - problems in layout; no "Selected Item" like the Winforms LB.
Docking - Minsize ignored, FixedSplitters ignored
Combobox Dropdown overriding style set in designer.
AND SO ON

But I'll stop these things here.

In short words:
Will WPF and Silverligt be included in the
"RadControls for ASP.NET AJAX+WinForms+Reporting" subscription?
Will you provide (soon - or with release) Chart for WPF?
Do you have any idea about a release date?

Regards

Manfred
Nikolay
Telerik team
 answered on 25 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?