Telerik Forums
UI for WPF Forum
1 answer
492 views

At the moment, validation only appears when you hover over the cell that didn't pass validation. Is there a way to show the validation without the mouse hovering? 

 

http://i.imgur.com/zvWqKn6.png

 

 

Dilyan Traykov
Telerik team
 answered on 21 Mar 2017
3 answers
132 views
Hi,

We would like to change the format of this display from Degrees Minutes and seconds to Degrees Minutes and decimals of a minute.

i.e. 51 21 30.00 N would become 51 21.500 N

Without rebuilding the assembly how can this be accomplished?

Regards

John
  
Petar Mladenov
Telerik team
 answered on 21 Mar 2017
2 answers
692 views

Hi,

I have some problems in building a radGridView with radiobutton inside in XAML. You can see the attached image to have an idea of what I'm doing.

I have a grid that contains a list of "container" (they could be one, 2 or more). So every row has a plate(with an id) and 2 radio button (ground - Upper). I retrieve the value of these radiobutton from the DB. Radio button Ground is selected when the variable IsUtiInDoubleStakerHold == 0. If IsUtiInDoubleStakerHold == 1radiobutton Upper has to be selected; if radiobutton Ground is selected, radiobutton Upper cannot be selected and vice versa. For every row I need to select a radio button, and then I have to save the value eventually modified. How can I do this? Actually with this code if I do a choice of a value in the first row, then when I make a selection on the second row, I lost the value of the radiobutton selected in the first row (I can't see anymore the selection done before).

How can i solve this problem? 

After that, how can I maintain the value changed in every row? (I hope to save everything in the object  public ObservableCollection<ItuForYard> ItusSameGroupList)

The xaml RadGridView is defined in this way:

01.<StackPanel Grid.Row="3" >
02.<telerik:RadGridView
03.     SelectedItem="{Binding SelectedItu, Mode=TwoWay}"
04.      ShowColumnSortIndexes="False"
05.          ItemsSource="{Binding ItusSameGroupList, Mode=TwoWay}"                           
06.      Visibility="{Binding GridItusSameGroupVisibility}"
07.       Margin="0,10,0,10" >
08.  <telerik:RadGridView.Columns>
09.       <telerik:GridViewDataColumn t:I18N.Translate="ITU Id"
                                            DataMemberBinding="{Binding UtiId}" Width="0" IsVisible="False" />
10.       <telerik:GridViewDataColumn t:I18N.Translate="ITU Plate"
                                            DataMemberBinding="{Binding UtiPlate}"       Width="4*" />
11.      <telerik:GridViewDataColumn t:I18N.Translate="Ground" Width="3*">
12.         <telerik:GridViewDataColumn.CellTemplate>
13.             <DataTemplate>
14.                <RadioButton GroupName="GroundUpper" Content="{Binding RadioButtonGround}"  
               HorizontalAlignment="Center"
IsChecked="{Binding RadioButtonGroundIsChecked,                                                                           Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                IsEnabled="{Binding IsGroundUpperRadioButtonEnabled}" />
18.             </DataTemplate>
19.        </telerik:GridViewDataColumn.CellTemplate>
20.     </telerik:GridViewDataColumn>
21.     <telerik:GridViewDataColumn t:I18N.Translate="Upper"
                                DataMemberBinding="{Binding IsUtiInDoubleStakerHold}" Width="3*">
22.       <telerik:GridViewDataColumn.CellTemplate>
23.          <DataTemplate>
24.             <RadioButton GroupName="GroundUpper" Content="{Binding RadioButtonUpper}"
25.         HorizontalAlignment="Center"
26.          IsChecked="{Binding RadioButtonUpperIsChecked, Mode=TwoWay,    
               UpdateSourceTrigger=PropertyChanged}"
27.          IsEnabled="{Binding IsGroundUpperRadioButtonEnabled}" />
28.          </DataTemplate>
29.      </telerik:GridViewDataColumn.CellTemplate>
30.    </telerik:GridViewDataColumn>
31.  </telerik:RadGridView.Columns>
32.</telerik:RadGridView>
33.</StackPanel>

 

In the cs file:

