Telerik Forums
UI for WPF Forum
5 answers
338 views
I want to disable a rad pane that is tabbed in a docked layout.

I want to see it, but not allow the user to select it. Like any other windows control that is disabled.
Dinko | Tech Support Engineer
Telerik team
 answered on 16 Jul 2018
1 answer
233 views

I have grid with 2 rows. I want to set first row Height base on how many lines are in RadTileView.

All items should be visible on screen (without scrollbars).

RadTileView items are moved automatically to next line if there is no place in current line.

How can i achieve that?

Sample code:

<Grid>
       <Grid.RowDefinitions>
           <RowDefinition Height="*"/> <!--when RadTileView have more line height should change-->
           <RowDefinition Height="*"/>
       </Grid.RowDefinitions>
       <Grid.ColumnDefinitions>
           <ColumnDefinition Width="*"/>
       </Grid.ColumnDefinitions>
 
       <telerik:RadTileView x:Name="ll"
           HorizontalAlignment="Left"
           VerticalAlignment="Top"
           Grid.Column="0"
           Grid.Row="0"
           ItemsSource="{Binding current, Mode=OneWay}"/>
 
       ...

 

 

Martin Ivanov
Telerik team
 answered on 16 Jul 2018
2 answers
244 views

Hi,

 

if I'm trying to host your control, I will get an error that the component "Telerik.Windows.Documents.UI.Adorner.ImageAdornerUI" has no resource which could be identified by URI "/Telerik.Windows.Documents;component/ui/adorner/imageadornerui.xaml".

If I run it anyway, this result will be shown:

