Telerik Forums
UI for WPF Forum
4 answers
113 views
Hi

At the moment, it isn't possible to click inside a ReadOnlyRange - it is only possible to select it if the selection begins and ends before and after the range.

Ideally I would like to be able to place the cursor inside a ReadOnlyRange and select any part of it, just as I would a non-ReadOnlyRange.  The only difference being that deletion would not be possible.

Is there any workaround or sub-classing of ReadOnlyRange that would make this possible?

Thanks

Charlie
Iva Toteva
Telerik team
 answered on 13 Aug 2012
3 answers
110 views
When I set a filter programmatically the built in filtering does not reflect the new filter.
Here is the filter code: 

IColumnFilterDescriptor activeFilter = vehicleListGridView.Columns["Active"].ColumnFilterDescriptor;
activeFilter.SuspendNotifications();
activeFilter.FieldFilter.Filter1.Operator = FilterOperator.IsEqualTo;
activeFilter.FieldFilter.Filter1.Value = "True";
activeFilter.FieldFilter.Filter1.IsCaseSensitive = false;
activeFilter.ResumeNotifications();

The active filter is set. The filter icon in the column header goes orange but when I click on the filter icon True is not selected and when I check true or false it appears to add that filter to the one I set programmatically. 

Is there anyway to set the filter either programmatically or through xaml so that the filter is reflected in the UI and acts exactly as if it was done in the UI?

Thanks,

Dev
Top achievements
Rank 1
 answered on 13 Aug 2012
1 answer
69 views
HI,

I have a RadTreeView inside BackstageItem, the dragdrop is not working by default, so i hooked the DropQueryEvent it always have the position to inside.

As alternative i moved out the RadRibbonBackstage to outside the RadRibbonView and its working as expected (i manually show/hide the RadRibbonBackstage) but the problem is that i am unable to set the default Item, so i am setting the SelectedItem by code, now the RadRibbonBackstageItem is selected but the tab is not focused.

Any solution, or recommendation?

Thank You
Tina Stancheva
Telerik team
 answered on 13 Aug 2012
4 answers
113 views
My application is crashing when I am opening a window with a grid having a templated cell. The markup for the cell is given below. The app works fine if I do not add this event handler Initialized=btnNoActionRequired_Initialized (or any event handler) for the RadButton. It starts carshing when I add any event handler. The stack trace is given at the end of this message. Please help.  Thanks!

Cell Template

<Style TargetType="telerik:GridViewCell">
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate TargetType="telerik:GridViewCell">
                                            <Grid VerticalAlignment="Center">
                                                <TextBlock Text="{Binding Path='', Converter={StaticResource ItemActionText}}" Margin="5,0,0,0"></TextBlock>
                                                <StackPanel Orientation="Horizontal" Visibility="{Binding Path='', Converter={StaticResource ItemButtons}}">
                                                    <telerik:RadButton Background="{StaticResource BgGreen}" Width="100" Height="40" Margin="5,0,5,0" Tag="T" CommandParameter="{Binding Path=''}" Name="btnNoActionRequired" Initialized="btnNoActionRequired_Initialized">
                                                        <TextBlock Text="Checked, No Action Required" TextWrapping="Wrap" TextAlignment="Center"></TextBlock>
                                                    </telerik:RadButton>
                                                    <telerik:RadButton Background="{StaticResource BgRed}" Foreground="{StaticResource FgLighGrey}"   Width="100" Height="40" Margin="0,0,5,0" Tag="S" CommandParameter="{Binding Path=''}">
                                                        <TextBlock Text="Safety Related" TextWrapping="Wrap" TextAlignment="Center"></TextBlock>
                                                    </telerik:RadButton>
                                                    <telerik:RadButton Background="{StaticResource BgOrange}" Foreground="{StaticResource FgLighGrey}" Width="100" Height="40" Margin="0,0,5,0" Tag="G" CommandParameter="{Binding Path=''}">
                                                        <TextBlock Text="General Repair" TextWrapping="Wrap" TextAlignment="Center"></TextBlock>
                                                    </telerik:RadButton>
                                                    <telerik:RadButton Background="{StaticResource BgOrange}" Foreground="{StaticResource FgLighGrey}" Width="100" Height="40" Margin="0,0,5,0" Tag="M" CommandParameter="{Binding Path=''}">
                                                        <TextBlock Text="Minor Defect Monitor Item" TextWrapping="Wrap" TextAlignment="Center"></TextBlock>
                                                    </telerik:RadButton>
                                                    <telerik:RadButton Background="{StaticResource BgGrey}" Foreground="{StaticResource FgDarkGrey}"  Width="100" Height="40" Margin="0,0,5,0" Tag="X"  CommandParameter="{Binding Path=''}">
                                                        <TextBlock Text="Not Applicable" TextWrapping="Wrap" TextAlignment="Center"></TextBlock>
                                                    </telerik:RadButton>
                                                </StackPanel>
                                            </Grid>
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>

