
<telerik:RadCalendar Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Grid.RowSpan="2" MinHeight="620" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Columns="4" Rows="3" SelectionMode="Multiple" Name="calMain" IsTodayHighlighted="False" AreWeekNumbersVisible="False" FontFamily="Segoe UI" HeaderVisibility="Hidden" ViewsHeaderVisibility="Visible" IsEnabled="False" Background="White" Foreground="Black" />private void btnEnabled_Click(object sender, RoutedEventArgs e) { calMain.IsEnabled = true; }
I'm wondering about the reason why RadPane and RadDocumentPane fire the IsVisibleChanged and Unloaded events when I'm just dragging the Pane to an other place on the screen (in my case out of my MainWindow)?
IsVisibleChanged might be plausible, because the Pane becomes invisible for the split of a second, but Unloaded is not plausible, because the the Pane still exists.
So to which event do I have to listen if I want to react on the user clicking on the small cross on the pane to close it, if IsVisibleChanged and Unloaded happen also when the user is only dragging the Pane?
Hey,
Unfortunately I have a problem in the sort, filter and group functions in the following case:
Class A
{
string AName;
}
Class B : Class A
{
string BName;
}
Class C
{
A baseClass;
}
The item source is ObservableCollection<C>
I am creating in code behind new GridViewDataColum.
If the binding is
1. " baseClass.AName" =>Everything works.
2. " baseClass.BName " =>The grid view rows are ok.All the data is shown in the correct cells,
But the Filter,Group,Sorting is not working.
What can I do?
<telerik:PersistenceManager.SerializationOptions> <telerik:SerializationMetadataCollection> <telerik:PropertyNameMetadata Condition="Only" Expression="IsPinned" SearchType="PropertyName" /> </telerik:SerializationMetadataCollection></telerik:PersistenceManager.SerializationOptions>


Telerik.Windows.Documents.dll!Telerik.Windows.Documents.Model.RadDocument.GetCaretInline() Line 1319 C# Telerik.Windows.Documents.dll!Telerik.Windows.Documents.Model.RadDocument.GetCurrentSpanStyle() Line 1336 + 0xc bytes C# Telerik.Windows.Documents.dll!Telerik.Windows.Controls.RadRichTextBox.UpdateCurrentStyles() Line 2974 + 0x20 bytes C# Telerik.Windows.Documents.dll!Telerik.Windows.Documents.UI.DocumentWebLayoutPresenter.DoOnCaretLocationChanged() Line 441 C# Telerik.Windows.Documents.dll!Telerik.Windows.Documents.UI.DocumentWebLayoutPresenter.DoOnDocumentChanged.AnonymousMethod__6() Line 409 + 0xa bytes C#//Line 1319 in RadDocument.cs SpanLayoutBox previousSpanBox = DocumentStructureCollection.GetPreviousSiblingForDocumentElement(currentSpanBox, currentSpanBox.Parent.AssociatedDocumentElement) as SpanLayoutBox; // ^^^^^NullReferenceException: Parent is null sometimesRadDocument doc = editor.Document; var span1 = new Span("This text is protected");// doc.InsertInline(span1); //this span's spanbox will have no Parent, causing a Null ref (doc.Sections.Last.Blocks.Last as Paragraph).Inlines.Add(span1); //this span's spanbox will have a Parent, not causing a Null ref DocumentPosition pos3 = new DocumentPosition(doc.DocumentLayoutBox, true); var spb1 = span1.FirstLayoutBox as SpanLayoutBox; pos3.MoveToInline(spb1, 0); DocumentPosition pos4 = new DocumentPosition(doc.DocumentLayoutBox, true); pos4.MoveToInline(spb1, spb1.PositionsCountInBox - 1); doc.InsertReadOnlyRange(pos3, pos4); // raises Null ref in RadDocument.GetCaretInline if using "doc.InsertInline"