public bool IsGroundUpperRadioButtonEnabled => SelectedItu != null &&
                                                        SelectedItu.IsUtiInDoubleStakerHold != 2;
        public Visibility GridItusSameGroupVisibility => SelectedItu != null ? Visibility.Visible : Visibility.Collapsed;
        public bool RadioButtonGroundIsChecked => SelectedItu != null && SelectedItu.IsUtiInDoubleStakerHold == 0;
        public bool RadioButtonUpperIsChecked => SelectedItu != null && SelectedItu.IsUtiInDoubleStakerHold == 1;

 public ObservableCollection<ItuForYard> ItusSameGroupList { get; set; } = new ObservableCollection<ItuForYard>();

 

Then I populate the list of container with the result from the DB

 ItusSameGroupList = new ObservableCollection<ItuForYard>(ituResponse.Result);

Stefan Nenchev
Telerik team
 answered on 21 Mar 2017
1 answer
136 views
In my WPF application, I want to customize the content(or list of actions) of RadRibbonDropDownButton just at the end of QuickAcesstoolbar. If I use a simple RadRibbonView class for my Ribbon control and use DropDownOpened event to capture the event and write my code there, it is working fine. Everytime I click on the RadRibbonDropDownButton icon, the event is triggered and everything is perfect.
But the problem arises as I am using a class CustomRibbonView : RadRibbonView [CustomRibbonView is derived from RadRibbonView]. I HAVE NOT written any specific code for Quick Aceess Toolbar in this class [Am I missing a trick here?]. Now in the MainWindow.xaml.cs file in RibbonBar.Load event I have suscribed to DropDownOpened event. Please refer below:-

Now when the application is loaded for first time and I click on the RadRibbonDropDownButton icon in QAToolBar, ther suscribed event is fired and everything is fine. If I click on the first item i.e. "Show Below The Ribbon" and the toolbar goes below the ribbon as expected. But now if I click on the RadRibbonDropDownButton icon again, the event DropDownOpened is not fired and it is not fired anytime after. 
Could not figure it out.
Tanya
Telerik team
 answered on 20 Mar 2017
1 answer
336 views

RadRibbonView how can I merge it with the Windows top bar like Excel?

 

See images below for example

Martin
Telerik team
 answered on 20 Mar 2017
1 answer
111 views

How does on transform the yaxis?

I need to center the y axis on a certain x value?

You can email directly at stevensrf@mail.com if you have answers , or better yet link me to source that does this.

Dinko | Tech Support Engineer
Telerik team
 answered on 20 Mar 2017
2 answers
122 views

I have a view that contains a RadMaskedNumericInput that has Value property with binding to my model inside my viewmodel.

<telerik:RadMaskedNumericInput Value="{Binding CurrentItem.NumeroMatricole,Mode=TwoWay}" Grid.Row="6" Grid.Column="1" Style="{StaticResource FieldMax3IntegerRadMaskedInputNumericStyle}" />

 

private byte numeroMatricole;
public byte NumeroMatricole
{
    get { return numeroMatricole; }
    set
    {
        numeroMatricole = value;
        NotifyPropertyChanged("NumeroMatricole");
    }
}

 

Now, when I try to update other properties of CurrentItem, it works all.

When I change value in this control (that is unique with MaskerNumeriInput and it is unique that point to NumeroMatricole property that is a byte), NotifyPropertyChanged not fire.

Is it possibile that RadMaskerNumeriInput doesn't support byte type?

Dario Concilio
Top achievements
Rank 2
 answered on 20 Mar 2017
2 answers
176 views

Hello Telerik team! 

When the row validation is failed row background is red and this is ok. But when I select this row it's background is still red. I'm trying to change this behaviour using trigger. But this trigger has no effect. What am I doing wrong. Could you help me, please.

    <Style.Triggers>
   <MultiTrigger>
      <MultiTrigger.Conditions>
        <Condition Property="IsValid" Value="false"/>
        <Condition Property="IsSelected" Value="true"/>
      </MultiTrigger.Conditions>
      <MultiTrigger.Setters>
        <Setter Property="Background" Value="Blue"/>
      </MultiTrigger.Setters>
    </MultiTrigger>

 </Style.Triggers>


ytnytn1
Top achievements
Rank 1
 answered on 18 Mar 2017
