Telerik Forums
UI for WPF Forum
1 answer
102 views
I have implemented the ScheduleViewDragDropBehavior class but I cannot find any method, property etc. which will allow me to auto scroll the Schedule View when a user is dragging an appointment. I have tried to implement a ScrollIntoView in the CanDrop method but this works only when dragging down the screen but not up. Also when dragging to the left at the beginning of the day the view flickers and keeps altering to a few hours later in the day. Is there an easy solution that I am completely missing?


I am using a Day view definition with Orientation set to Horizontal.


Would appreciate any help you can give me.
Valeri Hristov
Telerik team
 answered on 25 Aug 2011
4 answers
320 views
Hi,

Is it possible that the propertygrid content is filled with a class that has attributes, like
the winform propertygrid?

for example, I have a class from a winform application with some attributes that are shown
in a winform propertygrid
 some attributes are:

   [Category("Description")]
     
 or 
  [CategoryAttribute("Properties"), DefaultValueAttribute(false)]
or
[Category("Description"), Browsable(false)]   <- this one will not show up in the propertygrid

I noticed that I see all the properties for the class even the properties I don't want the user to see or fill

David.
david
Top achievements
Rank 1
 answered on 25 Aug 2011
2 answers
112 views
Hi,

Two issues with the WPF tileview:

1) I have a .xbap file integrated within a asp.net page (.xbap file is called thru iframe). Some changes has been done to the .xbap file and is getting reflected when you run the WPF application. But when the asp.net page is run from the client's end, the older version is populated. I have also replaced the .xbap file in the asp.net folder. 
"rundll32 %windir%\system32\dfshim.dll CleanOnlineAppCache"  when run from the cmd cleared the cache and the newer version was loaded. But it is tedious to do so everytime.
Do we have an option where we can automate this (whenever the URL is accessed, the newer version of .xbap is shown) rather than the client clearing the cache manually every time.

2) I need to remove the forward and back navigation keys shown as default above the tileview control. Couldnt find any property. Please let me know how to hide them.
Hemant
Top achievements
Rank 1
 answered on 25 Aug 2011
1 answer
47 views
HI,

I'm new to WPF and the Telerik Controls, Can anybody  help me with very simple sample to do the drag and Drop to RadTreeView.
I only need the OnDragQuery() code.

        If Me.RadGridView2 IsNot Nothing Then
            Dim selectedItems As IList = Me.RadGridView2.SelectedItem
            e.QueryResult = selectedItems.Count > 0
            e.Options.Payload = selectedItems
        End If

        e.QueryResult = True
        e.Handled = True
 I used the above code to do so, but i'm not getting the actual data to tree view rather the name of the class of which the content of Gridview is made.

I need a small example with static data .

regards,

Swaroop
Maya
Telerik team
 answered on 24 Aug 2011
1 answer
110 views
Hi Telerik,

I have added a BusyIndicator to my main form and have it incapsulating my RadDocking, menu etc.

I works like a charm.

However ;-) - if the user undocks a window before running a 'busy-ecapsulated' function, the undocked window will still be accessible during the long-running function.

Is there a recommended way of handling this situation?

Thanks,

Anders, Denmark
Yana
Telerik team
 answered on 24 Aug 2011
1 answer
106 views
Hi, i add mappinpoins via codebehind from datatable. I need add information from ReverseGeocodeRequest. How loop all mappinpoints from my radmap control?

Thanks
Andrey
Telerik team
 answered on 24 Aug 2011
8 answers
411 views
There is a RadDocking.PaneStateChanged event, but it does not carry information about the old and new states. I need to detect a condition when a Pane becomes a floating pane. How can it be done?
Also, perhaps there is a preview event to cancel the change?
Thanks
 
Frank
Top achievements
Rank 1
 answered on 24 Aug 2011
1 answer
99 views
I have a situation where I have a RadcarouselPanel set as the itemPanelTemplate of a RadCarousel.  Is there a way to wrap the RadCarouselPanel in a scrollviewer when it is used this way?  I'd still like to use a traditional scroll bar as the navigation method as opposed to the buttons supplied with the RadCarousel.  I also want to use the scrollviewer's scroll event so I can determine when the items have been moved. Is this possible?
Dimitrina
Telerik team
 answered on 24 Aug 2011
3 answers
112 views
If the RadRibbonGroup is Collapsed the AcessText does not display. This can been seen in the demo supplied with the product, but setting the Variant priority to 0 for Collapsed in the tabs of the "Telerik Word". Using the AccessKey to select the Tab, shows the AccessText for all the menu option on RadRibbonGroups that are expanded, but not for the groups that are collapsed.