Stack Trace  

at Dealerpoint.ServicePack.WPF.ServiceForm.System.Windows.Markup.IStyleConnector.Connect(Int32 connectionId, Object target) in c:\SL\Dealerpoint.ServicePack.WPF\Dealerpoint.ServicePack.WPF\ServiceForm.xaml:line 65
   at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlReader templateReader, XamlObjectWriter currentWriter)
   at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlObjectWriter objectWriter)
   at System.Windows.FrameworkTemplate.LoadOptimizedTemplateContent(DependencyObject container, IComponentConnector componentConnector, IStyleConnector styleConnector, List`1 affectedChildren, UncommonField`1 templatedNonFeChildrenField)
   at System.Windows.FrameworkTemplate.LoadContent(DependencyObject container, List`1 affectedChildren)
   at System.Windows.StyleHelper.ApplyTemplateContent(UncommonField`1 dataField, DependencyObject container, FrameworkElementFactory templateRoot, Int32 lastChildIndex, HybridDictionary childIndexFromChildID, FrameworkTemplate frameworkTemplate)
   at System.Windows.FrameworkTemplate.ApplyTemplateContent(UncommonField`1 templateDataField, FrameworkElement container)
   at System.Windows.FrameworkElement.ApplyTemplate()
   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.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, 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 Dealerpoint.ServicePack.WPF.App.Main() in C:\SL\Dealerpoint.ServicePack.WPF\Dealerpoint.ServicePack.WPF\obj\x86\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()
asp.net
Top achievements
Rank 1
 answered on 13 Aug 2012
3 answers
236 views
Hello,
In my radgridview, i would like to put a control in a specific cell on row's mouse over event.
I saw something like this using a tooltip, but i can't do the same with another control.

Can anyone help me?

Thanks.
Felipe
Top achievements
Rank 1
 answered on 13 Aug 2012
4 answers
577 views
Hi,

I'm trying to find an event for when the increase and decrease buttons (on the sides of the slider) are pressed. I would use the Value Changed Event except it fires too often for my specific purpose. Drag Completed works nicely for the actual slider, just need more control over the buttons.

Thanks,
Brad
Petar Mladenov
Telerik team
 answered on 13 Aug 2012
6 answers
167 views
Hi,
If I have more distinct elements in a data column and if try to open the filter on this column, Whilst I am able to open the filter popup, I am not able to see all the elements in the ListBox as I am missing the ListBox's scroll.

Any Clue?
Balaji
Top achievements
Rank 1
 answered on 13 Aug 2012
1 answer
150 views
Hi all,

This is reposted from another question (http://www.telerik.com/community/forums/wpf/charting-kit/panzoombars-missing-when-chart-built-from-code.aspx) for clarification.

I am having trouble programmatically add/removing the PanAndZoom functionality for ChartView. I have tried several ways of doing it, and the problem essentially boils down to this: the only way to get pan and zoom bar to show up, I have to include it in the XAML file. Furthermore, if I ever decide to set the Pan/Zoom mode to "None" programmatically, the pan and zoom bar is gone forever, even if I set the mode back to "Both".

Is there a work around to allow users to programmatically enable/disable pan and zooming for a given ChartView?

Thanks,
Jin
Ves
Telerik team
 answered on 13 Aug 2012
1 answer
109 views
Dear support, 
     there is a way to define a single comment on read-only state ?

Thanks in advance.
Kind regards.

Todor
Telerik team
 answered on 13 Aug 2012
1 answer
103 views
Hi..
When I set the itemsource on my App on the production server crashes. I have try /catch around the  code but it never hits the catch.

I get a general .Net unhandled exception and my app crashes.

here's the line
     this.gridUnassigned.ItemsSource = query.ToList();

Retrieving the data causes no errors.. the above line causes the app to crash. I even removed the formatting / binding of the grid
and that did not help

any ideas???   Help

I can't debug it on the prod server.. using Visual Studio
Dimitrina
Telerik team
 answered on 13 Aug 2012
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?