Telerik Forums
UI for WPF Forum
1 answer
96 views
Hi,

I have noticed that when you move your mouse over a cell it changes colour. Is there a way to bind to this cell? I have other edit boxes on my form which I want to update depending on which cell the mouse is over. Ie as you move your mouse over the different cells, values in other edit boxes change.  I am not explicitly selecting the cells by clicking on them, just moving my mouse over that cell.
Nick
Telerik team
 answered on 20 Jun 2014
2 answers
220 views
Hi:

I have attached a sample project with a RadWindow as the MainWindow of an app with an issue:

- I have two screens. A primary screen, and the second by the right of the primary screen.
- When I run the app it appears in the primary screen,
- Moving the app to the second screen,
- Click on Maximize button.

What I see is that the windows appears to get a width greather than the second screen width, I guess the width setted in the windows is primaryScreen.Width + secondaryScreen.Width.

One interesting thing it happens, is that if I set the second screen as primary screen, this behavior does not occur.

Am I using the RadWindow in a wrong way or it is a bug?

The attached file is a zip, but I can not attach it as .zip, so I have change the extension to .jpg, please rename it to .zip.

Thanks!

Juan Maria
Top achievements
Rank 1
 answered on 20 Jun 2014
1 answer
194 views
Hi,

Currently Telerik provide the Expression Dark Theme. Would you able to implement the Expression Light theme as well?

I am guessing it would be just be a copy of the Expression Dark Theme with the colours changed.

Thanks
Anthony

Lance | Senior Manager Technical Support
Telerik team
 answered on 19 Jun 2014
3 answers
200 views
I have a RadGridView in which I have several groups. Each group contains editable rows. A tooltip is bound to these rows via style. Since the binding for tooltip is canceled after an editation, I hardcoded the ToolTip on EndRowEdit event. But this approach only works if a row virtualization is turned off. If I turn the virtualization on and edit a row then each n-th line will display the same tooltip.tak takhle?

Style for binding:

<Style x:Key="rowstyle" TargetType="{x:Type telerik:GridViewRow}" >
           <Setter Property="ToolTip" Value="{Binding Hint}"/>
</Style>

Event:

private void radGridView_RowEditEnded(object sender, GridViewRowEditEndedEventArgs e)
{
        e.Row.ToolTip = (e.Row.DataContext as ConfigurationItemViewModel).Hint;
}

RadGridView:

