Telerik Forums
UI for WPF Forum
1 answer
718 views

I have a GridViewToggleRowDetailsColumn in the RadGridView. Now I want two things.

  1. Using down-arrow and up-arrow instead of plus and minus icon. The down-arrow is attached.
  2. I want the icon stick on the top. Now it is in the middle vertically.

Thanks for the sample code help.

 

Martin
Telerik team
 answered on 16 Feb 2018
11 answers
756 views
Greetings,

Today, we upgraded from the Q3/2010 controls to the Q2/2011 controls on our application. For the most part, everything upgraded without any problems. However, there's one discrepancy that has me stumped. I'm not sure about the best way to resolve this, so i wanted to get your help.

To illustrate the problem, I have a very simple RadGridView defined. The second column has a Background of "GhostWhite":

<Telerik:RadGridView x:Name="GridView" AutoGenerateColumns="False" Width="500" Height="500">
     <Telerik:RadGridView.Columns>
          <Telerik:GridViewDataColumn UniqueName="DateTime" Header="Date/Time"
               DataMemberBinding="{Binding DateTime}" IsReadOnly="True"
               DataType="{x:Type System:DateTime}" IsFilterable="True" />
          <Telerik:GridViewDataColumn UniqueName="Value" Header="Value"
               Background="GhostWhite" DataMemberBinding="{Binding Value}"
               DataType="{x:Type System:Decimal}" IsFilterable="True" />
            </Telerik:RadGridView.Columns>
        </Telerik:RadGridView>

When I populate my grid with items, the cells in the second column are missing the left side of their border. If I remove the Background attribute on the second column the cell's left side is back and looks just fine.

I was able to use Expression Blend/WPF Inspector to locate the "PART_CellBorder" border. It looks like the BorderThickness here may not account for the left side.

Is this by design? Is there are work around?

Thanks!
Stefan
Telerik team
 answered on 16 Feb 2018
2 answers
96 views

When I'm opening a RadCombobox, focus an item with the mouse, moving the mouse pointer out of the Combobox and thus loosing the focus, SelectionChanged is fired when I'm pressing the Enter key. I'd expect that no item would be selected in this case since no item is visibly highlighted, but instead an item gets selected (probably the item that was highlighted last by moving the mouse pointer).

Is this behavior intended?

Michael
Top achievements
Rank 1
 answered on 16 Feb 2018
2 answers
119 views

Hello there,

I am using the TimeSpanPicker within a ListBox ItemTemplate. I am changing the watermark. This works prefectly outside the template but when in a template does not work at all , my string is ignored and the default is used. I have also tried to use DynamicResource but found the same issue.

I have made a very simple project which highlights the issue, it uses the latest UI for WPF from the website.

It can be found here : https://www.dropbox.com/s/3ijhj346w0pjg1f/Telerik%20bug.zip?dl=0 

Also attached a screenshot showing the program running.

Thanks,

Martin

Martin
Top achievements
Rank 2
 answered on 16 Feb 2018
1 answer
236 views
I have two views.  One with a RadGridView, the other with a RadListBox.  They both have the same view model, and same ItemsSource.  I followed the ListBox Grouping and Filtering example.  When I have a collection of 2000 items, grouping is noticeably slower in the RadListBox than the RadGridView, i.e. 4 times slower, even when the RadListBox's ItemTemplate contains just a TextBlock.  Any idea why this is, and how to speed up grouping in the RadListBox?  Thanks.
gordon
Top achievements
Rank 1
 answered on 15 Feb 2018
1 answer
141 views

Hi,

Teleriks outdated documenation caused me, again, to lose some time finding solution.

https://docs.telerik.com/devtools/wpf/controls/radcontextmenu/how-to/use-radcontextmenu-with-radgridview

Here is implementation of RadContextMenu for RadGridView, step-by-step guide is clear and explains everything. But menu implemented in this way to my app didn't work. There is important property, not present in documentation:

BasedOn="{StaticResource RadMenuItemStyle}"

wwich changes Example 4

<Style x:Key="MenuItemContainerStyle" TargetType="telerik:RadMenuItem">
    <Setter Property="Header" Value="{Binding Text}"/>
    <Setter Property="ItemsSource" Value="{Binding SubItems}"/>
    <Setter Property="IsEnabled" Value="{Binding IsEnabled}"/>
</Style>

to

 

<Style x:Key="MenuItemContainerStyle"
                   TargetType="telerik:RadMenuItem"
                   BasedOn="{StaticResource RadMenuItemStyle}">
                <Setter Property="Header"
                        Value="{Binding Text}" />
                <Setter Property="ItemsSource"
                        Value="{Binding SubItems}" />
                <Setter Property="IsEnabled"
                        Value="{Binding IsEnabled}" />
            </Style>

 

Please, update your documentation to save others time. 

 

Best Regards,

Mateusz

 

Vladimir Stoyanov
Telerik team
 answered on 15 Feb 2018
