Telerik Forums
UI for WPF Forum
20 answers
2.0K+ views
Hi,

This is not working on hower and selecteded row. I don't want the fance Telrik selection...

 <Style x:Key="myRowStyle" TargetType="telerik:GridViewRow"
 
            <Setter Property="Background"  Value="#474747"/> 
            <Setter Property="Foreground"  Value="#cecece"/> 
 
            <Style.Triggers> 
                    <Trigger Property="IsSelected" Value="True"
                        <Setter Property="Background"  Value="#a9d9ff"/> 
                        <Setter Property="Foreground"  Value="Black"/> 
                </Trigger> 
                    <Trigger Property="IsMouseOver" Value="True"
                        <Setter Property="Background"  Value="#474747"/> 
                        <Setter Property="Foreground"  Value="White"/> 
                </Trigger> 
                </Style.Triggers> 
            </Style> 

I also have alternete row color

<telerik:RadGridView Background="#474747" Foreground="#cecece"  AlternationCount="2" AlternateRowBackground="#FF313131" RowStyle="{StaticResource myRowStyle}"

How shall I do..?

Kind Regards
Kennet
Yoan
Telerik team
 answered on 31 Jan 2019
3 answers
141 views
I have a GridView using grouping. If I maximize window at start, there is no problem. However, if I scroll down, then maximize window, the header expands but not the row area itself, but the scroll bar disappears. Restoring window returns state back to normal, and if I scroll back to top, then maximize everything is ok
Dinko | Tech Support Engineer
Telerik team
 answered on 31 Jan 2019
2 answers
158 views

Hi,
I am facing problem in scaling with runtime text defined on telerik diagram.

I am attaching a sample project as well, it has associated font [EnterCommand].

Problem is scaling inconsistency done for runtime text definition.

You can also see video here [https://www.screencast.com/t/2iR20HifiOXz]

 

You can download sample project here [http://ge.tt/6SWf2Du2]

Enviornment: Windows 10, 125 % scaling recommended.

Let me know if any thing missing.

Thanks.

Petar Mladenov
Telerik team
 answered on 30 Jan 2019
4 answers
159 views

Hello

I want to use RadDocking in my application, but I have a problem with its animation. The opening of an element is smooth. However, closing it behaves strangely. It goes first smoothly, but then you see a short flicker and it disappears halfway. How do I make the closing process as smooth as opening?

Regards,
Alex

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 30 Jan 2019
7 answers
136 views

Hi, I'm using the Breadcrumb tool to display a folder path in a WPF MVVM app.

It all seems to work apart from whent he form is initially loaded...

The UI/form is a usercontrol that constructs it's ViewModel via the extended property

prism:ViewModelLocator.AutoWireViewModel="True"

(I'm using the Prism framework)

The BreadCrumb is bound to a couple of properties in the ViewModel..

      <telerik:RadBreadcrumb Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" x:Name="FolderPath"
                             ItemsSource="{Binding ImportSourceRoot.Children}"
                             HeaderMemberPath="Header"
                             HierarchicalItemsSource="Children"
                             HierarchicalMemberPath="Header"
                             HorizontalAlignment="Stretch"
                             IsLinearMode="False"
                             Path="{Binding ImportPath, Mode=TwoWay}"
                             TextModePath="Path"
                             IsTextModeEnabled="True"
                             VerticalAlignment="Top"
                             />

The ImportSourceRoot property is a nested set of classes with the properties: Children (Observable list of more classes), Path (Folder name or drive letter, 'C:' for example) and Header (similar to Path but also annotated for the drop down).

ImportPath is simply a string property backed by a private variable.

As I said it all seems to work once started, navigation works via drop downs or typing, a pasting a path in works.  The issue is when the form loads.

I initialise the ImportPath.  It seems to start ok in that the displayed 'crumbed' path looks like the initial path, but the actual text path contains the path concatenated on itself.  For example, "C:\temp\data" becomes "C:\temp\data\C:\temp\data" ?

I've monitored the string variable on start up and it gets read then written back in steps ....

"C:\temp\data\C:" -> "C:\temp\data\C:\temp" -> "C:\temp\data\C:\temp\data"

Any ideas?

It's not fatal but is annoying!

Thanks

 

Gregor

 

 

 

T

 

Vladimir
Top achievements
Rank 1
 answered on 30 Jan 2019
1 answer
381 views

Hello,

How can i bind visibility property of a textbox to  a selecteditem of AutocompleteBox (with NullToVisibilityConverter) in Wpf? This code dont work.

......

.....

 <telerik:RadButton Grid.Column="1"
                                                   HorizontalAlignment="Right"
                                                   Visibility="{Binding Path=SelectedItem, ElementName=RadAutoCompleteBox1, Converter={StaticResource NullToVisibilityConverter}}"
                                                   Command="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=UserControl}, Path=DataContext.Add}"
                                                   CommandParameter="{Binding Path=.}">
                                    <Image Source="{framework:ApplicationImage ImageX}" Height="16" Width="16"/>
                                </telerik:RadButton>

....

....

 

 <telerik:GridViewDataColumn.CellEditTemplate>
                        <DataTemplate >
                            <telerik:RadAutoCompleteBox DisplayMemberPath="Name"
                                                        TextSearchMode="Contains"
                                                        SearchText="{Binding Path=Name, Mode=TwoWay}"
                                                        AutoCompleteMode="Suggest"
                                                        SelectionMode="Single"        
                                                        VerticalAlignment="Center"
                                                        BoxesItemStyle="{StaticResource RadAutoCompleteBoxStyle}"
NoResultsContentTemplate="{StaticResource
RadAutoCompleteBoxNoResultsContentTemplate}"
                                                        NoResultsContent="{x:Static resources:Translations.lbl_NoMatches}"
ItemsSource="{Binding Path=DataContext.Project.Names,
RelativeSource={RelativeSource AncestorType=telerik:RadGridView}}">

                                <i:Interaction.Triggers>
                                    <i:EventTrigger EventName="LostFocus">
<i:InvokeCommandAction 
Command="{Binding RelativeSource={RelativeSource FindAncestor,
AncestorType=UserControl},
Path=DataContext.NewNameEnteredCommand}"
                                                                CommandParameter="{Binding Path=.}"/>
                                    </i:EventTrigger>
                                </i:Interaction.Triggers>
                            </telerik:RadAutoCompleteBox>
                        </DataTemplate>

                    </telerik:GridViewDataColumn.CellEditTemplate>

