Telerik Forums
UI for WPF Forum
1 answer
139 views
Hi,
I have a RadCalendar control in my WPF application to which I have bound data in code-behind. I am loading SpecialDays on to my calendar control and assign the Title of the event as tool tip of the day. When I have multiple SpecialDays falling on same Date, the tool tip shows only one event. Is there built in functionality to show all the titles of the events for that Date? Is there any workaround apart from creating custom tool tip?

Thanks.
Ventzi
Telerik team
 answered on 04 Feb 2014
7 answers
311 views
Create a new WPF project, add a RadDocking to the page, then add a DocumentHost to the RadDocking, like so:

<telerik:RadDocking HasDocumentHost="True">
    <telerik:RadDocking.DocumentHost>
        <telerik:RadSplitContainer>
            <telerik:RadPaneGroup>
                <telerik:RadDocumentPane Header="Document 1" Title="Document 1" />
            </telerik:RadPaneGroup>
        </telerik:RadSplitContainer>
    </telerik:RadDocking.DocumentHost>
</telerik:RadDocking>

Run the app in debug mode and you'll get the following error in the VIsual Studio output window:

System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=DropDownButtonElement'. BindingExpression:Path=IsChecked; DataItem=null; target element is 'DropDownMenu' (Name='DropDownMenuElement'); target property is 'IsOpen' (type 'Boolean')

