Telerik Forums
UI for WPF Forum
3 answers
149 views

Is it possible to change the labels of the different filtering options in a RadGrid?

Specifically, I wanted to change & shorten the words for 'is greater than or equal to'.

I wanted to change this to '>='  just for shorthand.

Can I do this without having to completely customize the control?

I want all the functionality to be exactly the same -- just not the labels.

 

Thanks!

 

David

Dinko | Tech Support Engineer
Telerik team
 answered on 14 Nov 2017
1 answer
219 views

Hi,

I am using RadAutoCompleteBox in one of my WPF application. I am facing an issue when typing any text on it  -  the cursor displayed on the beginning of the entered character and text displays in reverse order. For example, if I type "ABC" , control displays it as "CBA" and the cursor will be displayed on the beginning of the text. If type any letter next, it will be displayed before the previously entered text. I could not find why this is happening. Please suggest me how to fix it.

Code used in XAML is as below:

<telerik:RadAutoCompleteBox Name="Sec4AutoCompleteBox" 
                                                                                IsEnabled="{Binding IsLine4Editmode,UpdateSourceTrigger=PropertyChanged}"  HorizontalContentAlignment="Left" VerticalContentAlignment="Center"
                                                                                FontFamily="Arial" Foreground="#525252"
                                                                                Margin="0,0,0,5" FontSize="16" FontWeight="Bold"
                                                                                MinHeight="26" MaxHeight="30"  Width="450"
                                                                                BorderThickness="1"
                                                                                BorderBrush="LightGray"
                                                                                SelectionMode="Single"
                                                                                telerik:StyleManager.Theme="Windows8"
                                                                                AutoCompleteMode="Suggest"
                                                                                SearchText="{Binding Sec4MeetAtText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                                                                SelectedItem="{Binding Sec4MeetAt, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                                                                ItemsSource="{Binding Sec4Location}"   >
                                                        <telerik:RadAutoCompleteBox.TextBoxStyle>
                                                            <Style TargetType="TextBox"   BasedOn="{StaticResource TextBoxStyle}">
                                                                <Setter Property="MaxLength" Value="30"/>
                                                            </Style>
                                                        </telerik:RadAutoCompleteBox.TextBoxStyle>
                                                    </telerik:RadAutoCompleteBox>

Martin Ivanov
Telerik team
 answered on 14 Nov 2017
1 answer
387 views

Is there a way to refresh the Data when the Grid Changes without setting the itemsource to null and then setting it to the list?

I find doing this resets row and column collapsing.

Or can I bind the PivotGrid directly to an ObservableCollection without using the LocalDataSourceProvider?

 

Thanks in Advance

 

 

Martin Ivanov
Telerik team
 answered on 14 Nov 2017
4 answers
362 views
Hi, 

Im working on a WPF application using the RadRibbonView. Our workflow is such that we would like the BackStage to be displayed open when the app is first launched so the user can choose to create a new project or open an existing one.

We have set 'IsBackStageOpen' to true in the XAML of the RadRibbonView, and the BackStage is displayed on load. However, it is not possible to interact with it. Clicking on a BackStageItem or anywhere closes the backstage and the users action is lost. Im not able to upload the project, however this is the XAML:

<Window x:Class="RibbonViewBackstageOpen.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
Title="MainWindow" Height="350" Width="525">
<Grid x:Name="RootGrid">
      <Grid.RowDefinitions>
        <RowDefinition Height="Auto" />
        <RowDefinition Height="*" />
      </Grid.RowDefinitions>

<!-- Backstage defaults to Open -->
      <telerik:RadRibbonView x:Name="ribbonView"
          ApplicationName="TEST" Title="TEST" IsBackstageOpen="True" BackstageClippingElement="{Binding ElementName=RootGrid}">
        <telerik:RadRibbonTab Header="Test">
                <telerik:RadRibbonGroup Header="Test">
                    <telerik:RadRibbonButton Content="Test" />
                </telerik:RadRibbonGroup>
            </telerik:RadRibbonTab>
        <telerik:RadRibbonView.Backstage>
          <telerik:RadRibbonBackstage>
          <telerik:RadRibbonBackstageItem Header="Save" IsSelectable="True"/>
          <telerik:RadRibbonBackstageItem Header="Open" IsSelectable="True"/>
          </telerik:RadRibbonBackstage>
        </telerik:RadRibbonView.Backstage>
        </telerik:RadRibbonView>
    </Grid>
</Window>

If it is possible, what is the correct way to automatically display the backstage when an application is first run?

Thanks
Ian
David
Top achievements
Rank 1
 answered on 13 Nov 2017
1 answer
89 views

Hello,

I followed the link to create a tooltip. Now the question is I am not sure how to place the tooltip. If I use barseries, when I hover the mouse. The tooltip is inside the bar. But I want it is just above the bar. 

Martin Ivanov
Telerik team
 answered on 13 Nov 2017
1 answer
167 views

Hi,  

I'm testing ui for WPF and one of the most important issues for me is if it is possible to  set different time units for timeline than timedate? For instance seconds or frames or any other custom  unit?

 

MK

 

Martin Ivanov
Telerik team
 answered on 13 Nov 2017
2 answers
709 views

I have a window with a TabControl that has three TabItems. This TabControl is the main control in the window, and I want to size the window based on this TabControl.

If I set SizeToContent="WidthAndHeight" on the window, the window changes size when I select a tab which has content that takes more area. I want the window to start at a fixed size based on the TabItem that will take the largest amount of space. This is not the starting tab.

A TabItem's ActualWidth is the width of the button. The content of an inactive TabItem (a grid) has an ActualWidth of 0 and a Width of NaN because it is not being displayed.

How can I set the window to a fixed size based on the content of the largest TabItem, which is not selected? This would preferably happen at Window_Loaded or Window_ContentRendered.

Nathan
Top achievements
Rank 1
 answered on 13 Nov 2017
1 answer
209 views

I've got the following radgridview control with a default sort descriptor on it:

<telerik:RadGridView x:Name="rgvMain" VerticalAlignment="Top" AutoGenerateColumns="False" CanUserResizeRows="False" CanUserInsertRows="False" CanUserSortGroups="False" ShowGroupPanel="False"
                        RowIndicatorVisibility="Collapsed" ItemsSource="{Binding CurrentActivities}" Visibility="{Binding CurrentActivitiesVisibility}">
       <telerik:RadGridView.Columns>
         <telerik:GridViewDataColumn DataMemberBinding="{Binding DateAndTimeLogged}" Header="Date Logged" UniqueName="LogDate" Width="Auto" IsReadOnly="True" />
         <telerik:GridViewDataColumn DataMemberBinding="{Binding TypeDescription}" Header="Type" UniqueName="TypeDescription" Width="Auto" IsReadOnly="True"/>
         <telerik:GridViewDataColumn DataMemberBinding="{Binding ActivityStudent.FullName}" Header="Student" UniqueName="StudentName" Width="Auto" IsReadOnly="True" />
         <telerik:GridViewDataColumn DataMemberBinding="{Binding ActivityStudent.Family.Name}" Header="Family" UniqueName="FamilyName" Width="Auto" IsReadOnly="True"/>
         <telerik:GridViewDataColumn DataMemberBinding="{Binding ActivityText}" Header="Report" UniqueName="Report" Width="Auto" IsReadOnly="True"/>
       </telerik:RadGridView.Columns>
       <telerik:RadGridView.SortDescriptors>
         <telerik:ColumnSortDescriptor Column="{Binding Columns[LogDate], ElementName=rgvMain}" SortDirection="Descending"/>
       </telerik:RadGridView.SortDescriptors>
     </telerik:RadGridView>

 

The ItemsSource is bound to:

public ObservableCollection<Activity> CurrentActivities
{
  get { return new ObservableCollection<Activity>(Utils.AllActivities.Where(x => x.LoggedUser == Utils.glbCurrentlyLoggedInUser)); }
}

 

Whenever the usercontrol is first loaded - the sortdescriptors work, but then any future loads of the usercontrol, the sortdescriptors/filters get lost - I've tried adding a Rebind to the GV on the usercontrol loaded but this doesn't make a difference.

Martin
Telerik team
 answered on 13 Nov 2017
15 answers
500 views
Hi,

We are looking for a control which we can use for searching through multiple columns in a combo box. Use case is...as user types into the combo box, the data in the combo box should be auto filtered and when user selects a row using up/down keys and press enter, current row should be selected.

I can see that Telerik has a similar control for winforms but I am wondering if we have similar control for WPF too.

In our application we uses controls from 2 different vendors, where one vendor is telerik. I will check the availability of the similar control with other vendor too. But if Terelik can provide us such a inbuild control then it will be easy for us to move to Telerik only controls in future.

Thanks,
SK
Bent
Top achievements
Rank 1
 answered on 13 Nov 2017
1 answer
131 views

Hi,

 

We started toreplace our controls by telerik ones and noticed that the combobox wasn't getting the background of the theme we are using (Office 2016). It was keeping a gray gradient background.

 

After some investigation with the XAML forTelerik.Windows.Control.Input, the style for NonEditableComboBox consists of a grid with two borders and a RadToggleButton inside of it.

 

After some investigation, I noticed that adding the following lines to the toggle fixed my problem:

Background="{TemplateBinding Background}"
Height="{TemplateBinding Height}"

(Height had to be added for the highlight border as well)

Is this a bug? Or the expected behavior is that when using a RadComboBox the developer wont be able to get the background from the theme or be able to set the height?

Thanks!

 

 

 

Martin
Telerik team
 answered on 13 Nov 2017
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?