Telerik Forums
UI for WPF Forum
1 answer
228 views

I have the code below.

sometime it doesn't show the controls inside

<telerik:RadBusyIndicator x:Name="ProgressIndicator">
     <telerik:RadBusyIndicator.BusyContent>
          <StackPanel>
               <TextBlock Name="ProgressStatus" HorizontalAlignment="Center" Grid.Row="0" />
               <telerik:RadButton Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Margin="5" Grid.Row="1"/>
          </StackPanel>
     </telerik:RadBusyIndicator.BusyContent>
</telerik:RadBusyIndicator>

Attached below what it show when control is not showing

Nasko
Telerik team
 answered on 12 Oct 2016
2 answers
116 views

Hi,

in my app.cs I write this code, but format of datacolumn appears in "us"

<telerik:RadGridView.Columns>
  <telerik:GridViewDataColumn DataMemberBinding="{Binding CodiceModelloCommerciale}"
                              Header="Codice" IsReadOnly="True"/>
  <telerik:GridViewDataColumn DataMemberBinding="{Binding PrezzoUnitario}" Header="Prezzo"
                              HeaderTextAlignment="Right" TextAlignment="Right" DataFormatString="C"/>
</telerik:RadGridView.Columns>

public App()
{
this.InitializeComponent();
 
Thread.CurrentThread.CurrentCulture = new CultureInfo(name: "it-IT");
Thread.CurrentThread.CurrentUICulture = new CultureInfo(name: "it-IT");
[...]

Dario Concilio
Top achievements
Rank 2
 answered on 12 Oct 2016
1 answer
117 views

Hello, I need help about italian spell checking. 

First of all, download the zipped file from here:
http://download2.anastasis.it/software/fabrizio/TestTelerikSpellChecker.zip

it's a minimal WPF application using your current R3 2016 UI for WPF libraries, that reproduces the uncorrect behaviors. It has a custom minimal dictionary extracted from our 2 million words italian dictionary.

This mini-dictionary contains ALL the words written in the embedded test document.

---BEHAVIOR 1: Initial spellchecking

Starting up the application, only the first sentence seems completely correct.

Line 1: "Questa è una prova" is ok.

Line 2: "Dov'è" and "Quand'è" are marked wrong. "Cos'è? cos è!" are ok only because there's "cos" in the dictionary (cosine math function). We can't put "quand" and "dov" in the dictionary because they aren't correct single words in italian.

Line 3: "Prova dell'albero." is ok, but "nell'albero" and "sull'albero" are marked wrong.

Line 4a-b-c: Any order of the 3 elements results in "dell'albero" right and the others wrong. But they are all in the dictionary!

---BEHAVIOR 2: Suggestions word extraction

Problem 1:
Right-click with cursor on line 2, over the "o" in "Dov'è". First suggestion is "Dov'è", if you click it, the resulting word will be "Dov'è'è". So, it seems that the spellchecker treats the apostrophe ' character as delimiter, that's wrong in italian because "Dov" is wrong and only "Dov'[Vowel]*" is right. Same applies with thousands of different word that get truncated on the following one. 

Problem 2:
Now for the black magic: Undo with Ctrl-Z, select whole "Dov'è" word and right-click it: no suggestions supplied (correct). Then, click in the editor to dismiss the context menu and roll the mouse wheel. Refresh now shows as correct the entire selection that was previously marked wrong.
Plot twist: Put the cursor after "è" in "Dov'è" and press space: "Dov'è" is marked wrong again.

But in English, all the words like "isn't", "don't", "we're" etc are marked as correct. So what's the problem with italian spell checking?

I really hope to get help from you, because the spell checker is a paramount function for our application.

Thanks in advance.
Fabrizio

Todor
Telerik team
 answered on 12 Oct 2016
14 answers
286 views

Hello,

when the RibbonWindow is not maximized, left and right blocks are displayed on the outside of the window...

Milena
Telerik team
 answered on 12 Oct 2016
3 answers
118 views

Hello group, 

Question: I have a GridViewDataColumn. The Header property has been bind to an property in the ViewModel. If you now in the UI drag the column header to the group-by bar the Grid will display the name of the group-by as: [DataContextName].[PropertyName] instead of the (string) value of the property of the binding. 

I have tried to use an converter to collect the string form the resource file but this does not work either. 

Help would be appriciated. 

Richard

Stefan
Telerik team
 answered on 12 Oct 2016
2 answers
176 views

I created a test application with a treeview using implicit themes with the XAML files loaded into project. That works fine. If I move the treeview into a usercontrol in a separate project, it does not work. I tried both methods from here with no success:

https://blogs.msdn.microsoft.com/wpfsdk/2007/06/08/defining-and-using-shared-resources-in-a-custom-control-library/

It fails when loading Telerik.Windows.Controls.Navigation.xaml. It doesn't have a problem loading Telerik.Windows.Controls.xaml. The sample in the link

As a side note, I am doing the same thing with the map control and don't have any issues with it.

Link to the Project:
https://file.ac/1GnUz6lTPqM/

Here's the snippet from the UserControl:

<UserControl.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="Themes/System.Windows.xaml"/>
            <ResourceDictionary Source="Themes/Telerik.Windows.Controls.xaml"/>
            <ResourceDictionary Source="Themes/Telerik.Windows.Controls.Navigation.xaml"/>
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</UserControl.Resources>

Jason D
Top achievements
Rank 1
Veteran
 answered on 11 Oct 2016
4 answers
336 views

I want to set the two first Buttons of the RadGridView ControlPanelItems to the left. Is this possible and how. The image describes what I want to do. Below you will find also my source code. 

 

 

01.<telerik:RadGridView.ControlPanelItems>
02. 
03.    <telerik:ControlPanelItem>
04.        <telerik:ControlPanelItem.ButtonContent>
05.            <telerik:RadButton Name="EnlargeFontSize" Click="EnlargeFontSize_OnClick">
06.                <DockPanel>
07.                    <TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontWeight="Bold" FontSize="16"/>
08.                    <TextBlock TextAlignment="Center"/>
09.                </DockPanel>
10.            </telerik:RadButton>
11.        </telerik:ControlPanelItem.ButtonContent>
12.    </telerik:ControlPanelItem>
13. 
14.    <telerik:ControlPanelItem>
15.        <telerik:ControlPanelItem.ButtonContent>
16.            <telerik:RadButton Name="ReduceFontSize" Click="ReduceFontSize_OnClick" >
17.                <DockPanel>
18.                    <TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontWeight="Bold" FontSize="16"/>
19.                    <TextBlock TextAlignment="Center"/>
20.                </DockPanel>
21.            </telerik:RadButton>
22.        </telerik:ControlPanelItem.ButtonContent>
23.    </telerik:ControlPanelItem>
24. 
25.    <telerik:ControlPanelItem>
26.        <telerik:ControlPanelItem.ButtonContent>
27.            <telerik:RadButton Click="ResetView_Click" HorizontalContentAlignment="Stretch">
28.                <DockPanel>
29.                    <TextBlock Text="" FontFamily="Segoe UI Symbol" Foreground="Red"/>
30.                    <TextBlock Text="Anpassung Zurücksetzen" TextAlignment="Center"/>
31.                </DockPanel>
32.            </telerik:RadButton>
33.        </telerik:ControlPanelItem.ButtonContent>
34.    </telerik:ControlPanelItem>
35. 
36.</telerik:RadGridView.ControlPanelItems>

Dilyan Traykov
Telerik team
 answered on 11 Oct 2016
6 answers
3.0K+ views
Hi,

small question: how can I databind SelectedItems of a gridview to a collection of my viewmodel? I have a gridview with SelectionMode set to Extended:

<telerik:RadGridView Name="patientsGridView" SelectionMode="Extended" ItemsSource="{Binding Patients}" SelectedItem="{Binding SelectedPatient}" AutoGenerateColumns="False" IsReadOnly="True" >           
 
and the viewmodel would contain:

public ObservableCollection<PatientViewModel> SelectedPatients { ... }

But how can I bind the grid's SelectedItems to the viewmodel's SelectedPatients?

Thanks,
Kind regards,
L
Brennan
Top achievements
Rank 1
 answered on 11 Oct 2016
1 answer
151 views

Working with Q1 2012

Hi, I have a radgridview control, with custom columns (not autogenerated), all of them editable. When I click in the "Click Here to add new Item", that row changes into edit mode and the cursor is in the first column (C1). When I press TAB, the focus passes to the next column (C2) but it seems to exit from edit mode. Then I have to press TAB again 4 times to enter again in edit mode, but in C3. If at that moment I press SHIFT+TAB, it goes back to C2 in editmode, and if I press again SHIFT+TAB it goes to C1, also in edit mode, then I can press TAB again and goes to C2 in edit mode, and everything seems to work well. This happens every time I try to add a new row. And some times just the TAB behaviour is too wrong. Instead of passing to the next column of the same row, it passes to the next column of another row, like if radgridview is confused about tab navigation.

 

Apart from that, when I try to validate a cell, the first time I set an error it is shown, but then I rectify and try to put another invalid value and then press TAB and it does not shows any error, but does not let you change TAB.

 

I would appreciate some workaround to this.

 

Thanks in advance.

 

David.

Stefan Nenchev
Telerik team
 answered on 11 Oct 2016
1 answer
120 views

Hi,
I have a strange problem with docking control:
as you see in following code I have a unpinned RadPane(there are 4 tabs inside the RadPane). I hover mouse over RadPane and it appears.
when I click in TAB1 and click the Button and click TAB2, RadPane hides itself.
please help me to fix it.
thanks.

My code:

 <telerik:RadDocking HorizontalAlignment="Stretch">
            <telerik:RadSplitContainer MinWidth="300" InitialPosition="DockedRight">
                <telerik:RadSplitContainer >
                    <telerik:RadPaneGroup  >
                        <telerik:RadPane CanFloat="False" CanUserPin="True" CanDockInDocumentHost="False"
                                         x:Name="pane"
                                         CanUserClose="False" Header="PaneHeader"
                                         IsPinned="False" AutoHideWidth="300">
                            <telerik:RadTabControl>
                                <telerik:RadTabItem Header="TAB1">
                                    <Grid>
                                        <telerik:RadButton Content="Button"/>
                                    </Grid>
                                </telerik:RadTabItem>
                                <telerik:RadTabItem Header="TAB2" IsSelected="True">
                                    <Grid>
                                        <TextBlock Text="Nothing"/>
                                    </Grid>
                                </telerik:RadTabItem>
                                <telerik:RadTabItem Header="TAB3">
                                    <Grid>
                                        <TextBlock Text="Nothing"/>
                                    </Grid>
                                </telerik:RadTabItem>
                                <telerik:RadTabItem Header="TAB4">
                                    <Grid>
                                        <TextBlock Text="Nothing"/>
                                    </Grid>
                                </telerik:RadTabItem>
                            </telerik:RadTabControl>
                        </telerik:RadPane>
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadSplitContainer>
        </telerik:RadDocking>

 

 

Nasko
Telerik team
 answered on 11 Oct 2016
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
Rating
SplashScreen
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
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?