Using version 2011.1.419.40. Noticed that there was a similar problem with the RadTabControl (see http://www.telerik.com/community/forums/wpf/tabcontrol/strange-error-message-in-debug-view.aspx). Can't reproduct the same error with RadTabControl. Suspect this is a similar issue. Doesn't cause any problems but would be nice to remove the error.

Can can anyone else confirm this?
Yana
Telerik team
 answered on 04 Feb 2014
1 answer
104 views
Hi.
When I set AllowParsingWithoutSeperator to true and InputMode is DatePicker there's a bug when you try to update the date. The date doesn't update when you change it in the UI, but go back to it's initial value, even when you are entering a valid date.

So if the value is "13.02.2014" and I try to change just the year to "2015" it will go back to "2014". In order to update the value I have to start updating from the beginning of the date. 
My culture is "nb-NO". If I set it to "en-US" it behaves worse, the date will just be removed if you try to alter the date (not from the beginning of the date). This bug is reproducible in the Telerik demo for Q3 2013 Sp1.

Sorry if this is already reported, I didn't find it scanning through DateTimePicker and DatePicker forums. Btw, this behavior is the same for DatePicker.

Regards 
Arnstein
Konstantina
Telerik team
 answered on 04 Feb 2014
3 answers
180 views
Hi, 

i have set the watermark for autocompletebox by setting the WatermarkContent, property, it works, however in the visual studio output window i can still see the following errors which i would like to avoid. 


System.Windows.Data Error: 26 : ItemTemplate and ItemTemplateSelector are ignored for items already of the ItemsControl's container type; Type='RadWatermarkTextBox'

System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=WatermarkTextBox'. BindingExpression:Path=ActualWidth; DataItem=null; target element is 'AutoCompleteBoxesWrapPanel' (Name=''); target property is 'Width' (type 'Double')



Any suggestions? 

thanks

Kalin
Telerik team
 answered on 04 Feb 2014
1 answer
112 views
Hi,

I'm working on a migration of a WPF platform from .NET 3.5 to .NET 4.0.
I have met some execution errors that came from a Telerik dll (in fact the dll version was 2.0). So before to purchase a newest version I would like to try if the new Telerik relase has the bug fixed. I have downloaded the newest release WPF 4.0 and I have tried to put into my project.

The good news is that there is no execution error anymore. The bad news is that I have some compilation errors due to HeadererContentControl in my main window (xaml file).

I have to admit that i'm not a Telerik pro user, I didn't know Telerik items and I don't really know what I can use instead of HeadererContentControl.
I have looked for this error and visibly this kind of element was created for your demos if I have well understood and it doesn't exist anymore in the new release.

There is a part of the code where this element is used:


<Telerik_Windows_Controls_QuickStart:HeaderedContentControl Header="title1" >  <br><telerik:RadPanelBar><br><telerik:RadPanelBarItem Header="choice1"><br><telerik:RadPanelBarItem Header="choice2"><br></telerik:RadPanelBar><br></Telerik_Windows_Controls_QuickStart:HeaderedContentControl><br><br><Telerik_Windows_Controls_QuickStart:HeaderedContentControl Header="title2" ><br><telerik:RadPanelBar><br><telerik:RadPanelBarItem Header="choice3"><br><telerik:RadPanelBarItem Header="choice4"><br></telerik:RadPanelBar><br></Telerik_Windows_Controls_QuickStart:HeaderedContentControl>

There are errors:

Error    2    The tag 'HeaderedContentControl' does not exist in XML namespace 'clr-namespace:Telerik.Windows.Controls.QuickStart;assembly=Telerik.Windows.Controls'. Line 142 Position 14.

Error    4    The type 'Telerik_Windows_Controls_QuickStart:HeaderedContentControl' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.

Error    5    The type 'Telerik_Windows_Controls_QuickStart:HeaderedContentControl' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.




I would like to add that I had any compilation error with the previous dll (version 2.0) and that these errors have appeared since the migration.


Thanks,

Benoît






Yana
Telerik team
 answered on 04 Feb 2014
1 answer
217 views
hi,

I want to change the style of the vertical scrollbar of the AutoCompleteBox dropdown, specifically I want to increase the width of the scrollbar. I don't have Blend. How do I go about that?

thanks in advance,

Paul
Masha
Telerik team
 answered on 04 Feb 2014
1 answer
121 views
Hello

I'm using property grid to change an underlying class model.
All my class' properties have data annotations like RequiredAttribute, StringLengthAttribute etc, and my class implements IDataErrorInfo.
In my this[column] indexer of the class I iterate the property to get all attributes related to it and validate all, building the error message accordingly.
When property value change, I raise the INotifyPropertyChanged event and things get going in the UI. Property grid responses well to changes in the model class signaling the errors defined by my attributes annotations. So far so good...

But now I need to implement class level validation rather than only property validation. As mentioned, the last one is working perfectly. I need to implement some feature to signal propertygrid about class level error when, for instance, two date property don't match together.
I tried to add those class level errors in Error member of IDataErrorInfo with no success... allthough the Error property returns an error string, the property grid ignores it and do not show anything. For instance, when using GridView, it signals the entire record when assigning a set of those classes as datasource of the grid... it detects the Error property returning an error message and responds to it... but not propertygrid.

How can I validate class level errors with PropertyGrid?

Best regards,

Jorge
Dimitrina
Telerik team
 answered on 03 Feb 2014
2 answers
102 views
Hi, 
   I've a RadGridView binding :  ItemsSource="{Binding Entities1, Mode=TwoWay}".
  The MVVM works fine, because the items will be show correctly.
  On the MVVM class, I've the dispatcher timer that change a single value of two property of the entities loaded,
  but the grid doesn't refresh the single cell.

   I need to re-attach the datacontext to view the last value updated, but in this scenario the selected row and the pager will be lost.


Is there other way ?

Thank you !

Best regards.
  
Hristo
Telerik team
 answered on 03 Feb 2014
4 answers
276 views

(I am using Telerik 2013.2.809.40 for WPF)

I have a RadCartesianChart with a Series that contains 30 items (categories are from “2013” to “2032”).


I want to show only the labels “2015”, “2020”,“2025”,“2030” in my CategoricalAxis.

How can I do this?
Setting LabelInterval=5 and LabelOffset=2
does not work (in this case only "2023" and "2028 are shown)

Thanks - Janko

Martin Ivanov
Telerik team
 answered on 03 Feb 2014
4 answers
279 views
Hello,

I am using a Spline defenition and when I double click the window header to fit the window to the Monitor I get an out of memory error. It looks like it is trying to Redraw the Spline lines. Here is the Stack Trace:

   at MS.Utility.ArrayItemList`1.Add(T value)
   at MS.Utility.FrugalStructList`1.Add(T value)
   at System.Windows.Media.PointCollection.AddWithoutFiringPublicEvents(Point value)
   at System.Windows.Media.PointCollection.Add(Point value)
   at Telerik.Windows.Controls.Charting.SplineHelper.GenerateSplineSegmentPoints(Point pt0, Point pt1, Point pt2, Point pt3, Double tolerance)
   at Telerik.Windows.Controls.Charting.SelfDrawingSeries.CalculateSplinePoints(Func`2 extractXRangeValue, Func`3 extractYRangeValue)
   at Telerik.Windows.Controls.Charting.SplineSeries.CalculatePoints(Func`2 extractXRangeValue, Func`3 extractYRangeValue)
   at Telerik.Windows.Controls.Charting.SelfDrawingSeries.InitializeTopBorderLineGeometry()
   at Telerik.Windows.Controls.Charting.SelfDrawingSeries.InitializeSeriesGeometry()
   at Telerik.Windows.Controls.Charting.SelfDrawingSeries.SeriesSizeChanged(Object sender, SizeChangedEventArgs e)
   at System.Windows.SizeChangedEventArgs.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 e)
   at System.Windows.FrameworkElement.OnRenderSizeChanged(SizeChangedInfo sizeInfo)
   at System.Windows.ContextLayoutManager.fireSizeChangedEvents()
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   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.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)
   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, 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 K2Analytics.Application.Main() in C:\Projects\ConsumerInsights\K2Analytics_Soln\K2Analytics\obj\Debug\Application.g.vb:line 69
   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()

Thanks,
Matt
Martin Ivanov
Telerik team
 answered on 03 Feb 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?