Telerik Forums
UI for WPF Forum
3 answers
118 views

Hi,
 I trying to run the application

I get this Error

System.ArgumentException occurred

  Message=Property with name Time cannot be found on type Object

  Source=Telerik.Windows.Data

  StackTrace:

       at Telerik.Windows.Data.PropertyPathDescriptor.GetPropertyDescriptor(PropertyToken token, Type componentType) in c:\Builds\WPF_Scrum\Release_WPF_2010_Q1_SP2\Sources\Development\Core\Data\ItemProperties\PropertyPathDescriptor.cs:line 83

this start after  install the new version  of telerik

 

Someone can help?

 

Best regards

Ehud

Avi Avni
Top achievements
Rank 1
 answered on 07 Oct 2010
1 answer
44 views
ShowInsertRow is neat, but it doesn't let you bind to a Command in the view-model that might be required to do the insert. Would be nice if InsertRowCommand existed. Could wire up CanExecute also.
Nedyalko Nikolov
Telerik team
 answered on 07 Oct 2010
5 answers
135 views
I have a grouped RadGrid which uses a SumFunction on some of the columns to display aggregates in a group footer.

It works properly when starting up but as rows are added the group footer does not update.

Strangely the group header contains the same aggregate numbers and those numbers do update correctly. Is this a known problem? 
Maya
Telerik team
 answered on 06 Oct 2010
1 answer
112 views

Good afternoon!

I've found two issues with RadTabControl scrolling. All the needed information can be found at ticket #353795.

Also I have a question, how can I customize the style of DropDown's item?? For example, I want to see not the header of TabItem. but its content in DropDown.

Thanks in advance.

Kiril Stanoev
Telerik team
 answered on 06 Oct 2010
3 answers
155 views
How do you vary the amount by which child nodes are indented ?
Tina Stancheva
Telerik team
 answered on 06 Oct 2010
7 answers
201 views
Hi,
I want some operation on Grid view combo column selection changed. How can I do that . Is there any event ? I read that is is derived from RadCombobox column. Thanks
Zubair
Maya
Telerik team
 answered on 06 Oct 2010
3 answers
106 views
Hi,

I am using RADCalander of wpf,i want to apply style(color) to type of the day.
Ex:
Sun--Red color
Mon-Blue color
Tue--Green color

Could you please help me to sort out this.Its urgent
Kaloyan
Telerik team
 answered on 06 Oct 2010
1 answer
105 views

 

 

 

Hi all,
i have applied validation in a text box as follows. note i m using enterprise library for validation purpose:

<
TextBox Grid.Row="3" Grid.Column="1" TabIndex="2" Margin="5" MinHeight="40" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Visible" >

 

 

 

 

<Binding Path="Vehicle.Comments" UpdateSourceTrigger="PropertyChanged" ValidatesOnDataErrors="True" Mode="TwoWay" >

 

 

 

 

<Binding.ValidationRules>

 

 

 

 

<y:ValidatorRule SourcePropertyName="Comments" SourceType="{x:Type e:tblVehicle}"/>

 

 

 

 

</Binding.ValidationRules>

 

 

 

 

</Binding>

 

 

 

 

</TextBox>

now i want to apply it at RadDatePicker:

 

 

 

 

<telerik:RadDatePicker TabIndex="8" ToolTip="Enter due date ..." Name="dtpDueDate" Height="25"

 

 

 

Background="Transparent" BorderBrush="{DynamicResource brushWatermarkBorder}" >

 

 

 

 

<telerik:RadDatePicker.SelectedDate>

 

 

 

 

 

 

 

 

 

</telerik:RadDatePicker.SelectedDate>

 

 

 

 

 

 

 

 

 

 

 

 

</telerik:RadDatePicker>
it give me nothing under .selectedDate property.

how can i apply the validation rule in a pattern as applied at textbox in the datepicker?

Thanks.

 

Kaloyan
Telerik team
 answered on 06 Oct 2010
