Telerik Forums
UI for WPF Forum
2 answers
172 views
Hi Telerik,

I'm experiencing a strange behavior of the ScheduleView. I set schedule to view by day and had one hour increment as shown below. The ScheduleView had SnapAppointments="True". The problem is I couldn't adjust down to one hour slot, but I could change it through appointment edit dialog. For example, I couldn't slide end time from 3AM to 2AM where start time is 1AM. Any ideas what went wrong? Thanks.





        <!-- ScheduleView -->
        <telerik:RadScheduleView x:Name="scheduleView"
                                Grid.Row="2"                                 
                                MaxTimeRulerExtent="500" 
                                AppointmentsSource="{Binding Tasks, Mode=TwoWay}"
                                ResourceTypesSource="{Binding ScheduleOptionList, Mode=TwoWay}"
                                GroupDescriptionsSource="{Binding GroupCollection, Mode=TwoWay}"
                                CurrentDate="{Binding DefaultDate}"								
                                NavigationHeaderVisibility="Collapsed"
                                AllowDrop="True"
                                SnapAppointments="True"   
                                Height="Auto">
 
            <telerik:RadScheduleView.DragDropBehavior>
                <local:ScheduleDragDropBehavior/>
            </telerik:RadScheduleView.DragDropBehavior>
 
            <telerik:RadScheduleView.AppointmentItemContentTemplate>
                <DataTemplate>
                    <StackPanel>
                        <TextBlock Text="{Binding Subject}"  FontWeight="Bold"/>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{Binding Start, StringFormat={}{0:hh:mm tt}}"/>
                            <TextBlock Text=" - "/>
                            <TextBlock Text="{Binding End, StringFormat={}{0:hh:mm tt}}"/>
                        </StackPanel>
                    </StackPanel>
                </DataTemplate>
            </telerik:RadScheduleView.AppointmentItemContentTemplate>
 
            <telerik:RadScheduleView.ActiveViewDefinition>
                <telerik:DayViewDefinition Orientation="Horizontal" FirstDayOfWeek="Monday" TimerulerMajorTickStringFormat="{}{0:htt}" 
                                            MinorTickLength="1h"  MajorTickLength="1h" MinTimeRulerExtent="700" />
            </telerik:RadScheduleView.ActiveViewDefinition>
 
            <telerik:RadScheduleView.GroupHeaderContentTemplateSelector>
                <telerik:OrientedGroupHeaderContentTemplateSelector>
                    <telerik:OrientedGroupHeaderContentTemplateSelector.VerticalDayViewDateTemplate>
                        <DataTemplate>
                            <Grid Visibility="Hidden"/>
                        </DataTemplate>
                    </telerik:OrientedGroupHeaderContentTemplateSelector.VerticalDayViewDateTemplate>
                    <telerik:OrientedGroupHeaderContentTemplateSelector.VerticalResourceTemplate>
                        <DataTemplate>
                            <TextBlock Width="60" Margin="5,0" Text="{Binding FormattedName}" 
                                       HorizontalAlignment="Center" VerticalAlignment="Center" />
                        </DataTemplate>
                    </telerik:OrientedGroupHeaderContentTemplateSelector.VerticalResourceTemplate>
                </telerik:OrientedGroupHeaderContentTemplateSelector>
            </telerik:RadScheduleView.GroupHeaderContentTemplateSelector>
 
        </telerik:RadScheduleView>
Cheau-Long
Top achievements
Rank 1
 answered on 21 Jun 2011
1 answer
106 views
Hello,

I am new to this control.  How do you format the "cards" that display as you cycle through the records. 

Thanks,
Reid
Vanya Pavlova
Telerik team
 answered on 21 Jun 2011
2 answers
64 views
How do i add my own aggregating function in the radgridview version Q3 2009 SP2? Or rather, is there any way to obtain the aggregated value from the normal SumFunction in the footer?
Felix
Top achievements
Rank 1
 answered on 21 Jun 2011
1 answer
56 views
As I browse the threads, my understanding is that there's no design time support if I'm using a Telerik theme across the whole of my application. Is this true? I have to set this in the code behind and I can't just set a merged resource in the xaml?

-Greg
Milan
Telerik team
 answered on 21 Jun 2011
1 answer
151 views
I have a UserControl which contains numerous other controls including a RadMenu. Part of the functionality of this UserControl is to launch a modal window, I perform this by setting the UserControl:IsEnabled property to false. All the contained controls are disabled which is the desired behaviour. However, when I reset the container's IsEnabled property to true, the menu items remain disabled whereas all the other controls are active again.

I noticed that the IsEnabledChanged event is not triggered on the reactivation of the the container.

Any help would be greatly appreciated.
Hristo
Telerik team
 answered on 21 Jun 2011
4 answers
193 views
Hello Telerik team,

With the below grid settings I select multiple cells of the grid keeping the Ctrl button pressed.

