Telerik Forums
UI for WPF Forum
1 answer
99 views
How to hide the design tab in Visual Studio and show only the XAML tab when editing a window containing a RichTextBox control or RadToolBar?

How to disable the interactivity of the editor so that normal keyboard navigation in the XAML source code does not move controls on the WPF window?

This slows down the editing considerably and introduces many small unwanted changes in the WPF window controls layout.
Sia
Telerik team
 answered on 23 Nov 2014
7 answers
1.0K+ views
Hi!

Is there a possibility to find out the actual scroll position of the GridView? The matter is that I rebind the datasource und therefore the Grid looses the actual scroll position and jumps to the first item.

I experienced a bit with ScrollViewer and ScrollContentPresenter but couldnt find a solution!

Greetings
Philip
Dimitrina
Telerik team
 answered on 21 Nov 2014
4 answers
228 views
 The following exception has been thrown when chartview loading in screen.

at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   at System.Collections.Generic.List`1.Enumerator.MoveNext()
   at Telerik.Charting.DataPointCollection`1.<System.Collections.Generic.IEnumerable<Telerik.Charting.DataPoint>.GetEnumerator>d__0.MoveNext() in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Engine\DataPoints\DataPointCollection.cs:line 88
   at Telerik.Charting.DateTimeContinuousAxisModel.BuildValues(AxisUpdateContext context) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Engine\Axes\Continuous\DateTimeContinuousAxisModel.cs:line 899
   at Telerik.Charting.DateTimeContinuousAxisModel.UpdateCore(AxisUpdateContext context) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Engine\Axes\Continuous\DateTimeContinuousAxisModel.cs:line 289
   at Telerik.Charting.AxisModel.Update(AxisUpdateContext context) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Engine\Axes\AxisModel.cs:line 497
   at Telerik.Charting.ChartAreaModelWithAxes.UpdateAxis(AxisModel axis, IList`1 series) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Engine\ChartAreas\ChartAreaModelWithAxes.cs:line 387
   at Telerik.Charting.ChartAreaModelWithAxes.UpdateAxes() in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Engine\ChartAreas\ChartAreaModelWithAxes.cs:line 340
   at Telerik.Charting.ChartAreaModelWithAxes.ArrangeOverride(RadRect rect) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Engine\ChartAreas\ChartAreaModelWithAxes.cs:line 190
   at Telerik.Charting.ChartNode.Arrange(RadRect rect, Boolean shouldRoundLayout) in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Engine\ElementTree\ChartNode.cs:line 214
   at Telerik.Charting.ChartAreaModel.Arrange() in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Engine\ChartAreas\ChartAreaModel.cs:line 94
   at Telerik.Windows.Controls.ChartView.RadChartBase.UpdateChartArea() in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\RadChartBase.cs:line 720
   at Telerik.Windows.Controls.ChartView.RadChartBase.CallUpdateUI() in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\RadChartBase.cs:line 1006
   at Telerik.Windows.Controls.ChartView.RadChartBase.OnInvalidated() in c:\TB\105\WPF_Scrum\Release_WPF\Sources\Development\Controls\Chart\Visualization\RadChartBase.cs:line 982
   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.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, 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.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.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   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 Vestas.Servicetool.Toolcontainer.App.Main() in C:\Views\SEKUM_VOToolkit_4.3.0\FirecrestUI\Servicetool\Servicetool\Toolcontainer\obj\Debug\App.g.cs:line 0
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   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()
Anthony
Top achievements
Rank 1
 answered on 21 Nov 2014
11 answers
213 views
Hello everybody,

I have a client request on a view to display a list of milestones transverse tasks managed by the Ganttview. You can see the request on the attachment (for example "Achèvement des fondations").
I have no idea of ​​the way to develop this part, do you have any idea of implementation to represent this transverse milestone on the GanttView ? (although graphically it's different, that's important is to see that the milestone is task-independent).

Thank's for your help
Julien
Top achievements
Rank 1
 answered on 21 Nov 2014
3 answers
653 views
Hi,

I need to have a couple of checkboxes in a grid that would trigger property changed as soon as they're checked. I've tried binding with UpdateSourceTrigger as PropertyChanged however that only triggers when I click on another cell.

Another possible solution is to trigger CellEditEnded as soon as the value is changed (i.e. checkbox is checked or unchecked).

Thanks,
Daryl
Boris
Telerik team
 answered on 21 Nov 2014
1 answer
126 views
Hi Support,
I'm not sure what I would be missing here, but I have an issue with displaying PRISM ContentControl inside the <RadTabControl.AdditionalContent>. All other prism regions show up except of this one. That region is tied a custom view.

my xaml code is as below

<telerik:RadTabControl.AdditionalContent>         
                    <StackPanel Orientation="Horizontal">
                        <ContentControl regions:RegionManager.RegionName="{x:Static inf:RegionNames.SomeRegionA }"></ContentControl>                                                            </StackPanel>    
</telerik:RadTabControl.AdditionalContent>

Please help.

Thanks
Kiran
Pavel R. Pavlov
Telerik team
 answered on 21 Nov 2014
1 answer
84 views
Hello,

is there a possiblity to deactivate the tabstops on grid- and ganttarea?

Greetings,
Richard
Vladi
Telerik team
 answered on 21 Nov 2014
1 answer
115 views
Hi, 
I'm using RadVerticalLinearGauge and when I click on the BarIndicator its value changes. How can I prevent that behaviour ?

Thanks
Sia
Telerik team
 answered on 21 Nov 2014
4 answers
191 views
Hi

I am currently having some issues with the RadTimeline control. Currently I have a RadTimeline whose VisiblePeriodStart and VisiblePeriodEnd properties are two way bound to my ViewModel. We have a Listbox control that the user can select Day/Week/Month/Year views and the ViewModel updates the visible period properties accordingly. I am encountering problems with a discrepancy between the value of the bound properties and what it actually displayed on the timeline.

The default view shows from the 1/1/2014 to now and looks something like this. After selecting Week view the start and end properties are set to 1/1/2014 and 8/1/2014 respectively. This time period is not what is shown on the timeline, instead the timeline appears like this. As you can see this is roughly a 2.5 week period. Adding a handler to the VisiblePeriodChanged event shows this problem clearly. Here is a screen capture of the handler method after the week view change. As you can see the bound property has a value different to what timeline control's visible end is.

Could this be a problem with the control not properly scaling down from large to smaller time periods?

This is a very important feature for us so a speedy reply would be appreciated. Thanks!
MARTIN
Top achievements
Rank 1
 answered on 21 Nov 2014
2 answers
242 views
Hello everybody

I have a problem with radgridview row resizing when this propterty is enabled.
I don't know how to transfer the change of RowHeight  to controls inside a DataTemplate like this

                <telerik:GridViewDataColumn DataMemberBinding="{Binding text1}" Header="Data Template" >
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <TextBox Text="some letter" VerticalContentAlignment="Stretch" Margin="0" />
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                </telerik:GridViewDataColumn>

When I resizing the row the height of textBox is always the same, centered in the row.
This behavior is visible in the image annex to this Thread.
I would like the height of the TextBox to follow the row height of the RadGridView (stretched vertically)

thanks in advance
Remo Garropoli
Top achievements
Rank 1
 answered on 20 Nov 2014
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?