Telerik Forums
UI for WPF Forum
1 answer
116 views

Good afternoon!

I've found two issues with RadTabControl scrolling. All the needed information can be found at ticket #353795.

Also I have a question, how can I customize the style of DropDown's item?? For example, I want to see not the header of TabItem. but its content in DropDown.

Thanks in advance.

Kiril Stanoev
Telerik team
 answered on 06 Oct 2010
3 answers
165 views
How do you vary the amount by which child nodes are indented ?
Tina Stancheva
Telerik team
 answered on 06 Oct 2010
7 answers
206 views
Hi,
I want some operation on Grid view combo column selection changed. How can I do that . Is there any event ? I read that is is derived from RadCombobox column. Thanks
Zubair
Maya
Telerik team
 answered on 06 Oct 2010
3 answers
112 views
Hi,

I am using RADCalander of wpf,i want to apply style(color) to type of the day.
Ex:
Sun--Red color
Mon-Blue color
Tue--Green color

Could you please help me to sort out this.Its urgent
Kaloyan
Telerik team
 answered on 06 Oct 2010
1 answer
114 views

 

 

 

Hi all,
i have applied validation in a text box as follows. note i m using enterprise library for validation purpose:

<
TextBox Grid.Row="3" Grid.Column="1" TabIndex="2" Margin="5" MinHeight="40" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Visible" >

 

 

 

 

<Binding Path="Vehicle.Comments" UpdateSourceTrigger="PropertyChanged" ValidatesOnDataErrors="True" Mode="TwoWay" >

 

 

 

 

<Binding.ValidationRules>

 

 

 

 

<y:ValidatorRule SourcePropertyName="Comments" SourceType="{x:Type e:tblVehicle}"/>

 

 

 

 

</Binding.ValidationRules>

 

 

 

 

</Binding>

 

 

 

 

</TextBox>

now i want to apply it at RadDatePicker:

 

 

 

 

<telerik:RadDatePicker TabIndex="8" ToolTip="Enter due date ..." Name="dtpDueDate" Height="25"

 

 

 

Background="Transparent" BorderBrush="{DynamicResource brushWatermarkBorder}" >

 

 

 

 

<telerik:RadDatePicker.SelectedDate>

 

 

 

 

 

 

 

 

 

</telerik:RadDatePicker.SelectedDate>

 

 

 

 

 

 

 

 

 

 

 

 

</telerik:RadDatePicker>
it give me nothing under .selectedDate property.

how can i apply the validation rule in a pattern as applied at textbox in the datepicker?

Thanks.

 

Kaloyan
Telerik team
 answered on 06 Oct 2010
1 answer
81 views
Hi ,
I developed Custom Calender using RadCalendar control.
Few properties  and Events reffer Telerik.Windows.Controls.
For example:
public event System.EventHandler<Telerik.Windows.Controls.Calendar.CalendarModeChangedEventArgs> DisplayModeChanged
    {
        add { RadCalendar.DisplayModeChanged += value; }
        remove { RadCalendar.DisplayModeChanged -= value; }
    }
In above code block iam using "Telerik.Windows.Controls.Calendar.CalendarModeChangedEventArgs" 
Now i want to use "MY.Windows.Controls.Calendar.CalendarModeChangedEventArgs"
The developer should not use Any telerix Reference , when he is using my Custom control.He just need to use 
My.Windows.controls.
What should i do to change Telerix to MY while using those events ?
Can you guys help me.

Thanks,
Pradeep.
Kaloyan
Telerik team
 answered on 06 Oct 2010
8 answers
291 views
I am trying to change the theme of some of the RadControls at runtime. In the documentation, I found 2 ways to set the theme, neither of which work. I can set the theme at design time no problem.

StyleManager

 

.SetTheme(radSchedulerMain, new Office_BlackTheme());

 

radSchedulerMain.SetValue(

StyleManager.ThemeProperty,new SummerTheme());

 

 

With both methods, I get "There is no source code available for the current location", then "Index was outside the bounds of the array". How do I get past this problem?? Exception details below.


