Telerik Forums
UI for WPF Forum
1 answer
126 views

I have a GridView bound using MVVM to a collection of `List<Person> People`.

 

Let's say the 'Person' class has properties like:

public List<ID> IDs { get; set; }

public string Name { get; set; }

public DateTime BirthDate { get; set; }

My issue is that I'd like to allow a user to click to insert a new row in the data grid, but I need it so that as they are typing in a 'Name', the DB is doing a query finding all IDs for that person which will populate a ComboBoxColumn for the IDs property above.  So it seems like I need to be able to bind (with MVVM) onto a 'Cell Editing' event for a cell so I can get an event as each character is typed.  I also need to know what item (SelectedItem is null for a new row for some reason in MVVM) is being edited so I can insert the returned array of found IDs into that item.  Any help would be appreciated and I'd like to avoid using Code-Behind.

Dilyan Traykov
Telerik team
 answered on 18 Jul 2018
2 answers
318 views

Hi,

I'm using RadGridView in my wpf project, and the filtering mode for the gridview is "FilterRow". I have a column with datatype of DateTime.

I'd like to have a custom filtering for this column like the one you have in you sample called "CustomFilteringControl/FromDateToDateFilterControl".

But it doesn't work, and I still see the default pop-up window for that column.

My question is that :"Is there  a way to have "FilterRow" as the filtering mode and create custom filtering for each column at the same time?"

 

Thanks!

Mahdieh
Top achievements
Rank 1
 answered on 17 Jul 2018
4 answers
311 views
Hi there!
Can I get hold of the bookmarks, links in the pdf file from RadPdfViewer or am I just out of luck?
If I can, how do I do it?
Georgi
Telerik team
 answered on 17 Jul 2018
5 answers
319 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
217 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
221 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
183 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
123 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
596 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
70 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
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?