1 answer
184 views

I'd love to see this implemented, it would be a natural.

Thanks in advance,
Steve

Stefan
Telerik team
 answered on 15 Feb 2018
3 answers
159 views

Is is possible to create bar scale as in the attached image?

Currently I have done it this way:

<Border
    Background="#FF1B1B1F"
    CornerRadius="24">
    <telerik:RadVerticalLinearGauge telerik:StyleManager.Theme="Green">
        <telerik:VerticalLinearScale MajorTickBackground="DeepSkyBlue" MiddleTickBackground="DeepSkyBlue" MinorTickBackground="DeepSkyBlue" MajorTickOffset="-10" MiddleTickOffset="-10" MinorTickOffset="-10" Min="0" Max="100" LabelLocation="Inside" MajorTickLocation="Inside" MinorTickLocation="Inside" MiddleTickLocation="Inside" MiddleTicks="2" MinorTicks="1" LabelFormat="{}{0:F0} %" FontSize="20" Foreground="#FF9EABAA" Fill="{x:Null}">
                <telerik:VerticalLinearScale.Indicators>
                    <telerik:BarIndicator BorderBrush="{x:Null}" Value="100" Background="#FF323232"/>
                    <telerik:BarIndicator BorderBrush="{x:Null}" Value="70" Background="DeepSkyBlue"/>
                </telerik:VerticalLinearScale.Indicators>
        </telerik:VerticalLinearScale>
    </telerik:RadVerticalLinearGauge>
</Border>

 

I cannot change the width of either the VerticalLinearScale or the BarIndicator objects. So to accomplish what I want, I hid the scale object and added two indicators. The first is the "base color" and the second the actual value indicator. In the end it's just rendering objects, but is there a better way to do this? Not the biggest fan of these "bubble gum solutions".

Also, is there a way to align the whole thing center? So that the bar scale and the tick labels together are always in the center during resizing. I would prefer not to use Padding. Currently there's wasted empty space on the left which makes the whole thing larger than it should be.

And is there a way to round the bar scale itself? Currently I'm rounding the border object, but when the whole thing is resized small enough, the bar scale's sharp corners start to render outside the border's rounder corners.

Sia
Telerik team
 answered on 15 Feb 2018
4 answers
125 views

I can't seem to get rid of the extra space around RadVerticalLinearGauge. Is this a bug or am I missing a property?

Try this code:

<Grid>
    <Border Background="#FF1B1B1F" CornerRadius="0">
        <telerik:RadVerticalLinearGauge OuterBorderThickness="0" OuterBorderBrush="Green" Background="Red" telerik:StyleManager.Theme="Green">
            <telerik:VerticalLinearScale MajorTickBackground="DeepSkyBlue" MiddleTickBackground="DeepSkyBlue" MinorTickBackground="DeepSkyBlue" MajorTickOffset="-10" MiddleTickOffset="-10" MinorTickOffset="-10" Min="0" Max="100" LabelLocation="Inside" MajorTickLocation="Inside" MinorTickLocation="Inside" MiddleTickLocation="Inside" MiddleTicks="2" MinorTicks="1" LabelFormat="{}{0:F0} %" FontSize="20" Foreground="#FF9EABAA" Fill="{x:Null}">
                <telerik:VerticalLinearScale.Indicators>
                    <telerik:BarIndicator BorderBrush="{x:Null}" Value="100" Background="#FF323232"/>
                    <telerik:BarIndicator BorderBrush="{x:Null}" Value="70" Background="DeepSkyBlue"/>
                </telerik:VerticalLinearScale.Indicators>
            </telerik:VerticalLinearScale>
        </telerik:RadVerticalLinearGauge>
    </Border>
</Grid>

 

There is a black extra space around the red gauge object. Margin is 0 so that's not the culprit. I added OuterBorderThickness and OuterBorderBrush for demonstration purpose. If I set OuterBorderThickness to 10 the green border is drawn over the black area. Not sure if they are related but something to start with.

Shouldn't the red area fill the entire border object with the above property values? Especially if you remove both OuterBorderThickness and OuterBorderBrush property values from the code.

 

 

Sia
Telerik team
 answered on 15 Feb 2018
1 answer
151 views

In my application I bind the value of a textbox to properties of the selected item of a grid.

When do something like (note: grdParts is defined elsewhere and has the default SelectionUnit = FullRow)

<TextBox Text="{Binding ElementName=grdParts, Path=SelectedItem.OrderCode}" />

the error list shows the error 'SelectedItem' is not accessible. But the application compiles fine and works as intended. My biggest problem is that these 'fake' errors obscure real problems.

A while ago I tackled this problem by adding the ElementName in the Path, but recently (because I updated to the newest Telerik version?) this stopped working, so I had to revert back to this way of binding.

What is wrong with this binding?

Boardy
Top achievements
Rank 2
Veteran
Iron
 answered on 15 Feb 2018
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
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?