Is there something special that should be done to get this to work correctly?

Thanks
Kendrew
Petar Mladenov
Telerik team
 answered on 24 Aug 2011
1 answer
108 views
I am trying to set a date format for my definitions. I get an exception. What is the problem? Is this a bug?
private void SetTimeFormat(ViewDefinitionBase baseView)
        {
            if (baseView.GetType() == typeof(WeekViewDefinition))
            {
                //((WeekViewDefinition)(baseView)).GroupHeaderDateStringFormat = "{}{0:dddd(MM/dd/yyyy)}";
                //((WeekViewDefinition)(baseView)).TimerulerMajorTickStringFormat = "{}{0:h tt}:{0:mm} ";
                //((WeekViewDefinition)(baseView)).TimerulerMinorTickStringFormat = ":{0:mm}";
            }
            else if (baseView.GetType() == typeof(DayViewDefinition))
            {
                //((DayViewDefinition)(baseView)).GroupHeaderDateStringFormat = "{}{0:dddd(MM/dd/yyyy)}";
                //((DayViewDefinition)(baseView)).TimerulerMajorTickStringFormat = "{}{0:h tt}:{0:mm} ";
                //((DayViewDefinition)(baseView)).TimerulerMinorTickStringFormat = ":{0:mm}";
            }
            else if (baseView.GetType() == typeof(TimelineViewDefinition))
            {
                ((TimelineViewDefinition)(baseView)).GroupHeaderDateStringFormat = "{}{0:dddd(MM/dd/yyyy)}";
                ((TimelineViewDefinition)(baseView)).TimerulerGroupStringFormat = "";
                ((TimelineViewDefinition)(baseView)).TimerulerMajorTickStringFormat = "{}{0:h tt}:{0:mm} ";
                ((TimelineViewDefinition)(baseView)).TimerulerMinorTickStringFormat = ":{0:mm}";
            }
            else if (baseView.GetType() == typeof(MonthViewDefinition))
            {
                //((MonthViewDefinition)(baseView)).GroupHeaderDateStringFormat = "{}{0:dddd(MM/dd/yyyy)}";
                //((MonthViewDefinition)(baseView)).TimerulerGroupStringFormat = ":{0:mm}";
                //((MonthViewDefinition)(baseView)).TimerulerMajorTickStringFormat = "{}{0:h tt}:{0:mm} ";
            }

System.FormatException: Input string was not in a correct format.
   at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
   at System.String.Format(IFormatProvider provider, String format, Object[] args)
   at Telerik.Windows.Controls.ViewDefinitionBase.FormatTimerulerTickContent(IFormatProvider formatInfo, TickData tick)
   at Telerik.Windows.Controls.MultidayViewDefinition.FormatTimerulerTickContent(IFormatProvider formatInfo, TickData tick)
   at Telerik.Windows.Controls.ViewDefinitionBase.FormatTimerulerItemContent(IFormatProvider formatInfo, ITimeRange data)
   at Telerik.Windows.Controls.ScheduleView.TimerRulerItemProxy.UpdateData(IFormatProvider formatInfo, ViewDefinitionBase tickFormatProvider)
   at Telerik.Windows.Controls.TimeRulerPanel.PrepareItem(TimeRulerItemBase item)
   at Telerik.Windows.Controls.RecycleHelper`1.PrepareItem(Int32 index)
   at Telerik.Windows.Controls.RecycleHelper`1.PrepareItems(IValuesContainer indexTree, DateTime startDate, DateTime endDate)
   at Telerik.Windows.Controls.TimeRulerPanel.PrepareItems()
   at Telerik.Windows.Controls.TimeRulerPanel.MeasureOverride(Size availableSize)
   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 MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at Telerik.Windows.Controls.TransitionControl.TransitionPresenter.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   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.Controls.Border.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.ScheduleViewBase.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.StackPanel.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.StackPanel.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.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 MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.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.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.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.ScrollViewer.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.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 MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(Object resizedCompositionTarget)
   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.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   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.WrappedInvoke(Delegate callback, 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.Application.RunInternal(Window window)
   at System.Windows.Application.Run()
   at Metrix.UI.App.Main() in C:\Users\rodneyy\Documents\MetrixDevelopment\MetrixDevelopment\Client\Metrix.UI\obj\Debug\App.g.cs:line 0
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
   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.Threading.ThreadHelper.ThreadStart()

Yana
Telerik team
 answered on 24 Aug 2011
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?