Telerik Forums
UI for WPF Forum
1 answer
498 views
how to change left side width and color for context menu?  and select row style?

could you paste default style for the control?

thanks

jeorme
Dani
Telerik team
 answered on 14 Jun 2011
1 answer
109 views
Hi, Data Filter has many filter condtion such as " Is Equal To", "Contains", "Not Contained In" and so on.
Does it support "Has Value" to filter those value is not null?
If not, can I extend it myself to do it? How?
Rossen Hristov
Telerik team
 answered on 14 Jun 2011
7 answers
248 views
Hello,

I need to hide the 'Match Case' from the FilterControl  in the RadGridView as im using it for different language than english.
Is there a way to accomplish that?

Thanks,
Rossen Hristov
Telerik team
 answered on 14 Jun 2011
3 answers
83 views
Hi All,

I am working on WPF 4.0 and using telerik grid in it.

The following Style i have applied for the Radgridview in my application.
<!-- Telerik Data Grid Style Definations -->
   <Style TargetType="telerik:GridViewHeaderCell">
       <Setter Property="Background" Value="{StaticResource MainHeaderColor}"/>
       <Setter Property="BorderBrush" Value="#D4D6D6"/>
       <Setter Property="BorderThickness" Value="1"/>
       <!--Setter Property="Height" Value="27"/-->
       <Setter Property="VerticalContentAlignment" Value="Center" />
       <Setter Property="HorizontalContentAlignment" Value="Center" />
   </Style>
     
   <Style x:Key="GridViewHeaderRowStyle" TargetType="{x:Type telerik:GridViewHeaderRow}">
       <Setter Property="Background" Value="White"/>
       <Setter Property="BorderBrush" Value="#D4D6D6"/>
   </Style>
     
   <Style x:Key="AlternateRowStyle" TargetType="{x:Type telerikGridView:GridViewRow}">
       <Setter Property="Background" Value="#E3F0F9" />
       <Setter Property="BorderBrush" Value="#D4D6D6" />
       <!--Setter Property="Height" Value="30"/-->
   </Style>
     
   <Style x:Key="GridViewRowStyle" TargetType="{x:Type telerikGridView:GridViewRow}">
       <Setter Property="Background" Value="White" />
       <Setter Property="BorderBrush" Value="#D4D6D6" />
       <!--Setter Property="Height" Value="30"/-->
   </Style>
   <Style x:Key="DataCellsPresenter" TargetType="{x:Type telerik:GridViewHeaderRow}">
       <Setter Property="Background" Value="{StaticResource MainBackgroundColor}" />
       <Setter Property="BorderBrush" Value="#D4D6D6" />
   </Style>
   <DataTemplate x:Key="GridViewHeaderIndentCellDataTemplate">
       <telerik:GridViewHeaderIndentCell BorderBrush="#D4D6D6"/>
   </DataTemplate>
   <DataTemplate x:Key="GridViewHeaderIndicatorPresenterTemplate">
       <telerik:IndicatorPresenter  x:Name="PART_IndicatorPresenter" 
                                            Background="{StaticResource MainBackgroundColor}" 
                                            BorderBrush="{StaticResource SeperatorColor}" 
                                            BorderThickness="1"
                                            Grid.Column="0" HorizontalAlignment="Left" 
                                            Width="24"/>
   </DataTemplate>
   <!-- Telerik Data Grid Style-->
   <Style TargetType="{x:Type telerik:RadGridView}">
       <Setter Property="HeaderRowStyle" Value="{DynamicResource GridViewHeaderRowStyle}"/>
       <Setter Property="AlternateRowStyle" Value="{DynamicResource AlternateRowStyle}"/>
       <Setter Property="IsFilteringAllowed" Value="false"/>
       <Setter Property="RowStyle" Value="{DynamicResource GridViewRowStyle}"/>
       <Setter Property="GridLinesVisibility" Value="Both"/>
       <Setter Property="Cursor" Value="Hand"/>
       <Setter Property="Background" Value="White" />
       <Setter Property="VerticalGridLinesBrush" Value="#D4D6D6"/>
       <Setter Property="HorizontalGridLinesBrush" Value="#D4D6D6"/>
       <!--Setter Property="MinColumnWidth" Value="20"/-->
       <!--Setter Property="MaxColumnWidth" Value="150"/-->
       <!--Setter Property="ColumnWidth" Value="100"/-->
       <Setter Property="RowIndicatorVisibility" Value="Collapsed"/>
       <!--Setter Property="RowDetailsVisibilityMode" Value="VisibleWhenSelected"/-->
       <Setter Property="AlternationCount" Value="2"/>
       <Setter Property="VerticalAlignment" Value="Top"/>
       <Setter Property="HorizontalAlignment" Value="Center"/>
       <Setter Property="ShowGroupPanel" Value="False"/>
       <Setter Property="AutoGenerateColumns" Value="False"/>
       <Setter Property="IsReadOnly" Value="True"/>
       <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
       <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
       <Setter Property="IsScrolling" Value="false"/>
         
       <Setter Property="Margin" Value="0,0,0,0"/>
   </Style>

