I have a exception when i try to filter the null value for the column, when having Null descriptor and other values as well. The binding is a dynamic object, i am setting the column type as expected.
I am using the version 2019.2.618.45 of telerik dll
Argument types do not match
at System.Linq.Expressions.Expression.Constant(Object value, Type type)
at Telerik.Windows.Data.Expressions.OperatorValueFilterDescriptorExpressionBuilderBase.CreateBodyExpressionThreadSafe()
at Telerik.Windows.Data.Expressions.FilterDescriptorCollectionExpressionBuilder.CreateBodyExpressionThreadSafe()
at Telerik.Windows.Data.Expressions.FilterDescriptorCollectionExpressionBuilder.CreateBodyExpressionThreadSafe()
at Telerik.Windows.Data.Expressions.FilterDescriptorCollectionExpressionBuilder.CreateBodyExpressionThreadSafe()
at Telerik.Windows.Data.Expressions.FilterExpressionBuilder.CreateFilterExpression()
at Telerik.Windows.Data.QueryableExtensions.Where(IQueryable source, CompositeFilterDescriptorCollection filterDescriptors)
at Telerik.Windows.Data.QueryableCollectionView.CreateView()
at Telerik.Windows.Data.QueryableCollectionView.CreateInternalList()
at Telerik.Windows.Data.QueryableCollectionView.get_InternalList()
at Telerik.Windows.Data.QueryableCollectionView.get_InternalCount()
at Telerik.Windows.Data.DataItemCollection.get_Count()
at Telerik.Windows.Controls.DataControl.ItemCoerce(DependencyObject d, Object baseValue)
at System.Windows.DependencyObject.ProcessCoerceValue(DependencyProperty dp, PropertyMetadata metadata, EntryIndex& entryIndex, Int32& targetIndex, EffectiveValueEntry& newEntry, EffectiveValueEntry& oldEntry, Object& oldValue, Object baseValue, Object controlValue, CoerceValueCallback coerceValueCallback, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, Boolean skipBaseValueChecks)
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 Telerik.Windows.Controls.DataControl.Telerik.Windows.Data.Selection.ISelectorInternal.set_SelectedItem(Object value)
at Telerik.Windows.Data.Selection.ItemSelectionHandler.SynchronizePublicSelectedItem()
at Telerik.Windows.Data.Selection.ItemSelectionHandler.SynchronizePublicPropertiesAndCleanUp()
at Telerik.Windows.Data.Selection.ItemSelectionHandler.EndAllowedSelection(ItemSelectionChange selectionChange)
at Telerik.Windows.Controls.GridView.Selection.CompositeSelectionHandler.PerformRowSelection(Object dataItem, SelectionModificationOptions modificationOptions)
at Telerik.Windows.Controls.GridView.Selection.CellAndRowSelectionDispatcher.HandleSelectionForCellInput(GridViewCell cell, SelectionModificationOptions allowedModifications)
at Telerik.Windows.Controls.GridView.GridViewDataControl.HandleMouseDownSelection(GridViewCell cell, Boolean allowDrag, Point mousePosition)
at Telerik.Windows.Controls.GridView.GridViewCell.OnMouseLeftButtonDown(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
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)
Hi Team,
We are
exporting our appointment details like below (code section) to generate .ics
file. When we book an appointment in our WOOFware
application, the email confirmation has an attached ICS file to add the
appointment to the client's calendar. The vcaappnt.ics attachment
itself is working correctly. However, if the client uses gmail,
there is a banner at the top that allows them to add that ics to their Google calendar.
Issue: When the appointment is close to a daylight savings time, the google calendar option is adding the appointment 1 hour later than the appointment. Please see the below,
Appointment time - Oct
31 @6 PM – 6.15PM EDT. But, in google it shows as 4.30am – 4.45am IST instead
of 3:30am-3.45am IST. (please see the attachment - IST Time format)
Appointment time - Oct
31 @6 PM-6.15 PM EDT. But, in google it shows as 4pm – 4.15pmIST instead of 3pm-3.15pm
IST.(please see the attachment - PDT Time format)
Code
using Telerik.Windows.Controls.ScheduleView;
ICalendar.AppointmentCalendarExporter exporter = new ICalendar.AppointmentCalendarExporter();
// appointment details exported(included timezone, location,time etc...)
exporter.Export(appointments, sw);
The time zone will be PDT, EDT, CDT – and it
will erroneously add 1 hour to the appointment(.ics file) and the time
zone will say PST, EST, CST and it will
show the correct time
The actual .ics file is being generated using a Telerik
library. That’s the one that is creating these RRULE entries in the .ics file.
So, different time gives in google and outlook using this .ics file? How to
resolve this ?
Thanks,
Srinivasan
Hi,
I want to override the select all filtering in radgridview to avoid stack over flow exception as mentioned below
https://docs.telerik.com/devtools/wpf/controls/radgridview/filtering/faq/stackoverflow-exception
https://docs.telerik.com/devtools/wpf/controls/radgridview/filtering/how-to/howto-display-all-distinct-values
Is there a way I can create custom list and change the item source?
Hi!
I am using a pivot grid, with a PivotFieldsList, and would like to be able to allow the user to choose a custom column name when hey are setting up there table. Whilst I can set the name correctly from the backend: I was hoping to allow someone to set the name from the drop down box. I have attached a *rough* image to demonstrate what I am trying to achieve.
Thanks for your help!
Hey guys,
I have following Usercontrol with a RadGridView.
<
UserControl
x:Class
=
"ReklamationsManagement.ucReklamationsTabelle"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:mat
=
"clr-namespace:Telerik.Windows.Controls.MaterialControls;assembly=Telerik.Windows.Controls"
xmlns:local
=
"clr-namespace:ReklamationsManagement"
DataContext
=
"{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}, Path=DataContext}"
>
<
Grid
>
<
Grid.Resources
>
<
local:GridRowStyle
x:Key
=
"GridRowStyle"
>
<
local:GridRowStyle.ImWerkStyle
>
<
Style
TargetType
=
"telerik:GridViewRow"
BasedOn
=
"{StaticResource GridViewRowStyle}"
>
<
Setter
Property
=
"Background"
Value
=
"#A5D6A7"
/>
<
Setter
Property
=
"MouseOverBackground"
Value
=
"#4CAF50"
/>
<
Setter
Property
=
"SelectedBackground"
Value
=
"#388E3C"
/>
</
Style
>
</
local:GridRowStyle.ImWerkStyle
>
<
local:GridRowStyle.RestStyle
>
<
Style
TargetType
=
"telerik:GridViewRow"
BasedOn
=
"{StaticResource GridViewRowStyle}"
/>
</
local:GridRowStyle.RestStyle
>
</
local:GridRowStyle
>
<
local:GridRowAlternateStyle
x:Key
=
"GridRowAlternateStyle"
>
<
local:GridRowAlternateStyle.ImWerkAlternateStyle
>
<
Style
TargetType
=
"telerik:GridViewRow"
BasedOn
=
"{StaticResource GridViewRowStyle}"
>
<
Setter
Property
=
"Background"
Value
=
"#83c6a7"
/>
<
Setter
Property
=
"MouseOverBackground"
Value
=
"#45aa6a"
/>
<
Setter
Property
=
"SelectedBackground"
Value
=
"#37935c"
/>
</
Style
>
</
local:GridRowAlternateStyle.ImWerkAlternateStyle
>
<
local:GridRowAlternateStyle.RestAlternateStyle
>
<
Style
TargetType
=
"telerik:GridViewRow"
BasedOn
=
"{StaticResource GridViewRowStyle}"
>
<
Setter
Property
=
"Background"
Value
=
"#349FA8DA"
/>
</
Style
>
</
local:GridRowAlternateStyle.RestAlternateStyle
>
</
local:GridRowAlternateStyle
>
</
Grid.Resources
>
<
telerik:RadGridView
Grid.Column
=
"1"
x:Name
=
"RadGridViewReklamationen"
AutoGenerateColumns
=
"False"
GroupRenderMode
=
"Flat"
ShowGroupPanel
=
"False"
FilteringMode
=
"Popup"
ShowSearchPanel
=
"False"
ValidatesOnDataErrors
=
"InEditMode"
EnableColumnVirtualization
=
"False"
LeftFrozenColumnCount
=
"7"
PreviewKeyDown
=
"RadGridViewReklamationen_PreviewKeyDown"
ItemsSource
=
"{Binding clsReklamationsTabelleDaten.dvReklamationen}"
RowStyleSelector
=
"{StaticResource GridRowStyle}"
AlternateRowStyleSelector
=
"{StaticResource GridRowAlternateStyle}"
AlternationCount
=
"2"
>
<
telerik:RadGridView.Resources
>
<
local:BooleanToTextConverter
x:Key
=
"BooleanToTextConverter"
/>
</
telerik:RadGridView.Resources
>
<
telerik:RadGridView.ColumnGroups
>
<
telerik:GridViewColumnGroup
Name
=
"BA"
Header
=
"BA"
/>
<
telerik:GridViewColumnGroup
Name
=
"Objekt"
Header
=
"Objekt"
/>
<
telerik:GridViewColumnGroup
Name
=
"Zeitpunkte"
Header
=
"Bearbeitungs-Zeitpunkte"
/>
<
telerik:GridViewColumnGroup
Name
=
"Personen"
Header
=
"Personen"
/>
<
telerik:GridViewColumnGroup
Name
=
"Lieferart"
Header
=
"Lieferart"
/>
<
telerik:GridViewColumnGroup
Name
=
"Foto"
Header
=
"Foto"
/>
<
telerik:GridViewColumnGroup
Name
=
"Lieferanschrift"
Header
=
"Lieferanschrift"
/>
<
telerik:GridViewColumnGroup
Name
=
"Ursache"
Header
=
"Ursache + Montage"
/>
<
telerik:GridViewColumnGroup
Name
=
"Fehlercode"
Header
=
"Fehlercode"
/>
<
telerik:GridViewColumnGroup
Name
=
"Problem"
Header
=
"Problem"
/>
<
telerik:GridViewColumnGroup
Name
=
"Verteiler"
Header
=
"Verteiler"
/>
<
telerik:GridViewColumnGroup
Name
=
"Kommunikation"
Header
=
"Kommunikation"
/>
</
telerik:RadGridView.ColumnGroups
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Gebiet}"
Header
=
"Gebiet"
IsReadOnly
=
"True"
ColumnGroupName
=
"BA"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Jahr}"
Header
=
"Jahr"
IsReadOnly
=
"True"
ColumnGroupName
=
"BA"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding LfdNr}"
Header
=
"LfdNr"
IsReadOnly
=
"True"
ColumnGroupName
=
"BA"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding TA}"
Header
=
"TA"
IsReadOnly
=
"True"
ColumnGroupName
=
"BA"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Los}"
Header
=
"Los"
IsReadOnly
=
"True"
ColumnGroupName
=
"BA"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Mappe}"
Header
=
"Mappe"
IsReadOnly
=
"True"
ColumnGroupName
=
"BA"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding ProduktTyp}"
Header
=
"Produkt-Typ"
IsReadOnly
=
"True"
ColumnGroupName
=
"BA"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Anschrift}"
Header
=
"Anschrift"
IsReadOnly
=
"True"
ColumnGroupName
=
"Objekt"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding PLZ}"
Header
=
"PLZ"
IsReadOnly
=
"True"
ColumnGroupName
=
"Objekt"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Ort}"
Header
=
"Ort"
IsReadOnly
=
"True"
ColumnGroupName
=
"Objekt"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Straße}"
Header
=
"Straße"
IsReadOnly
=
"True"
ColumnGroupName
=
"Objekt"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Feststelldatum, StringFormat=d}"
Header
=
"Festgestellt Am"
ColumnGroupName
=
"Zeitpunkte"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Anlegedatum, StringFormat=d}"
Header
=
"Angelegt Am"
IsReadOnly
=
"True"
ColumnGroupName
=
"Zeitpunkte"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding TKEingang, StringFormat=d}"
Header
=
"TK Eingang"
IsReadOnly
=
"True"
ColumnGroupName
=
"Zeitpunkte"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding TKRückfragen, StringFormat=d}"
Header
=
"TK Rückfragen"
IsReadOnly
=
"True"
ColumnGroupName
=
"Zeitpunkte"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding AVEingang, StringFormat=d}"
Header
=
"AV Eingang"
IsReadOnly
=
"True"
ColumnGroupName
=
"Zeitpunkte"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding ProjektiererEingang, StringFormat=d}"
Header
=
"PR Eingang"
IsReadOnly
=
"True"
ColumnGroupName
=
"Zeitpunkte"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding ReklamationsBesprechung, StringFormat=d}"
Header
=
"BS Datum"
IsReadOnly
=
"True"
ColumnGroupName
=
"Zeitpunkte"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding WerkEingang, StringFormat=d}"
Header
=
"WK Eingang"
IsReadOnly
=
"True"
ColumnGroupName
=
"Zeitpunkte"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding MonEinteilung, Converter={StaticResource BooleanToTextConverter}}"
Header
=
"Montageeinteilung"
IsReadOnly
=
"True"
ColumnGroupName
=
"Zeitpunkte"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding MonEinteilung, Mode=TwoWay}"
IsEnabled
=
"False"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding MontageDatum, StringFormat=d}"
Header
=
"Montage Datum"
IsReadOnly
=
"True"
ColumnGroupName
=
"Zeitpunkte"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding MontageWoche}"
Header
=
"Montagewoche"
IsReadOnly
=
"True"
ColumnGroupName
=
"Zeitpunkte"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding MontageJahr}"
Header
=
"Montagejahr"
IsReadOnly
=
"True"
ColumnGroupName
=
"Zeitpunkte"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding ErledigtDatum, StringFormat=d}"
Header
=
"Erledigt Datum"
IsReadOnly
=
"True"
ColumnGroupName
=
"Zeitpunkte"
/>
<!--<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding FestgestelltVon}"
Header
=
"Festgestellt Von"
IsReadOnly
=
"True"
ColumnGroupName
=
"Personen"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding AngelegtVon}"
Header
=
"Angelegt Von"
IsReadOnly
=
"True"
ColumnGroupName
=
"Personen"
/>-->
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Bearbeiter}"
Header
=
"Bearbeiter"
IsReadOnly
=
"True"
ColumnGroupName
=
"Personen"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Ladetag, StringFormat=d}"
Header
=
"Ladetag"
IsReadOnly
=
"True"
ColumnGroupName
=
"Lieferart"
/>
<!--<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Lieferart}"
Header
=
"Lieferart"
IsReadOnly
=
"True"
ColumnGroupName
=
"Lieferart"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding LieferartZeit}"
Header
=
"Abholzeit"
IsReadOnly
=
"True"
ColumnGroupName
=
"Lieferart"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding LieferartBemerkung}"
Header
=
"Bemerkung"
IsReadOnly
=
"True"
ColumnGroupName
=
"Lieferart"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding FotoNichtNötig, Converter={StaticResource BooleanToTextConverter}}"
Header
=
"Foto Nicht Benötigt"
IsReadOnly
=
"True"
ColumnGroupName
=
"Foto"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding FotoNichtNötig, Mode=TwoWay}"
IsEnabled
=
"False"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding FotoDa, Converter={StaticResource BooleanToTextConverter}}"
Header
=
"Foto Vorhanden"
IsReadOnly
=
"True"
ColumnGroupName
=
"Foto"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding FotoDa, Mode=TwoWay}"
IsEnabled
=
"False"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding FotoAngefordertAm, StringFormat=d}"
Header
=
"Foto Angefordert Am"
IsReadOnly
=
"True"
ColumnGroupName
=
"Foto"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding LieferanschriftAnschrift}"
Header
=
"Lieferanschrift Anschrift"
IsReadOnly
=
"True"
ColumnGroupName
=
"Lieferanschrift"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding LieferanschriftStrasse}"
Header
=
"Lieferanschrift Straße"
IsReadOnly
=
"True"
ColumnGroupName
=
"Lieferanschrift"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding LieferanschriftPLZ}"
Header
=
"Lieferanschrift PLZ"
IsReadOnly
=
"True"
ColumnGroupName
=
"Lieferanschrift"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding LieferanschriftOrt}"
Header
=
"Lieferanschrift Ort"
IsReadOnly
=
"True"
ColumnGroupName
=
"Lieferanschrift"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Verursacher}"
Header
=
"Verursacher"
IsReadOnly
=
"True"
ColumnGroupName
=
"Ursache"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Belastung, StringFormat=c2}"
Header
=
"Belastung"
IsReadOnly
=
"True"
ColumnGroupName
=
"Ursache"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Montagevorgabezeit}"
Header
=
"Montagevorgabezeit in h"
IsReadOnly
=
"True"
ColumnGroupName
=
"Ursache"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding ReklamationsArt}"
Header
=
"ReklamationsArt"
IsReadOnly
=
"True"
ColumnGroupName
=
"Fehlercode"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding FehlerBereich}"
Header
=
"FehlerBereich"
IsReadOnly
=
"True"
ColumnGroupName
=
"Fehlercode"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding FehlerBeschreibung}"
Header
=
"FehlerBeschreibung"
IsReadOnly
=
"True"
ColumnGroupName
=
"Fehlercode"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding FehlerUrsache}"
Header
=
"FehlerUrsache"
IsReadOnly
=
"True"
ColumnGroupName
=
"Fehlercode"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Situation}"
Header
=
"Situation"
IsReadOnly
=
"True"
ColumnGroupName
=
"Problem"
MaxWidth
=
"500"
TextWrapping
=
"Wrap"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Anweisung}"
Header
=
"Anweisung"
IsReadOnly
=
"True"
ColumnGroupName
=
"Problem"
MaxWidth
=
"500"
TextWrapping
=
"Wrap"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding VerteilerEndmontage, Converter={StaticResource BooleanToTextConverter}}"
Header
=
"Endmontage"
IsReadOnly
=
"True"
ColumnGroupName
=
"Verteiler"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding VerteilerEndmontage, Mode=TwoWay}"
IsEnabled
=
"False"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding VerteilerMonteur, Converter={StaticResource BooleanToTextConverter}}"
Header
=
"Monteur"
IsReadOnly
=
"True"
ColumnGroupName
=
"Verteiler"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding VerteilerMonteur, Mode=TwoWay}"
IsEnabled
=
"False"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding VerteilerSäge, Converter={StaticResource BooleanToTextConverter}}"
Header
=
"Säge"
IsReadOnly
=
"True"
ColumnGroupName
=
"Verteiler"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding VerteilerSäge, Mode=TwoWay}"
IsEnabled
=
"False"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding VerteilerBAZ, Converter={StaticResource BooleanToTextConverter}}"
Header
=
"BAZ"
IsReadOnly
=
"True"
ColumnGroupName
=
"Verteiler"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding VerteilerBAZ, Mode=TwoWay}"
IsEnabled
=
"False"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding VerteilerMagazin, Converter={StaticResource BooleanToTextConverter}}"
Header
=
"Magazin"
IsReadOnly
=
"True"
ColumnGroupName
=
"Verteiler"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding VerteilerMagazin, Mode=TwoWay}"
IsEnabled
=
"False"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding VerteilerKanban, Converter={StaticResource BooleanToTextConverter}}"
Header
=
"Kanban"
IsReadOnly
=
"True"
ColumnGroupName
=
"Verteiler"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding VerteilerKanban, Mode=TwoWay}"
IsEnabled
=
"False"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding VerteilerBlech, Converter={StaticResource BooleanToTextConverter}}"
Header
=
"Blech"
IsReadOnly
=
"True"
ColumnGroupName
=
"Verteiler"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding VerteilerBlech, Mode=TwoWay}"
IsEnabled
=
"False"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding VerteilerKleben, Converter={StaticResource BooleanToTextConverter}}"
Header
=
"Kleben"
IsReadOnly
=
"True"
ColumnGroupName
=
"Verteiler"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding VerteilerKleben, Mode=TwoWay}"
IsEnabled
=
"False"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding VerteilerAlu, Converter={StaticResource BooleanToTextConverter}}"
Header
=
"Alu"
IsReadOnly
=
"True"
ColumnGroupName
=
"Verteiler"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding VerteilerAlu, Mode=TwoWay}"
IsEnabled
=
"False"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding VerteilerFachberater, Converter={StaticResource BooleanToTextConverter}}"
Header
=
"Fachberater"
IsReadOnly
=
"True"
ColumnGroupName
=
"Verteiler"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding VerteilerFachberater, Mode=TwoWay}"
IsEnabled
=
"False"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding VerteilerMontageAkte, Converter={StaticResource BooleanToTextConverter}}"
Header
=
"MontageAkte"
IsReadOnly
=
"True"
ColumnGroupName
=
"Verteiler"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding VerteilerMontageAkte, Mode=TwoWay}"
IsEnabled
=
"False"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding VerteilerEinkauf, Converter={StaticResource BooleanToTextConverter}}"
Header
=
"Einkauf"
IsReadOnly
=
"True"
ColumnGroupName
=
"Verteiler"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding VerteilerEinkauf, Mode=TwoWay}"
IsEnabled
=
"False"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding RücklieferungWerk, Converter={StaticResource BooleanToTextConverter}}"
Header
=
"Rücklieferung Werk"
IsReadOnly
=
"True"
ColumnGroupName
=
"Verteiler"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding RücklieferungWerk, Mode=TwoWay}"
IsEnabled
=
"False"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding RücklieferungWerkAngekommen, Converter={StaticResource BooleanToTextConverter}}"
Header
=
"Rücklieferung Angekommen"
IsReadOnly
=
"True"
ColumnGroupName
=
"Verteiler"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
IsChecked
=
"{Binding RücklieferungWerkAngekommen, Mode=TwoWay}"
IsEnabled
=
"False"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding AnsprechpartnerAnrede}"
Header
=
"Ansprechpartner Anrede"
IsReadOnly
=
"True"
ColumnGroupName
=
"Kommunikation"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding AnsprechpartnerVorname}"
Header
=
"Ansprechpartner Vorname"
IsReadOnly
=
"True"
ColumnGroupName
=
"Kommunikation"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding AnsprechpartnerNachname}"
Header
=
"Ansprechpartner Nachname"
IsReadOnly
=
"True"
ColumnGroupName
=
"Kommunikation"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding AnsprechpartnerTelefon}"
Header
=
"Ansprechpartner Telefon"
IsReadOnly
=
"True"
ColumnGroupName
=
"Kommunikation"
/>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding AnsprechpartnerEMail}"
Header
=
"Ansprechpartner EMail"
IsReadOnly
=
"True"
ColumnGroupName
=
"Kommunikation"
/>-->
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding GeplanteKommunikation, StringFormat=d}"
Header
=
"GeplanteKommunikation"
IsReadOnly
=
"True"
ColumnGroupName
=
"Kommunikation"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
</
Grid
>
</
UserControl
>
The Itemsource of it is a DataView with SQL-data.
I have now applied a RowStyleSelector and with this occured a problem: The first row is always not really selected, but highlighted. I added a picture of it.
If I click the row gets really selected and the Style gets applied. I don't seem to have this problem with Bindings to Observable Collections. But completely convert the Dataview to another Collection seems to be really time consuming.
If I set IsSynchronizedWithCurrentItem to false, it works, but I not really want to miss the Indicator.
This: grid.Loaded += new RoutedEventHandler((sender, e) => { (sender as RadGridView).CurrentItem = null; }); changes nothing.
Setting the SelectedItem to the first DataRowView initially also not works.
Has anyone any other ideas?
Greetings,
Benedikt
Hi All,
I have tabcontrols with two tabs and each tab has comboboxes. On initial load everything is working as expected but if i change tab automatically focus sets to combobo control.
I want to prevent auto focus element tab onchange, please see below sample code to reproduce issue.
<telerik:RadTabControl>
<telerik:RadTabItem Header="Location">
<telerik:RadTabItem.Content>
<StackPanel>
<telerik:RadComboBox Width="200" x:Name="item1" Height="50" IsEditable="True" EmptyText="Select" >
<telerik:RadComboBoxItem Content="Item 1" />
<telerik:RadComboBoxItem Content="Item 2" />
</telerik:RadComboBox >
<telerik:RadComboBox Width="200" x:Name="item2" Height="50" IsEditable="True" >
<telerik:RadComboBoxItem Content="Item 1" />
<telerik:RadComboBoxItem Content="Item 2" />
</telerik:RadComboBox>
</StackPanel>
</telerik:RadTabItem.Content>
</telerik:RadTabItem>
<telerik:RadTabItem Header="Asset Type" >
<StackPanel>
<telerik:RadComboBox Width="200" x:Name="item3" Height="50" IsEditable="True" EmptyText="Select" >
<telerik:RadComboBoxItem Content="Item 1" />
<telerik:RadComboBoxItem Content="Item 2" />
</telerik:RadComboBox>
<telerik:RadComboBox Width="200" x:Name="item4" Height="50" IsEditable="True" EmptyText="Select" >
<telerik:RadComboBoxItem Content="Item 1" />
<telerik:RadComboBoxItem Content="Item 2" />
</telerik:RadComboBox>
</StackPanel>
</telerik:RadTabItem>
</telerik:RadTabControl>
Any help would be appreciated,
Regards,
Prashant
Hi All,
I am using RadGridView with MVVM binding. I am pulling large amount of data i.e.5000 records from database so used BackgroundWorker for data processing.
In RunWorkerCompleted event i am assigning data to ObservableCollection which is my grid's ItemsSource.
Everything works well except rowindicator, it's not visible if i bind data in worker completed event.
If i remove background worker and execute process on main thread then rowindicator displayed on grid.
Here is my sample code;
public ObservableCollection<Assets> AssetDs { get; set; } = new ObservableCollection<Assets>();
private voids search()
{
BackgroundWorker bw = new BackgroundWorker();
bw.DoWork += (sender, e) =>
{
e.Result = //DB call to fetch records
};
bw.RunWorkerCompleted += (sender, e) =>
{
List<Asset> result = (List<Asset>)e.Result;
result.ForEach(a => AssetDs.Add(a));
}
bw.RunWorkerAsync();
}
Any help would be appreciated,
Prashant
Hi All,
What is the best approach to notify required combobox on button click? I have a form with 4 tabs and each tab has some mandatory fields.
If user clicks on button i want to validate all tabs and notify user with highlighting required controls.
Looking for possible solutions for above workflow.
Any help would be appreciated,
Regards,
Prashant
Hi guys,
I have a PivotGrid with a LocalDataSourceProvider.
The Itemsource of this LocalDataSourceProvider is a ObservableCollection.
I set these Descriptions:
Telerik.Pivot.Core.PropertyGroupDescription pgdKWJahr = new Telerik.Pivot.Core.PropertyGroupDescription();
pgdKWJahr.PropertyName = "KWJahr";
pgdKWJahr.SortOrder = SortOrder.None;
Telerik.Pivot.Core.PropertyGroupDescription pgdBearbeiter = new Telerik.Pivot.Core.PropertyGroupDescription();
pgdBearbeiter.PropertyName = "Bearbeiter";
PropertyAggregateDescription padAnzahl = new PropertyAggregateDescription();
padAnzahl.PropertyName = "Anzahl";
using (ldspAnzahlÜbergabeWerk.DeferRefresh())
{
ldspAnzahlÜbergabeWerk.RowGroupDescriptions.Add(pgdKWJahr);
ldspAnzahlÜbergabeWerk.ColumnGroupDescriptions.Add(pgdBearbeiter);
ldspAnzahlÜbergabeWerk.AggregateDescriptions.Add(padAnzahl);
};
If the ObservableCollection now changes, I have to call a Refresh on the LocalDataProvider:
UcReklamationsAnzahlÜbergabeWerkVerlauf.ldspAnzahlÜbergabeWerk.Refresh();
This is not that great, but works if a value changes.The problem is, it not triggers anything if a new item should appear or an item is removed.
For better understanding:
My Collection is a list of how much things a user in each week completed. If someone now changes the weekrange, there should appear the new weeks in this range.
Is there any possibility to achieve this?
Greetings
Benedikt