3 answers
380 views

 Hi Team,

We developing application with Prism and we need to edit the content at run time. So we used empty RadRichTextBox along with RadToolBar, we wont use any document. But it hits the performance on first time, please refer the below code.

 

<telerik:RadToolBarTray DataContext="{Binding ElementName=editor, Path=Commands}" telerik:StyleManager.Theme="Windows8" Background="LightGray" IsLocked="True">
<telerik:RadToolBarTray.Resources>
    <telerik:FontFamiliesProvider x:Key="FontFamiliesProvider" />
</telerik:RadToolBarTray.Resources>
 
<telerik:RadToolBar Height="32" OverflowButtonVisibility="Hidden" >
    <telerik:RadButtonGroup>
        <telerik:RadRibbonButton CollapseToSmall="WhenGroupIsMedium" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding CutCommand}" Size="Medium" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/cut.png"  />
        <telerik:RadRibbonButton CollapseToSmall="WhenGroupIsMedium" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding CopyCommand}" Size="Medium" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/copy.png" />
        <telerik:RadRibbonButton CollapseToSmall="WhenGroupIsMedium" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding PasteCommand}" Size="Medium" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/paste.png" />
    </telerik:RadButtonGroup>
    <telerik:RadToolBarSeparator />
    <telerik:RadButtonGroup>
        <telerik:RadRibbonButton telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding UndoCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/undo.png" Text="Undo" />
        <telerik:RadRibbonButton telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding RedoCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/redo.png" Text="Redo" />
    </telerik:RadButtonGroup>
    <telerik:RadToolBarSeparator />
    <telerik:RadButtonGroup>
        <telerik:RadRibbonToggleButton telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=ToggleBoldCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/bold.png" />
        <telerik:RadRibbonToggleButton telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=ToggleItalicCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/italic.png" />
        <telerik:RadRibbonToggleButton telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=ToggleUnderlineCommand}" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/underline.png" />
        <telerik:RadRibbonToggleButton telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=ToggleStrikethroughCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/Strikethrough16.png" />
    </telerik:RadButtonGroup>
    <telerik:RadButtonGroup>
        <telerik:RadRibbonToggleButton CommandParameter="Left" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ChangeTextAlignmentCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/alignleft.png" Text="Align Left" />
        <telerik:RadRibbonToggleButton CommandParameter="Center" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ChangeTextAlignmentCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/aligncenter.png" Text="Center" />
        <telerik:RadRibbonToggleButton CommandParameter="Right" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ChangeTextAlignmentCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/alignright.png" Text="Align Right" />
        <telerik:RadRibbonToggleButton CommandParameter="Justify" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ChangeTextAlignmentCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/alignjustify.png" Text="Justify" />
    </telerik:RadButtonGroup>
    <telerik:RadToolBarSeparator />
    <telerik:RadButtonGroup>
        <telerik:RadRibbonButton telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding DecrementParagraphLeftIndentCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/outdent.png" />
        <telerik:RadRibbonButton telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding IncrementParagraphLeftIndentCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/indent.png" />
    </telerik:RadButtonGroup>
    <telerik:RadToolBarSeparator />
    <telerik:RadButtonGroup>
        <telerik:RadRibbonComboBox CanAutocompleteSelectItems="False" CanKeyboardNavigationSelectItems="False" CommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=SelectedValue}" Height="21" IsReadOnly="True" ItemsSource="{Binding Source={StaticResource FontFamiliesProvider}, Path=RegisteredFonts}" OpenDropDownOnFocus="True" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=ChangeFontFamilyCommand}" telerik:ScreenTip.Description="Change the font family." telerik:ScreenTip.Title="Font" Width="132" />
        <telerik:RadRibbonComboBox CanAutocompleteSelectItems="False" CanKeyboardNavigationSelectItems="False" CommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=SelectedItem.Tag}" Height="21" IsEditable="True" IsReadOnly="True" IsTextSearchEnabled="False" OpenDropDownOnFocus="True" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=ChangeFontSizeCommand}" Width="45">
            <telerik:RadRibbonComboBoxItem Content="8" Tag="10.67" />
            <telerik:RadRibbonComboBoxItem Content="9" Tag="12" />
            <telerik:RadRibbonComboBoxItem Content="10" Tag="13.33" />
            <telerik:RadRibbonComboBoxItem Content="11" Tag="14.67" />
            <telerik:RadRibbonComboBoxItem Content="12" Tag="16" />
            <telerik:RadRibbonComboBoxItem Content="14" Tag="18.67" />
            <telerik:RadRibbonComboBoxItem Content="16" Tag="21.33" />
            <telerik:RadRibbonComboBoxItem Content="18" Tag="24" />
            <telerik:RadRibbonComboBoxItem Content="20" Tag="26.67" />
            <telerik:RadRibbonComboBoxItem Content="22" Tag="29.33" />
            <telerik:RadRibbonComboBoxItem Content="24" Tag="32" />
            <telerik:RadRibbonComboBoxItem Content="26" Tag="34.67" />
            <telerik:RadRibbonComboBoxItem Content="28" Tag="37.33" />
            <telerik:RadRibbonComboBoxItem Content="36" Tag="48" />
            <telerik:RadRibbonComboBoxItem Content="48" Tag="64" />
            <telerik:RadRibbonComboBoxItem Content="72" Tag="96" />
        </telerik:RadRibbonComboBox>
    </telerik:RadButtonGroup>
    <telerik:RadButtonGroup>
        <telerik:RadRibbonToggleButton telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ToggleBulletsCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/list-bullets.png" />
        <telerik:RadRibbonToggleButton telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ToggleNumberedCommand}" Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/list-numbered.png" />
        <telerik:RadRibbonDropDownButton Size="Small" SmallImage="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/MultilevelList.png">
            <telerik:RadRibbonDropDownButton.DropDownContent>
                <StackPanel>
                    <telerik:RadGroupHeader Content="List Library" />
                    <telerik:RadGallery ItemHeight="88" ItemWidth="88" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding ChangeListStyleCommand}" ViewportHeight="176" ViewportWidth="266">
                        <telerik:RadGalleryItem Image="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/MultilevelListNone.png" Tag="None" />
                        <telerik:RadGalleryItem Image="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/MultilevelListBulleted.png" Tag="Bulleted" />
                        <telerik:RadGalleryItem Image="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/MultilevelListNumbered.png" Tag="Numbered" />
                        <telerik:RadGalleryItem Image="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/MultilevelListNumberedParenthesis.png" Tag="NumberedParenthesis" />
                        <telerik:RadGalleryItem Image="pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/MultilevelListNumberedHierarchical.png" Tag="NumberedHierarchical" />
                    </telerik:RadGallery>
                </StackPanel>
            </telerik:RadRibbonDropDownButton.DropDownContent>
        </telerik:RadRibbonDropDownButton>
    </telerik:RadButtonGroup>