<telerik:RadGridView DataLoadMode="Asynchronous"  x:Name="radGridView" AutoGenerateColumns="False" ItemsSource="{Binding Options}" GridLinesVisibility="Both" IsFilteringAllowed="True" CanUserSortColumns="False" ShowGroupPanel="False"                             
                            RowIndicatorVisibility="Collapsed" EnableColumnVirtualization="True" EnableRowVirtualization="True" RowStyle="{StaticResource rowstyle}"  GroupRenderMode="Flat"
                            VerticalGridLinesBrush="{StaticResource MetroGrey03}"
                            HorizontalGridLinesBrush="{StaticResource MetroGrey03}"
                            telerik:RadContextMenu.ContextMenu="{StaticResource FilterContextMenu}"
                            RowEditEnded="radGridView_RowEditEnded"
                            CanUserDeleteRows="False" CanUserInsertRows="False" CanUserResizeRows="False"
                            con:WatermarkBehavior.EmptyGridWatermarkString="{x:Static loc:Resources.EmptyConfigurationGrid}"
                            con:WatermarkBehavior.IsWatermarkEnabled="True" con:WatermarkBehavior.WatermarkString="{x:Static loc:Resources.GridFilterWatermark}" con:WatermarkBehavior.WatermarkStyle="{StaticResource GridWatermarkStyle}"
                            CanUserFreezeColumns="False" EditTriggers="CellClick" RowLoaded="RadGridView_RowLoaded" CanUserSortGroups="False" Loaded="radGridView_Loaded">
          
           
           <telerik:RadGridView.Resources>
               <cfg:ValueCellTemplateSelector x:Key="CellEditTemplateSelector">              
                   <cfg:ValueCellTemplateSelector.StringValue>       
                       <DataTemplate>
                               <TextBox
                                   con:WatermarkBehavior.IsWatermarkEnabled="True" con:WatermarkBehavior.WatermarkString="{x:Static loc:Resources.EnterHere}" con:WatermarkBehavior.WatermarkStyle="{StaticResource WatermarkStyle}"
                                   Width="Auto" HorizontalAlignment="Stretch" Margin="0" Text="{Binding ValueString, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}" MaxLength="{Binding StringMaxLength, Mode=OneWay}"/>
                       </DataTemplate>
                   </cfg:ValueCellTemplateSelector.StringValue>
                   <cfg:ValueCellTemplateSelector.PasswordValue>
                       <DataTemplate>
                           <styles:PasswordBox2N Width="Auto" HorizontalAlignment="Stretch" Margin="0" Password="{Binding Value, ValidatesOnDataErrors=True, Mode=TwoWay}" MaskLenght="8" MaxLenght="16" />
                       </DataTemplate>
                   </cfg:ValueCellTemplateSelector.PasswordValue>
                   <cfg:ValueCellTemplateSelector.IntValue>
                       <DataTemplate>
                           <cfg:CustomRadNumericUpDown Width="Auto" HorizontalAlignment="Stretch" Margin="0" Style="{DynamicResource RadNumericUpDownStyle}" Value="{Binding ValueNr, Mode=TwoWay}" Maximum="{Binding ValueNrMax}" Minimum="{Binding ValueNrMin}" IsInteger="True"/>
                       </DataTemplate>
                   </cfg:ValueCellTemplateSelector.IntValue>
                   <cfg:ValueCellTemplateSelector.DateTimeValue>
                       <DataTemplate>
                           <telerik:RadDateTimePicker Width="Auto" HorizontalAlignment="Stretch" Margin="0" SelectedValue="{Binding ValueDateTime, Mode=TwoWay}" DisplayFormat="Long" />
                       </DataTemplate>
                   </cfg:ValueCellTemplateSelector.DateTimeValue>
                   <cfg:ValueCellTemplateSelector.DateValue>
                       <DataTemplate>
                           <telerik:RadDateTimePicker Width="Auto" HorizontalAlignment="Stretch" Margin="0" SelectedValue="{Binding ValueDateTime, Mode=TwoWay}" InputMode="DatePicker" DisplayFormat="Long" />
                       </DataTemplate>
                   </cfg:ValueCellTemplateSelector.DateValue>
                   <cfg:ValueCellTemplateSelector.TimeValue>
                       <DataTemplate>
                           <telerik:RadDateTimePicker Width="Auto"  HorizontalAlignment="Stretch" Margin="0" SelectedValue="{Binding ValueDateTime, Mode=TwoWay}" InputMode="TimePicker" DisplayFormat="Long"/>
                       </DataTemplate>
                   </cfg:ValueCellTemplateSelector.TimeValue>
                   <cfg:ValueCellTemplateSelector.TimeIntervalValue>
                       <DataTemplate>                                                                                          
                               <Grid HorizontalAlignment="Stretch">
                               <Grid.ColumnDefinitions>
                                   <ColumnDefinition Width="Auto"/>
                                   <ColumnDefinition Width="*"/>
                               </Grid.ColumnDefinitions>
                               <Grid.RowDefinitions>
                                   <RowDefinition Height="Auto"/>
                                   <RowDefinition Height="Auto"/>
                               </Grid.RowDefinitions>
                               <TextBlock Text="{x:Static loc:Resources.From}"  Style="{StaticResource InsideTextBlockStyle}"/>
                               <cfg:CustomRadDateTimePicker Style="{DynamicResource RadDateTimePickerStyle}" Width="Auto" HorizontalAlignment="Stretch" Margin="0" Grid.Column="1"  x:Name="intervalFromPicker" SelectedValue="{Binding ValueIntervalStart, ValidatesOnDataErrors=True}" InputMode="TimePicker" DisplayFormat="Short" />
                               <TextBlock Grid.Row="1"  Style="{StaticResource InsideTextBlockStyle}"  Text="{x:Static loc:Resources.ToDateTime}" />
                               <cfg:CustomRadDateTimePicker Style="{DynamicResource RadDateTimePickerStyle}"  Width="Auto" HorizontalAlignment="Stretch" Margin="0" Grid.Column="1" Grid.Row="1"  x:Name="intervalToPicker" SelectedValue="{Binding ValueIntervalEnd, ValidatesOnDataErrors=True}" InputMode="TimePicker" DisplayFormat="Short" />
                           </Grid>                           
                       </DataTemplate>
                   </cfg:ValueCellTemplateSelector.TimeIntervalValue>
               </cfg:ValueCellTemplateSelector>
              <cfg:TypeToStringConverter x:Key="typeConverter"/>
           </telerik:RadGridView.Resources>
           <telerik:RadGridView.Columns>              
               <telerik:GridViewDataColumn Name="MainGroupName" UniqueName="GroupColumn" IsVisible="False" DataMemberBinding="{Binding Group}" Header="Group" IsReadOnly="True"/>
               <telerik:GridViewDataColumn DataMemberBinding="{Binding Code}" Header="{x:Static loc:Resources.Code}" TextAlignment="Center" IsReadOnly="True">
                   <telerik:GridViewDataColumn.FilteringControl>
                       <con:ContainsFilterControl/>
                   </telerik:GridViewDataColumn.FilteringControl>
               </telerik:GridViewDataColumn>
               <telerik:GridViewDataColumn MinWidth="345" DataMemberBinding="{Binding ColumnName}" Header="{x:Static loc:Resources.Name}" IsReadOnly="True" >
                   <telerik:GridViewDataColumn.FilteringControl>
                       <con:ContainsFilterControl/>
                   </telerik:GridViewDataColumn.FilteringControl>
               </telerik:GridViewDataColumn>
               <telerik:GridViewDataColumn MinWidth="135" DataMemberBinding="{Binding Value, Mode=TwoWay, ValidatesOnDataErrors=False, UpdateSourceTrigger=PropertyChanged}" Header="{x:Static loc:Resources.Value}" CellEditTemplateSelector="{StaticResource CellEditTemplateSelector}" CellTemplateSelector="{StaticResource CellEditTemplateSelector}" />
               <telerik:GridViewDataColumn DataMemberBinding="{Binding Interpr}" IsFilterable="False" Header="{x:Static loc:Resources.Unit}" IsReadOnly="True"  TextAlignment="Center" />
               <telerik:GridViewDataColumn DataMemberBinding="{Binding ValueNrMin}" IsFilterable="False" Header="{x:Static loc:Resources.Min}" IsReadOnly="True"  TextAlignment="Center" />
               <telerik:GridViewDataColumn DataMemberBinding="{Binding ValueNrMax}" IsFilterable="False" Header="{x:Static loc:Resources.Max}" IsReadOnly="True"  TextAlignment="Center" />
               <telerik:GridViewColumn Header="{x:Static loc:Resources.DefaultValue}" IsReadOnly="True"  >
                   <telerik:GridViewColumn.CellTemplate>
                       <DataTemplate>
                           <TextBlock TextAlignment="Center" Visibility="{Binding IsDefaultValueVisible, Converter={StaticResource visToBoolConv}}">
                               <Hyperlink Foreground="{StaticResource MetroYellow03 }" Command="{Binding DefaultCommand}" ToolTip="{x:Static loc:Resources.ResetToDefault}">
                                   <Run>
                                       <Run.Style>
                                           <Style  TargetType="{x:Type Run}">
                                               <Style.Setters>
                                                   <Setter Property="Text" Value="{Binding DefaultValueString, Mode=OneWay}" />
                                                   
                                               </Style.Setters>
                                               <Style.Triggers>
                                                   <DataTrigger Binding="{Binding DefaultValueString, Mode=OneWay}" Value="">
                                                       <Setter Property="Text" Value="{x:Static loc:Resources.EmptyString}" />
                                                   </DataTrigger>
                                               </Style.Triggers>
                                           </Style>
                                       </Run.Style>
                                   </Run>                                   
                               </Hyperlink>                               
                           </TextBlock>
                       </DataTemplate>
                   </telerik:GridViewColumn.CellTemplate>                   
               </telerik:GridViewColumn>               
               </telerik:RadGridView.Columns>         
           <telerik:RadGridView.GroupDescriptors>
               <telerik:ColumnGroupDescriptor Column="{Binding Columns[\GroupColumn\], ElementName=radGridView}" SortDirection="Ascending" />
           </telerik:RadGridView.GroupDescriptors>
       </telerik:RadGridView>