1 answer
75 views
Hi ,
I developed Custom Calender using RadCalendar control.
Few properties  and Events reffer Telerik.Windows.Controls.
For example:
public event System.EventHandler<Telerik.Windows.Controls.Calendar.CalendarModeChangedEventArgs> DisplayModeChanged
    {
        add { RadCalendar.DisplayModeChanged += value; }
        remove { RadCalendar.DisplayModeChanged -= value; }
    }
In above code block iam using "Telerik.Windows.Controls.Calendar.CalendarModeChangedEventArgs" 
Now i want to use "MY.Windows.Controls.Calendar.CalendarModeChangedEventArgs"
The developer should not use Any telerix Reference , when he is using my Custom control.He just need to use 
My.Windows.controls.
What should i do to change Telerix to MY while using those events ?
Can you guys help me.

Thanks,
Pradeep.
Kaloyan
Telerik team
 answered on 06 Oct 2010
8 answers
284 views
I am trying to change the theme of some of the RadControls at runtime. In the documentation, I found 2 ways to set the theme, neither of which work. I can set the theme at design time no problem.

StyleManager

 

.SetTheme(radSchedulerMain, new Office_BlackTheme());

 

radSchedulerMain.SetValue(

StyleManager.ThemeProperty,new SummerTheme());

 

 

With both methods, I get "There is no source code available for the current location", then "Index was outside the bounds of the array". How do I get past this problem?? Exception details below.


System.IndexOutOfRangeException was unhandled
  Message="Index was outside the bounds of the array."
  Source="PresentationFramework"
  StackTrace:
       at System.Windows.Controls.ItemContainerGenerator.RealizedItemBlock.ContainerAt(Int32 index)
       at System.Windows.Controls.ItemContainerGenerator.ContainerFromIndex(Int32 index)
       at Telerik.Windows.Controls.RadRibbonBar.TabControlElementItemContainerGenerator_StatusChanged(Object sender, EventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\RibbonBar\RibbonBar\RadRibbonBar.cs:line 1197
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Windows.Controls.ItemContainerGenerator.SetStatus(GeneratorStatus value)
       at System.Windows.Controls.ItemContainerGenerator.Generator.System.IDisposable.Dispose()
       at System.Windows.Controls.Panel.reGenerateChildren()
       at System.Windows.Controls.Panel.get_InternalChildren()
       at Telerik.Windows.Controls.RibbonBar.Primitives.TabStripPanel.MeasureOverride(Size availableSize) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\RibbonBar\RibbonBar\Primitives\TabStripPanel.cs:line 59
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       at System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Border.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.DockPanel.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Control.MeasureOverride(Size constraint)
       at Telerik.Windows.Controls.RadTabControl.MeasureOverride(Size availableSize) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\TabControl\RadTabControl.cs:line 2045
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Control.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.ContextLayoutManager.UpdateLayout()
       at Telerik.Windows.Controls.RadComboBox.NavigateToItem(Object item) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\Input\ComboBox\RadComboBox.cs:line 780
       at Telerik.Windows.Controls.RadComboBox.OnSelectionChanged(SelectionChangedEventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\Input\ComboBox\RadComboBox.cs:line 1365
       at System.Windows.Controls.Primitives.Selector.SelectionChanger.End()
       at System.Windows.Controls.Primitives.Selector.SelectionChanger.SelectJustThisItem(Object item, Boolean assumeInItemsCollection)
       at System.Windows.Controls.Primitives.Selector.OnSelectedItemChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
       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 System.Windows.Controls.Primitives.Selector.set_SelectedItem(Object value)
       at Telerik.Windows.Controls.RadComboBox.NotifyComboBoxItemMouseUp(RadComboBoxItem comboBoxItem) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\Input\ComboBox\RadComboBox.cs:line 870
       at Telerik.Windows.Controls.RadComboBoxItem.OnMouseLeftButtonUp(MouseButtonEventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\Input\ComboBox\RadComboBoxItem.cs:line 254
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       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.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       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.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
       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.TranslateAndDispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Application.RunInternal(Window window)
       at Scheduler_WPF.App.Main() in C:\Personal Files\My Dropbox\Scheduler_WPF\Scheduler_WPF\obj\Debug\App.g.cs:line 0
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:

 

Tina Stancheva
Telerik team
 answered on 06 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?