Now when I am using this Radgrid in my application and opening the screen then at that time the grid first squeeze and then open up in the screen withits full width.In some screens its also giving a jerking effect and then opening properly.

Kindly let me know why is it happening so ?

Thanks in advance !!!!!!
Dimitrina
Telerik team
 answered on 14 Jun 2011
2 answers
116 views

I have a RadGridView where one of the columns is of type decimal. I want to be able to filter that by decimal numbers, but it's impossible to type commas in the textboxes in the filtering popup.

 

The filtering itself works fine. I've tried to apply a filter with a decimal (0.5) with code and it works: the correct rows are displayed and the rest are hidden. But when I did this the textbox in the popup displayed '0' and not '0.5'.

 

Why is this and is there any way around this? Is it a bug or is it by design? Hopefully it is not by design because that would render the filtering useless in my case since all my numbers are less than 1...

haagel
Top achievements
Rank 1
 answered on 14 Jun 2011
4 answers
315 views
Hi 
Please  let me know how to set new row as selected item of the grid through AddingNewDataItem event as early as possible

Swathi.
Vanya Pavlova
Telerik team
 answered on 14 Jun 2011
1 answer
123 views
Hi,

I am facing this exception while trying to select an item on the grid view. It is happening very intermittently and we are not able to reproduce it in development environment, I have attached the full exception.


Unhandled WPF Error [(null)]
System.ArgumentNullException: Parent grid cannot be null Parameter name: parentRadGridViewPeer
   at Telerik.Windows.Controls.GridView.Automation.GridViewCellAutomationPeer..ctor(GridViewCell owner, RadGridViewAutomationPeer parentRadGridViewPeer)
   at Telerik.Windows.Controls.GridView.GridViewCell.OnCreateAutomationPeer()
   at System.Windows.UIElement.CreateAutomationPeer()
   at System.Windows.Automation.Peers.UIElementAutomationPeer.CreatePeerForElement(UIElement element)
   at System.Windows.Automation.Peers.AutomationPeer.AutomationPeerFromInputElement(IInputElement focusedElement)
   at System.Windows.Automation.Peers.AutomationPeer.RaiseFocusChangedEventHelper(IInputElement newFocus)
   at System.Windows.Input.KeyboardDevice.ChangeFocus(DependencyObject focus, Int32 timestamp)
   at System.Windows.Input.KeyboardDevice.TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider keyboardInputProvider, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
   at System.Windows.Input.KeyboardDevice.Focus(DependencyObject focus, Boolean askOld, Boolean askNew)
   at System.Windows.Input.KeyboardDevice.Focus(IInputElement element)
   at System.Windows.UIElement.Focus()
   at Telerik.Windows.Controls.GridView.EditContext.ChangeVisualState(GridViewCell cell)
   at Telerik.Windows.Controls.GridView.EditContext.TryMakeCellCurrent(GridViewCell cell)
   at Telerik.Windows.Controls.GridView.GridViewCell.IsCurrentChanged(DependencyObject dependencyObject, 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 Telerik.Windows.Controls.GridView.GridViewCell.set_IsCurrent(Boolean value)
   at Telerik.Windows.Controls.GridView.EditContext.OnCellMouseDown(GridViewCell cell)
   at Telerik.Windows.Controls.GridView.GridViewCell.OnMouseLeftButtonDown(MouseButtonEventArgs e)
   at System.Windows.UIElement.OnMouseLeftButtonDownThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.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.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.CrackMouseButtonEventAndReRaiseEvent(DependencyObject sender, MouseButtonEventArgs e)
   at System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.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.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)
My current grid version is : 2009.2.813.35
Vlad
Telerik team
 answered on 14 Jun 2011
1 answer
105 views
I am using the TimeBar control to display some data and it seems like the data is being shifted somewhat.
For instance, the data I am loading has the spike at 8 PM on the 21st instead of early on the 22nd.

 
Missing User
 answered on 14 Jun 2011
1 answer
127 views
I want this above code to be writen in c# rather then using XAML, anyone knows how to do this?
<
telerik:RadTreeListView x:Name="radTreeListView">
   
<telerik:RadTreeListView.ChildTableDefinitions>
       
<telerik:TreeListViewTableDefinition ItemsSource="{Binding Items}">
       
</telerik:TreeListViewTableDefinition>
   
</telerik:RadTreeListView.ChildTableDefinitions>
</
telerik:RadTreeListView>

Thanks,
Faheem
Faheem
Top achievements
Rank 1
 answered on 13 Jun 2011
4 answers
173 views
I am using a radgridview to show a list of data on a day by day basis, and one of the columns is a DateTime column representing the date that each line was created.

The issue that I face is this.  The column in question shows the full date and time (down to the second).  When you open the filter control for that column however, in the section where you can check individual unique values, it does NOT display down to the second, which makes it impossible to pick the specific ones you want.

Is there a way to adjust the filter to display the seconds as well as everything else?

Thanks
Alex Fidanov
Telerik team
 answered on 13 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?