Dinko | Tech Support Engineer
Telerik team
 answered on 30 Jan 2019
1 answer
129 views

Hello,

I have a question regarding autocompletebox component. I would like to display an icon right at the cell textbox in GridView if the entered value is not present in the itemsource. Can one solve this over binding? Which is the best way to do that?


                    <telerik:GridViewDataColumn.CellEditTemplate>
                        <DataTemplate >
                            <telerik:RadAutoCompleteBox DisplayMemberPath="Name"
                                                        TextSearchMode="Contains"
                                                        SearchText="{Binding Path=Name, Mode=TwoWay}"
                                                        AutoCompleteMode="Suggest"
                                                        SelectionMode="Single"        
                                                        VerticalAlignment="Center"
                                                        BoxesItemStyle="{StaticResource RadAutoCompleteBoxStyle}"
NoResultsContentTemplate="{StaticResource
RadAutoCompleteBoxNoResultsContentTemplate}"
                                                        NoResultsContent="{x:Static resources:Translations.lbl_NoMatches}"
ItemsSource="{Binding Path=DataContext.Project.Names,
RelativeSource={RelativeSource AncestorType=telerik:RadGridView}}">

                                <i:Interaction.Triggers>
                                    <i:EventTrigger EventName="LostFocus">
<i:InvokeCommandAction 
Command="{Binding RelativeSource={RelativeSource FindAncestor,
AncestorType=UserControl},
Path=DataContext.NewNameEnteredCommand}"
                                                                CommandParameter="{Binding Path=.}"/>
                                    </i:EventTrigger>
                                </i:Interaction.Triggers>
                            </telerik:RadAutoCompleteBox>
                        </DataTemplate>

                    </telerik:GridViewDataColumn.CellEditTemplate>
Dinko | Tech Support Engineer
Telerik team
 answered on 30 Jan 2019
1 answer
225 views

One of  my customers becomes some  times scanned documents, where black and white are exchanged(whinte fonts on black background). Other software displays documents  correct (for example Edge or PDFXchange Viewer). I have figured out that those documents are created with PDF24 programm. Unfortunatly i can not  give you an example because they contains businis secrets and personal information of other peaple.  Could you perhaps help me to fix this behaviour.

 

I examen one Document structure with itext rups. It seems that embeded Pictures are realy with swaped colors. Perhaps I have to Config Control right way to display Document correctly. I use default PdfViewer  settings.

Tanya
Telerik team
 answered on 30 Jan 2019
0 answers
123 views

It is due to the font telerikwebui if invalid format on Windows XP.

You can create a project by wizard, and select Them office 2016, then the result .exe will failed to run on Windows XP.

Xiaroun
Top achievements
Rank 1
 asked on 30 Jan 2019
1 answer
195 views

I'm trying to modify a ComboBox to display items in the dropdown in a specific order. I would like all items that start with the search text displayed first, followed by any items that have a word that starts with the search text and finally all items that contain the search text anywhere in the string.

I was able to do this with an AutoCompleteBox by implementing a custom FilteringBehavior. I tried to do the same on the ComboBox by implementing a custom ComboBoxFilteringBehavior, but no matter what order I return the matching indices in, they always get displayed to the user in the order they appear in the ItemsSource.

Is there any way to change the order in which matched items are displayed in the dropdown?

Thank you!

Martin Ivanov
Telerik team
 answered on 29 Jan 2019
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
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
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
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?