System.IO.FileNotFoundException
  HResult=0x80070002
  Nachricht = Die Datei oder Assembly "Microsoft.Windows.Design.Extensibility, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.
  Quelle = mscorlib
  Stapelüberwachung:
   bei System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)
   bei System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
   bei System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
   bei System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
   bei System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)
   bei System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType)
   bei System.Reflection.RuntimeAssembly.GetCustomAttributes(Type attributeType, Boolean inherit)
   bei Microsoft.Internal.AttributeServices.GetAttributes[T](ICustomAttributeProvider attributeProvider)
   bei Microsoft.Internal.AttributeServices.GetFirstAttribute[T](ICustomAttributeProvider attributeProvider)
   bei System.ComponentModel.Composition.Hosting.AssemblyCatalog.get_InnerCatalog()
   bei System.ComponentModel.Composition.Hosting.AssemblyCatalog.GetEnumerator()
   bei System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
   bei System.ComponentModel.Composition.Primitives.ComposablePartCatalog.GetExports(ImportDefinition definition)
   bei System.ComponentModel.Composition.Hosting.CatalogExportProvider.InternalGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)
   bei System.ComponentModel.Composition.Hosting.CatalogExportProvider.InnerCatalogExportProvider.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)
   bei System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& exports)
   bei System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExports(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& exports)
   bei System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)
   bei System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& exports)
   bei System.ComponentModel.Composition.Hosting.ExportProvider.GetExports(ImportDefinition definition, AtomicComposition atomicComposition)
   bei System.ComponentModel.Composition.Hosting.AggregateExportProvider.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)
   bei System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& exports)
   bei System.ComponentModel.Composition.Hosting.CompositionContainer.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)
   bei System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& exports)
   bei System.ComponentModel.Composition.Hosting.ExportProvider.GetExports(ImportDefinition definition, AtomicComposition atomicComposition)
   bei System.ComponentModel.Composition.Hosting.ImportEngine.TryGetExports(ExportProvider provider, ComposablePart part, ImportDefinition definition, AtomicComposition atomicComposition)
   bei System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImportSubset(PartManager partManager, IEnumerable`1 imports, AtomicComposition atomicComposition)
   bei System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImportsStateMachine(PartManager partManager, ComposablePart part)
   bei System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImports(PartManager partManager, ComposablePart part, Boolean shouldTrackImports)
   bei System.ComponentModel.Composition.Hosting.ImportEngine.SatisfyImportsOnce(ComposablePart part)
   bei System.ComponentModel.Composition.Hosting.CompositionContainer.SatisfyImportsOnce(ComposablePart part)
   bei Telerik.Windows.Documents.UI.Extensibility.RadCompositionInitializer.SatisfyImports(Object part)
   bei Telerik.Windows.Documents.UI.Extensibility.UIExtensibilityManager.GetLayersBuilder()
   bei Telerik.Windows.Documents.UI.DocumentWebLayoutPresenter.OnOwnerChanged()
   bei Telerik.Windows.Documents.UI.DocumentPresenterBase.set_Owner(RadRichTextBox value)
   bei Telerik.Windows.Controls.RadRichTextBox.InitActiveEditorPresenter(Boolean clearTextRelatedObjectPools)
   bei Telerik.Windows.Controls.RadRichTextBox.OnApplyTemplate()
   bei System.Windows.FrameworkElement.ApplyTemplate()
   bei System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   bei System.Windows.UIElement.Measure(Size availableSize)
   bei System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   bei System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   bei System.Windows.UIElement.Measure(Size availableSize)
   bei MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   bei System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   bei System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   bei System.Windows.UIElement.Measure(Size availableSize)
   bei System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)
   bei System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   bei System.Windows.UIElement.Measure(Size availableSize)
   bei System.Windows.Controls.Border.MeasureOverride(Size constraint)
   bei System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   bei System.Windows.UIElement.Measure(Size availableSize)
   bei System.Windows.Window.MeasureOverrideHelper(Size constraint)
   bei System.Windows.Window.MeasureOverride(Size availableSize)
   bei System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   bei System.Windows.UIElement.Measure(Size availableSize)
   bei System.Windows.Interop.HwndSource.SetLayoutSize()
   bei System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
   bei System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
   bei System.Windows.Window.SetRootVisual()
   bei System.Windows.Window.SetRootVisualAndUpdateSTC()
   bei System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
   bei System.Windows.Window.CreateSourceWindow(Boolean duringShow)
   bei System.Windows.Window.CreateSourceWindowDuringShow()
   bei System.Windows.Window.SafeCreateWindowDuringShow()
   bei System.Windows.Window.ShowHelper(Object booleanBox)
   bei System.Windows.Window.Show()
   bei System.Windows.Window.ShowDialog()
   bei InstructionsPlugin.ViewModel.InstructionsPluginViewModel.AddNewEntryAction(Object args) in C:\Users\Didi\Documents\Visual Studio 2015\Projects\Leitstand\InstructionsPlugin\ViewModel\InstructionsPluginViewModel.cs: Zeile147
   bei InstructionsPlugin.ViewModel.InstructionsPluginViewModel.<.ctor>b__16_0(Object c) in C:\Users\Didi\Documents\Visual Studio 2015\Projects\Leitstand\InstructionsPlugin\ViewModel\InstructionsPluginViewModel.cs: Zeile89
   bei GUICore.Commands.DelegateCommand.Execute(Object parameter) in C:\Users\Didi\Documents\Visual Studio 2015\Projects\Leitstand\GUICore\Commands\DelegateCommand.cs: Zeile41
   bei MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
   bei System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
   bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   bei System.Windows.Threading.DispatcherOperation.InvokeImpl()
   bei System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   bei MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
   bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   bei MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   bei System.Windows.Threading.DispatcherOperation.Invoke()
   bei System.Windows.Threading.Dispatcher.ProcessQueue()
   bei System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   bei MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   bei System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   bei System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   bei System.Windows.Application.RunDispatcher(Object ignore)
   bei System.Windows.Application.RunInternal(Window window)
   bei System.Windows.Application.Run(Window window)
   bei System.Windows.Application.Run()
   bei ServiceController.App.Main()

 

What I then did, is creating a new empty project and copied your sample which works.

If I copy that back I will get the exceptions.

I use R3 2017.

 

Any ideas?

 

best regards

Dietmar

 

 

Dietmar
Top achievements
Rank 1
 answered on 16 Jul 2018
1 answer
193 views

Hi,

Following your documentation (number-formats) I'm trying to set a "# ##0" format to a cell to get a result like in the attached file 'Screenshot No1.png': 

1.CellSelection cell = worksheet.Cells[rowIndex, columnIndex];
2.ICellValue value = cell.GetValue().Value;
3.if (value.ValueType == CellValueType.Number)
4.{
5.    cell.SetFormat(new CellValueFormat("# ##0"));
6. }

 

But I get escaped space format "#\ ##0" in the resultant excel, like in the attached file "Screenshot No2.png"

How to get the exact result "# ##0" in the exported Excel file ?

 

Thanks

Vladimir
Top achievements
Rank 1
 answered on 16 Jul 2018
1 answer
138 views

I'm using Telerik UI for WPF, R2 2018 SP1

GanttView has TreeColumnDefinition to display items that have parent/child relationship nicely, without extra header

Is there a way to use TreeColumnDefinition in RadGridView, since it's support sort, filter, context menu (which GanttView doesn't have).

I've browse over Seft-Referenced Hierarchical example, but all of them add an extra header to child item, and not support multiple hierarchical

Thanks in advanced

Martin Ivanov
Telerik team
 answered on 16 Jul 2018
8 answers
631 views

Hi,

can the pdfviewer automatically scroll in the position where the user is zooming with the fingers?

because if i zoom in a specific position (for example bottom right), the pdfviewer continues to zoom in top left angle of the pdf.

 

Thanks

Davide

Deyan
Telerik team
 answered on 16 Jul 2018
2 answers
81 views

Hi,

I can persist RadRibbonRadioButton selected state fine but it does not on restore execute the bound command. I'm trying to use the persistence manager to restore the UI, and as a result, restore the view model state.

Is this possible?

Rob

Robert
Top achievements
Rank 1
 answered on 14 Jul 2018
8 answers
1.2K+ views

When using an onscreen keyboard with the autocomplete box, when the dropdown is open you need to click twice on the keyboard to press a key. Once to close the dropdown and once to press the key. 

I have figured out that the MouseLeave event is fired when the dropdown is open and you click outside of it or when closed and leave the watermarktextbox. So, I am able to resend the mouse event to avoid clicking twice, but the drop down still closes. This is ok when the search text changes as it will reopen with the new values. However, when the up/down arrow keys are pressed it closes and doesn't reopen with no way to know what is highlighted in the list. 

Is there an event or method that could be overridden to keep the dropdown open if focus doesn't change? (The on screen keyboard doesn't take focus)

 

Software
Top achievements
Rank 1
 answered on 13 Jul 2018
7 answers
297 views

Hi,

there are two problems with the fluent theme. First the column width is broken, when using hierarchy. Second there is a white gap between the border and the top of control. I am using the following style:

<Style TargetType="telerik:RadGridView">
    <Setter Property="Margin" Value="4" />
    <Setter Property="AutoGenerateColumns" Value="False" />
    <Setter Property="CanUserFreezeColumns" Value="False" />
    <Setter Property="CanUserResizeColumns" Value="False" />
    <Setter Property="CanUserInsertRows" Value="False" />
    <Setter Property="CanUserDeleteRows" Value="False" />
    <Setter Property="FrozenColumnsSplitterVisibility" Value="Collapsed" />
    <Setter Property="IsReadOnly" Value="True" />
    <Setter Property="IsFilteringAllowed" Value="False" />
    <Setter Property="RowIndicatorVisibility" Value="Collapsed" />
    <Setter Property="ShowGroupPanel" Value="False" />
    <Setter Property="ShowColumnFooters" Value="False" />
</Style>

 

Best regards,
Ronny

Sia
Telerik team
 answered on 13 Jul 2018
0 answers
108 views

Hello Telerik,

I have 2 questions:

1) How is it possible to set the height of the bottom container of the RadDocking dynamically based on its content.?

2) Also I would like to know if it is possible to have a scrollbar inside of the RadDocking?

 

Thank you

Kourosh

Kourosh
Top achievements
Rank 1
 asked on 12 Jul 2018
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?