System.IndexOutOfRangeException was unhandled
  Message="Index was outside the bounds of the array."
  Source="PresentationFramework"
  StackTrace:
       at System.Windows.Controls.ItemContainerGenerator.RealizedItemBlock.ContainerAt(Int32 index)
       at System.Windows.Controls.ItemContainerGenerator.ContainerFromIndex(Int32 index)
       at Telerik.Windows.Controls.RadRibbonBar.TabControlElementItemContainerGenerator_StatusChanged(Object sender, EventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\RibbonBar\RibbonBar\RadRibbonBar.cs:line 1197
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Windows.Controls.ItemContainerGenerator.SetStatus(GeneratorStatus value)
       at System.Windows.Controls.ItemContainerGenerator.Generator.System.IDisposable.Dispose()
       at System.Windows.Controls.Panel.reGenerateChildren()
       at System.Windows.Controls.Panel.get_InternalChildren()
       at Telerik.Windows.Controls.RibbonBar.Primitives.TabStripPanel.MeasureOverride(Size availableSize) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\RibbonBar\RibbonBar\Primitives\TabStripPanel.cs:line 59
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       at System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
       at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Border.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.DockPanel.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Control.MeasureOverride(Size constraint)
       at Telerik.Windows.Controls.RadTabControl.MeasureOverride(Size availableSize) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\TabControl\RadTabControl.cs:line 2045
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Control.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
       at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.ContextLayoutManager.UpdateLayout()
       at Telerik.Windows.Controls.RadComboBox.NavigateToItem(Object item) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\Input\ComboBox\RadComboBox.cs:line 780
       at Telerik.Windows.Controls.RadComboBox.OnSelectionChanged(SelectionChangedEventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\Input\ComboBox\RadComboBox.cs:line 1365
       at System.Windows.Controls.Primitives.Selector.SelectionChanger.End()
       at System.Windows.Controls.Primitives.Selector.SelectionChanger.SelectJustThisItem(Object item, Boolean assumeInItemsCollection)
       at System.Windows.Controls.Primitives.Selector.OnSelectedItemChanged(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, OperationType operationType)
       at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, OperationType operationType, Boolean isInternal)
       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       at System.Windows.Controls.Primitives.Selector.set_SelectedItem(Object value)
       at Telerik.Windows.Controls.RadComboBox.NotifyComboBoxItemMouseUp(RadComboBoxItem comboBoxItem) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\Input\ComboBox\RadComboBox.cs:line 870
       at Telerik.Windows.Controls.RadComboBoxItem.OnMouseLeftButtonUp(MouseButtonEventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\Input\ComboBox\RadComboBoxItem.cs:line 254
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       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.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       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.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 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, Boolean isSingleParameter)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, 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 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.TranslateAndDispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Application.RunInternal(Window window)
       at Scheduler_WPF.App.Main() in C:\Personal Files\My Dropbox\Scheduler_WPF\Scheduler_WPF\obj\Debug\App.g.cs:line 0
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:

 

Tina Stancheva
Telerik team
 answered on 06 Oct 2010
1 answer
597 views
Are RadPanes supposed to provide scrollbars if the content is larger than the RadPane? I thought I saw that behavior when I was originally evaluaing the Docking control, but it's not doing it for me now in my project, nor in any of the Telerik demos on this site (Silverlight or WPF). Do I need to implement my own scrolling in anything that will be put into a RadPane?
Dani
Telerik team
 answered on 06 Oct 2010
5 answers
102 views
Running the latest 9/24 SP2 build.  I'm going to include alot of information because I'm honestly not sure what matters and what doesn't.. so forgive some of what may be superfluous information.

I have a datagrid that has its columns generated based on user configuration at run time. {using grid.Columns.Add(x);}

This data grid is 38 columns wide.  Currently 16 of those columns are configured as combo box columns.

10 of them have very short itemsource lists.  (5 - 10 items)
6 of them have considerably longer itemsource lists (900- 2000).

Horizontal scrolling performance is very poor in this case.  CPU spikes to 50% on a Core2 Duo 2.8Ghz with 3GB RAM.

the most common probles I've been informed of is the RadGridView is housed in a container that disables column/row virtualization.  Below is my grid configuration, and my RadGridView declaration

<Grid.RowDefinitions>
    <RowDefinition Height="30" />
    <RowDefinition Height="55" />
    <RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
    <ColumnDefinition Width="*"/>            
</Grid.ColumnDefinitions>
<telerik:RadGridView                      
    Grid.Row="2"
    ScrollViewer.HorizontalScrollBarVisibility="Auto"
    ScrollViewer.VerticalScrollBarVisibility="Auto"
    AutoGenerateColumns="false"
    Name="userGridView" 
    SelectionUnit="Cell"  
    ClipboardCopyMode="Default" 
    SelectionMode="Extended" 
    CanUserSortColumns="True"             
    Pasting="userGridView_Pasting"
    Pasted="userGridView_Pasted"
    KeyDown="userGridView_KeyDown"
    ItemsSource="{Binding}"
    telerik:Theming.Theme="Summer" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" ></telerik:RadGridView>


What can I do to increase the performance here?  From what I read in the 9/24 release notes, the gridview was supposed to improve performance in these cases.
Jason
Top achievements
Rank 1
 answered on 05 Oct 2010
3 answers
280 views
Please look the attach files.Thanks.
Tina Stancheva
Telerik team
 answered on 05 Oct 2010
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
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
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?