Yoan
Telerik team
 answered on 19 Jun 2014
8 answers
219 views
How can I set the background color to the Pivot field selection list to a color other than white. For example if I use the OFFICE2013 Theme and set my  window background to black and foreground to white (we need a white on black effect) then the Pivot grid field select list has a white background and white foreground hence the fields disappear. How can I change the color of JUST the field select list (i.e. the control titled 'Choose fields to add to report') to something other than white. The 4 select lists at the base of the screen style correctly i.e. a black background and white foreground)

Thank you
Masha
Telerik team
 answered on 19 Jun 2014
3 answers
1.6K+ views
I am trying to find a way to change the background color of JUST THE TABITEM HEADER - i.e. the background color of the control you click to change tabs. I have managed to change every other background and foreground color of every control using styles with the notable exception of this one.

Can someone please tell me the secret to achieve - any code examples would be appreciated

Evgenia
Telerik team
 answered on 19 Jun 2014
3 answers
265 views
What's the best way of disabling the ability for viewers/users to add relations between tasks?

Is there a way of doing it similar to disabling drag-and-drop/resizing?  (over-wrote CanStartDrag, CanDrop, CanStartResize, CanResize, etc)
Polya
Telerik team
 answered on 19 Jun 2014
2 answers
116 views
With GridViewHeaderMenu.IsEnabled="true" settings, I always get all the columns in the context-menu at right click of header for hide/show. But I would want, not to display a column that I am keeping visible=false always. How to do that. Your help would be greatly appreciated.
Yoan
Telerik team
 answered on 19 Jun 2014
1 answer
99 views
Hi,

I was wondering if it were possible to place MapLine controls into a different UserControl.
In other words, I want to separate the radMap control from the MapLine controls by using a UserControl.
So I would have a parent containing the map and a child containing the lines:

ParentUserControl
<InformationLayer>
<Views:
ChildUserControl/>
<InformationLayer/>


ChildUserControl
<MapLine Point="0,0" Point2="10,10"/>

Unfortunately, it doesn't seem to work at all... Any ideas what might be the best solution?

Thank you,
Alexis
Andrey
Telerik team
 answered on 19 Jun 2014
1 answer
147 views
Hi,

I am trying to implement dragging & dropping  HTML table to Microsoft word document.

It is a WPF application where I am dragging a RadListBox item to word and if I am setting data objects type to "Text" then plain text is getting dropped in MS word document.  
var payload = DragDropPayloadManager.GeneratePayload(null);
payload.SetData("Text", "I am a plain text");

But my requirement is to drag and drop formatted text (with background, border, different font color).

Please advise.
Kalin
Telerik team
 answered on 19 Jun 2014
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
SplashScreen
Rating
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
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?