Hi,
I'm able to save my diagram but the loading is not working. After loading, the connectors show but the containers and shapes were missing. It seems that there is some issue in the deserialization of my nodes as the items in the raddiagram were only the connectors. I followed this example below but my raddiagram doesnt seem to deserialize my nodes when loading.
public override NodeViewModelBase DeserializeNode(IShape shape, Telerik.Windows.Diagrams.Core.SerializationInfo info)
{
var node = base.DeserializeNode(shape, info);
if (info["MyPosition"] != null)
{
var position = Utils.ToPoint(info["MyPosition"].ToString());
node.Position = position.Value;
}
return node;
}
I am trying to use the AppointmentCalendarImporter to import iCal files exported out of Outlook (using Office Pro Plus 2016). This works quite well except the CATEGORIES from the .ics file are not importing.
It appears that the problem is that Outlook is exporting just the category name like this:
CATEGORIES:Personal
However, the importer is looking for something like this (got this example from using the Exporter):
CATEGORIES:DISPLAYNAME==Personal&CATEGORYNAME==Personal&
Is there a way to get the Outlook format to load?
Thanks!
Hi
I am using a GridView containing 2 or 3 lines of data.I have to hide and show some lines related to the condition
But when I hide the row, there is an empty space (possibly a row with no data)
This way I hide the line (I tried both Collapse and Hidden)
GridView1.GetRowForItem(GridView1.Items[rowIndex]).Visibility = Visibility.Collapse;
How can I completely hide the Grid row?
Hello,
I would like to export my RadGridView to Pdf using the PrintPreviewControl and RadSpreadsheet. To create the workbook I use the ExportToWorkbook method like so:
book = grid.ExportToWorkbook(
new
GridViewDocumentExportOptions()
{
ShowColumnFooters = grid.ShowColumnFooters,
ShowColumnHeaders = grid.ShowColumnHeaders,
ShowGroupFooters = grid.ShowGroupFooters,
AutoFitColumnsWidth =
true
,
ExportDefaultStyles =
true
});
and I style the cells like this:
CellStyle normalStyle = book.Styles[
"Normal"
];
normalStyle.BottomBorder = cellBorder;
normalStyle.IsWrapped =
true
;
normalStyle.RightBorder = cellBorder;
foreach
(Worksheet worksheet
in
book.Worksheets)
{
CellRange used = worksheet.UsedCellRange;
worksheet.Cells[1, used.FromIndex.ColumnIndex, used.ToIndex.RowIndex,
used.ToIndex.ColumnIndex].SetStyleName(
"Normal"
);
}
This works fine until I have columns with very long text (with whitespaces) that won't fit on one line (neither portrait nor landscape orientation). I tried to use text wrapping on the cell style by setting the IsWrapped property to true, but this does not yield the desired result. Also "AutoFitColumnsWidth = true" does not seem to effect my columns either.
I also witnessed a strange behaviour concerning columns that are at the end of my GridView where I have to scroll to see them on screen.
When I show the PreviewControl before I scrolled to those columns, I get a different output than when I previously scrolled to those columns.
For better understanding, I attach three pictures of the results I get.
Any help would be appreciated.
Best regards
When I click on the EBS attribute, the window becomes unresponsive and it looks like it is shown in the gif picture.
Is there too much data?
How to optimize the pivot grid?
Secondly, I want to know how to customize the date string format
Hi,
I've got an application that is randomly crashing and it seems to be something with the xaml.
See below for the stack trace from the application - it doesn't seem to always happen. It's using implicit themes, I can't remember which one but its a mobile version. Is their a problem with my app or is it the xaml?
FATAL 2020-05-12 08:05:56,893 App UnhandledException - System.Windows.Markup.XamlParseException: 'Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception.' Line number '4275' and line position '35'. ---> System.Exception: Cannot find resource named 'ToolTipStyle'. Resource names are case sensitive.
at System.Windows.StaticResourceExtension.ProvideValueInternal(IServiceProvider serviceProvider, Boolean allowDeferredReference)
at System.Windows.StaticResourceExtension.ProvideValue(IServiceProvider serviceProvider)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
--- End of inner exception stack trace ---
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.LoadDeferredContent(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings parentSettings, Uri baseUri)
at System.Windows.ResourceDictionary.CreateObject(KeyRecord key)
at System.Windows.ResourceDictionary.OnGettingValue(Object key, Object& value, Boolean& canCache)
at System.Windows.ResourceDictionary.OnGettingValuePrivate(Object key, Object& value, Boolean& canCache)
at System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache)
at System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache)
at System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache)
at System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache)
at System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache)
at System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache)
at System.Windows.ResourceDictionary.FetchResource(Object resourceKey, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference, Boolean canCacheAsThemeResource, Boolean& canCache)
at System.Windows.FrameworkElement.FindResourceInternal(FrameworkElement fe, FrameworkContentElement fce, DependencyProperty dp, Object resourceKey, Object unlinkedParent, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference, DependencyObject boundaryElement, Boolean isImplicitStyleLookup, Object& source)
at System.Windows.FrameworkElement.FindImplicitStyleResource(FrameworkElement fe, Object resourceKey, Object& source)
at System.Windows.FrameworkElement.GetRawValue(DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry& entry)
at System.Windows.FrameworkElement.EvaluateBaseValueCore(DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry& newEntry)
at System.Windows.DependencyObject.EvaluateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry newEntry, OperationType operationType)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)
at System.Windows.FrameworkElement.UpdateStyleProperty()
at System.Windows.FrameworkElement.OnInitialized(EventArgs e)
at Telerik.Windows.Controls.ScreenTip.OnInitialized(EventArgs e)
at System.Windows.FrameworkElement.TryFireInitialized()
at System.Windows.FrameworkElement.ChangeLogicalParent(DependencyObject newParent)
at System.Windows.FrameworkElement.AddLogicalChild(Object child)
at System.Windows.Controls.Primitives.Popup.OnChildChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at System.Windows.Controls.Primitives.Popup.CreateRootPopupInternal(Popup popup, UIElement child, Boolean bindTreatMousePlacementAsBottomProperty)
at System.Windows.Controls.ToolTip.HookupParentPopup()
at System.Windows.Controls.ToolTip.OnIsOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at System.Windows.Controls.PopupControlService.RaiseToolTipOpeningEvent(Boolean fromKeyboard)
at System.Windows.Controls.PopupControlService.<>c__DisplayClass8_0.<InspectElementForToolTip>b__0(Object s, EventArgs e)
at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Hello!
Tell me how to redraw the graph without blinking.
Now after SetValue() "No series added" is displayed first, then a new series.
Thanks.