It looks like the AutoBindBehavior doesn't handle the case where custom PropertyDefinitions are used, a PropertySetMode of Union or Intersection is used and an IEnumerable is assigned to the PropertyGrid.Item. This results in a Linq exception: Sequence contains no elements with the following callstack:
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
at Telerik.Windows.Controls.Data.PropertyGrid.AutoBindBehavior.BindEditor(FrameworkElement editorElement, DependencyProperty property)
at Telerik.Windows.Controls.Data.PropertyGrid.AutoBindBehavior.<>c__DisplayClass4.<OnUpdateBindingOnElementLoaded>b__0(Object s, RoutedEventArgs args)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
at MS.Internal.LoadedOrUnloadedOperation.DoWork()
at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
Hi everyone,
I want to make a control radDataGridView with toolbar not user control
In toolbar, buttons located like add/edit/delete/show group panel...etc.
how do i make it ?
thanks for your interest.
hello,
I'm having a problem with my code
I wrote this code in a userControl tag:
<UserControl
.
.
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
<Grid>
<GridDefinitions>
<RowDefinition Height="25" />
<RowDefinition Height='*' />
</GridDefinitions>
<stackPannel Grid.Row="0">
<lable/>
<Button Content="Refresh" Command="{Binding RefreshCommand}"/>
</StackPannel>
<ScrollViewer Grid.Row="1">
<StackPannel>
<telerik:RadExpender IsExpender="True">
<telerik:RadGridView SelectionMode="Single" IsSyncrinizeWithCurrentItem="True" AutoGenerateColumns="True" ItemsSource="{Binding SomeList1}"/>
</telerik:RadExpender>
<telerik:RadExpender IsExpender="True">
<telerik:RadGridView SelectionMode="Single" IsSyncrinizeWithCurrentItem="True" AutoGenerateColumns="True" ItemsSource="{Binding SomeList2}"/>
</telerik:RadExpender>
<telerik:RadExpender IsExpender="True">
<telerik:RadGridView SelectionMode="Single" IsSyncrinizeWithCurrentItem="True" AutoGenerateColumns="True" ItemsSource="{Binding SomeList3}"/>
</telerik:RadExpender>
</StackPannel>
</ScrollViewer>
</Grid>
</UserControl>
the result is that my scroll view fill only about half of the screen instead of the whole screen, there is no problem with its width only its height is wrong.
funny thing that happen: at run time if I click on the first exdpender's button in order to set IsExpended to false
the scroll view suddenly get the right height and fill the whole area.
what is wrong with this code?
I tried change stackPannel to DouckPannel,Grid, set the height...
how can I make the scrollview know it's height if I do not know the length of the ItemSource on each radexpender
thank you
Hello
I'm dealing with the worksheetPageSetup in order to print my worksheet on only one page like it could be done in C# with excel interop like this
PageSetup.Zoom =
false
;
PageSetup.FitToPagesWide = 1;
PageSetup.FitToPagesTall = 1;
PageSetup.Orientation = Microsoft.Office.Interop.Excel.XlPageOrientation.xlLandscape;
I found
worksheet.WorksheetPageSetup.PageOrientation = PageOrientation.Landscape
but I can't find how to do
PageSetup.Zoom =
false
;
PageSetup.FitToPagesWide = 1;
PageSetup.FitToPagesTall = 1;
with spreadsheet
Do you know how can I have the same issue with spreadsheet ?
thanks
regards
J-Christophe EICHENBERGER
Hi,
I am trying to export the appointment using ScheduleView AppointmentCalendarExporter.Export() in wpf. Appointment body text always showing as plain text it is not showing as HTML. When we see the ICS file "X-ALT-DESC;FMTTYPE" is missing and appointmen body text showing in DESCRIPTION property. Please provide the work around for it.
Thanks
Sekar