Telerik Forums
UI for WPF Forum
1 answer
477 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
495 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
232 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
113 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
265 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
500 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
182 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
1 answer
121 views
I have a column that is stored as Y/N in our database. I would like to use a checkbox to display this but I don't see any converters.

We previously used the Infragistics Grid and it supported this feature. Is this something you will be supporting in the future?
Hristo Deshev
Telerik team
 answered on 25 Jul 2008
1 answer
82 views
Hi,
I have some questions - I've looked in the examples but couldn't find the answers. Maybe you should extend your "Columns" example with this.

I have a Datagrid bound to a datasource.
In one column I have a unbound Button
In another column I have a unbound ComboBox

Both inserted via a ControlTemplate

1) When clicking the Button how do I know which row was clicked?
I use the DataGrid.CurrentRecord property - and that seems to work ok. Through casts I can get the primaryID of the row.
But is that the preferred way to do it. And is it a reliable way?

2) In the button click event: How do I access the ComboBox in the current row. I've tried doing it through the CurrentRecord property . but seems to focus more on the datasource rows - and not on the rendered rows and cells. How do I do that ?

3) Do you ship documentation with the Release 1.0 at the end of July ?
Milan
Telerik team
 answered on 24 Jul 2008
3 answers
147 views
I was happily using the wpf beta 1 and developing a project prototype.  When the beta 2 was released I uninstalled beta 1 and installed beta 2 with the samples. Now when I try to drag a radgridview or gridviewdatacontrol onto the design surface in vs 2008 I get an "object reference not set to an instance of an object" error message.
I'm also getting error messages when i try to run the samples the error messages are
An error has occurred wide establishing a comection to the server. when cornectting to
sQL Server 2005, this failure may be caused by the Fact that under the default setttings
sQL sever does allow remote connections. (provider: Named Pipes Provider, error:
40
- Could not open a comection to SQL Server)

and it appears it is trying to access a non existent instance of SQLExpress.  Can anyone help with these issues?
Thanks for any assistance
Nedyalko Nikolov
Telerik team
 answered on 21 Jul 2008
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
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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
Bronze
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?