<telerik:RadGridView x:Name="radgvActivity" 
                             Grid.Row="2"
                             Margin="0" 
                             IsReadOnly="False"
                             RowIndicatorVisibility="Visible"                                                          
                             ScrollMode="RealTime"
                             AutoGenerateColumns="False" 
                             EnableRowVirtualization="True"
                             CanUserFreezeColumns="False" 
                             CanUserResizeColumns="True"                            
                             Width="780" Height="600"
                             SelectionMode="Extended"
                             ClipboardCopyMode="All"
                             ClipboardPasteMode="Default"
                             SelectionUnit="Cell"
                             BeginningEdit="radgvActivity_BeginningEdit"
                             RowEditEnded="radgvActivity_RowEditEnded"
                             >



Now, on click of Ctrl + C, I get a System.NullReferenceException {"Object reference not set to an instance of an object."}
Please find the stack trace of the exception.

at Telerik.Windows.Controls.GridView.Clipboard.Writers.WriterBase.<GetSelectedItemsAsClipboardData>b__3(GridViewColumn c)
at System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)
at System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count)
at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__0.MoveNext()
at System.Linq.Enumerable.ElementAtOrDefault[TSource](IEnumerable`1 source, Int32 index)
at Telerik.Windows.Controls.GridView.Clipboard.Writers.WriterBase.RenderHeaderRow()
at Telerik.Windows.Controls.GridView.Clipboard.Writers.WriterBase.Render()
at Telerik.Windows.Controls.GridView.Clipboard.Writers.HtmlWriter.Render()
at Telerik.Windows.Controls.GridView.GridViewDataControl.CopyToClipboard()
at Telerik.Windows.Controls.GridView.GridViewDataControl.CopyExecuted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
at System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.UIElement.OnExecutedThunk(Object sender, ExecutedRoutedEventArgs e)
at System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)
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.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
at System.Windows.Input.RoutedCommand.ExecuteCore(Object parameter, IInputElement target, Boolean userInitiated)
at System.Windows.Input.CommandManager.TranslateInput(IInputElement targetElement, InputEventArgs inputEventArgs)
at System.Windows.UIElement.OnKeyDownThunk(Object sender, KeyEventArgs e)
at System.Windows.Input.KeyEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
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.RaiseEvent(RoutedEventArgs args, Boolean trusted)
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.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
at System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(MSG& msg, Boolean& handled)
at System.Windows.Interop.HwndSource.WeakEventPreprocessMessage.OnPreprocessMessage(MSG& msg, Boolean& handled)
at System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at ~\obj\Debug\App.g.cs:line 0
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

I donot get this exception on setting the selection unit to fullrow. SelectionUnit="FullRow"


Please help with this matter.



Thanks,
Regards,
Mausami
Milan
Telerik team
 answered on 21 Jun 2011
1 answer
151 views
Hi,

actually in my wpf application, users can apply changes  to any rows they want and eventually when they click on a "Save" button to apply pending changes.

To acheive that, I loop into "Items" property to check any row object for a specific flag in my object. The problem I have is, if the users apply a column filter before they click on the "Save" button, some changes can be missing because they are outside the filter range.

So, "Items" property contain only visible rows in GridView. Do we have acces to another DataItemCollection that contain all the data without the filters???

Thank's
Dimitrina
Telerik team
 answered on 21 Jun 2011
3 answers
84 views
Hi guys,

Has anyone successfully applied third party theme to RadGridView? How much effort involved ? This is our predicament: we really like Telerik controls especially the RadGridView but Business is kinda worried about its look being very different from the rest of non-Telerik controls. The option of migrating everythiing to Telerik controls is just not practical at this point because of schedule contraint.

So, if someone has attempted the feat we're planning, could you please provide us ideas and starting point?

Thanks
Gio
Vanya Pavlova
Telerik team
 answered on 20 Jun 2011
3 answers
165 views
Hi Admin,

I did some search in this forum and it seemed that no similar topic has been post.

I have an ObservableCollection<AbstractEntity> which contains some derived class instances such as CustomerEntity and EmployeeEntity. Binding this collection to a RadGridView ItemsSource is ok. Data is displayed correctly.

I want to apply some filters, such as showing CustomerEntity or EmployeeEntity only. So I defined a ListCollectionView like this:

var peopleCollectionView = (ListCollectionView)CollectionViewSource.GetDefaultView(this.People);

then bind the RadGridView ItemsSource to this ListCollectionView, and apply the filters to the ListCollectionView.

The filters work fine. But I found whenever there are multiple derived types of instances in the collection, the RadGridView shows the rows but the content in all the cells are empty. 

I checked the output and did not see any GUI exception.

Is it a known issue? Is there any solution for this?


Thanks,
Stephen




Vlad
Telerik team
 answered on 20 Jun 2011
3 answers
119 views
Hi,,

i'm looking for a very simple RadCarousel where i can add 10 buttons. Which Carousel should i use? How to cklick this Buttons?

Thank's a lot
Regards
Rene
Vanya Pavlova
Telerik team
 answered on 20 Jun 2011
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?