</telerik:RadToolBar>
</telerik:RadToolBarTray>
 
<telerik:RadRichTextBox  Name="editor"
                        telerik:StyleManager.Theme="Windows8"
                        Grid.Row="1"
                        Margin="0"
                        FocusVisualStyle="{x:Null}"
                        EnforcedPermissionRangeBrush="Blue"
                        Background="{x:Null}" />

 

And we have tried all possible ways that you have described in below link.

http://docs.telerik.com/devtools/wpf/controls/radrichtextbox/mef#initial-load-performance-of-radrichtextbox

Please refer the below code. 

RadCompositionInitializer.Catalog = new TypeCatalog();
DocumentFormatProvidersManager.AutomaticallyLoadFormatProviders = false;
InitializeComponent();
this.editor.UILayersBuilder = new UILayersBuilder();

 

 

While using the above code the loading time is reduced, but not completely. Still it takes minimum five seconds to load at first time. Please suggest any ideas to reduce the loading time completely.

 

Thanks,

Antony

Tanya
Telerik team
 answered on 17 Mar 2017
1 answer
187 views

Hello everybody, I need to do some stuff (change the items depending on what it is shown in that moment on a RadPaneGroup) just before the Backstage of my RadRibbonView is going to be open (every time) but I don't find any event that can handle it.

 

Any help?

 

Thanks,

Simone

Evgenia
Telerik team
 answered on 17 Mar 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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?