Telerik Forums
UI for WPF Forum
1 answer
117 views
when press tab  the cursor is at the beginning of the text ,

but after changed the text and then press tab  the cursor is at the endding of the text

how to set cursor to the text endding when tab
Stefan
Telerik team
 answered on 05 Jul 2016
1 answer
323 views

I have a need to get the current style of a document. The GetCurrentSpanStyle method of RadRichTextBox is protected, so I cannot use this. The only way that I have been able to get the current style is to create a override of RichTextBoxCommandBase for this purpose.

public class GetCurrentSpanStyleCommand : RichTextBoxCommandBase
{
    public GetCurrentSpanStyleCommand(RadRichTextBox editor) : base(editor)
    {
    }
 
    protected override void ExecuteOverride(object parameter)
    {
 
    }
 
    public Span ExecuteGetCurrentSpanStyle()
    {
        return base.GetCurrentSpanStyle();
    }
}

Is there a better way to do this?

Tanya
Telerik team
 answered on 05 Jul 2016
4 answers
355 views
I've created a class inheriting from RadPane, and I'm binding a list of istances of this class to the ItemsSource property of the RadDocking. If I add elements to the list and then update (fire the PropertyChanged event for the property) it works great, but it crashes when I try to delete an element from the collection and then refresh the property.

If I create a custom factory for the control and I override the RemovePane method, I get null pointers when the method is called.

Has somebody any idea of what I am doing wrong? I can provide a sample if needed.

Thanks!
Tobias
Top achievements
Rank 1
 answered on 04 Jul 2016
1 answer
112 views
Hallo,
We look for a component package in WPF for new ERP system. We want thin desktop and web client. 
Now I analyze data binding of component for pivot table. 
You have it perfectly solved in web package Kendo UI (http://demos.telerik.com/kendo-ui/pivotgrid/index). A next data are loaded only if user expands next level. Can I achieve this behavior in WPF? 
In your WPF trials it seems that all data are loaded once and while expanding these are only shown. I try XmlaDataProvider (demo XmlaStyleRaggedHierarchies) and I defined expand behavior for collapse all levels.
Polya
Telerik team
 answered on 04 Jul 2016
1 answer
84 views

I need to limit available weekdays to select in Telerik WPF RadDatePicker. This RadDatePicker is in column of Telerik WPF RadGridView. Configuration of weekdays available to select should be different for each row.

I've created model with available weekdays configuration, but I don't know how to simply attach such functionality to RadGridView.

Thanks in advance for any help.

I need to limit available weekdays to select in Telerik WPF RadDatePicker. This RadDatePicker is in column of Telerik WPF RadGridView. Configuration of weekdays available to select should be different for each row.

I've created model with available weekdays configuration, but I don't know how to simply attach such functionality to RadGridView.

Thanks in advance for any help.

Dilyan Traykov
Telerik team
 answered on 04 Jul 2016
1 answer
112 views

I need to limit available weekdays to select in Telerik WPF RadDatePicker. This RadDatePicker is in column of Telerik WPF RadGridView. Configuration of weekdays available to select should be different for each row.

I've created model with available weekdays configuration, but I don't know how to simply attach such functionality to RadGridView.

Thanks in advance for any help.

Dilyan Traykov
Telerik team
 answered on 04 Jul 2016
3 answers
192 views
Hello,

I have many different custom shapes.  
I've added a new tab to the SettingsPane. How can I change the content of this tab depending on the custom shape that the user has dropped it or selected?
Any event for SettingsPane can help me?
I need event fires when I press  the SettingsPane button!
I tried (PreviewAdditionalContentActivated) and (AdditionalContentActivated) but both are fired when I dropped any shape now when I press the SettingsPane icon.

Thank you
Martin Ivanov
Telerik team
 answered on 04 Jul 2016
1 answer
185 views

Hi Guys,

After update the telerik to 2016 Q2, (Telerik.Windows.Controls 2016.2.613.45). I can´t access (see) the property LayoutControlGroup.Header and some other properties.

In another project that is using Telerik.Windows.Controls (2016.2.503.45) these properties are available.

 

What I can do to solve this problem ? 

Martin Ivanov
Telerik team
 answered on 04 Jul 2016
1 answer
1.1K+ views

i want to get the value of CheckBoxColumn in DataGrid wpf
i try this code

 

foreach (spShowTotal_Result item in dgShowStudent.ItemsSource)
        {
 
            bool? check = ((CheckBox)dgShowStudent.Columns[0].GetCellContent(item)).IsChecked;
 
        }

but this exception appear
Unable to cast object of type 'System.Windows.Controls.ContentPresenter' to type 'System.Windows.Controls.CheckBox'.
Ahmed
Top achievements
Rank 1
 answered on 04 Jul 2016
3 answers
208 views

We use a custom autocomplete textbox, and it's been working fine with Telerik Controls from 2012.

We've recently upgraded the DLL, and I've noticed that there is a new problem. When the Autocomplete is focused and Escape is being pressed, the textbox still has logical focus, but the keyboard focus is lost (The cursor is still on the textbox, but it is not blinking anymore).

After debugging it, I've found out that KeyTipService.HandleEscape is being called, and this specific code takes the keyboard focus:

                if (this.Ribbon != null)
                {
#if WPF
                    Keyboard.Focus(this.Ribbon.SelectedTab);
#endif
                    if (this.Ribbon.IsBackstageOpen)
                    {
                        this.Ribbon.IsBackstageOpen = false;
                    }
                }

 

I've tested this issue on a test project, and I can reproduce the issue, even with a regular textbox:

<telerik:RadRibbonWindow x:Class="RibbonTakesFocusFromAutoComplete.MainWindow"
        Title="MainWindow" Height="350" Width="525">
 
    <Grid x:Name="contentToDisable">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
 
        <telerik:RadRibbonView Name="MainRibbon" HelpButtonVisibility="Visible" HelpCommand="{Binding ShellHelpFileCommand}" GotKeyboardFocus="MainRibbon_GotKeyboardFocus"
            ApplicationName="Bob"
            telerik:KeyTipService.IsKeyTipsEnabled="True"
            MinimizeButtonVisibility="Visible"
            Foreground="Black"
            IsBackstageOpen="false"
            IsMinimized="False">
            <telerik:RadRibbonView.Backstage>
                <telerik:RadRibbonBackstage telerik:KeyTipService.AccessText="F">
 
                    <telerik:RadRibbonBackstageItem Header="New" telerik:KeyTipService.AccessText="N" Click="RadRibbonBackstageItem_Click" />
                    <telerik:RadRibbonBackstageItem Header="Open" telerik:KeyTipService.AccessText="O" Click="RadRibbonBackstageItem_Click_1"/>
                </telerik:RadRibbonBackstage>
            </telerik:RadRibbonView.Backstage>
            <telerik:RadRibbonTab Foreground="Black" Header="Edit" telerik:KeyTipService.AccessText="E">
                <telerik:RadRibbonGroup Header="Clipboard" telerik:ScreenTip.Title="Clipboard"
                    telerik:ScreenTip.Description="Bla Bla"
                    telerik:KeyTipService.AccessText="FO">
                    <telerik:RadRibbonGroup.Variants>
                        <telerik:GroupVariant Variant="Medium" Priority="0"/>
                    </telerik:RadRibbonGroup.Variants>
 
                    <StackPanel Orientation="Horizontal">
                        <telerik:RadRibbonButton Text="Paste"
                            Size="Large"
                            telerik:ScreenTip.Title="Paste"
                            Click="RadRibbonButton_Click"
                            telerik:ScreenTip.Description="Paste"
                            telerik:KeyTipService.AccessText="V">
 
                        </telerik:RadRibbonButton>
                    </StackPanel>
                </telerik:RadRibbonGroup>>
            </telerik:RadRibbonTab>
        </telerik:RadRibbonView>
 
        <Grid Grid.Row="1">
            <TextBox  Width="100" VerticalAlignment="Top" HorizontalAlignment="Left"/>
        </Grid>
    </Grid>
</telerik:RadRibbonWindow>

 

Run the project, and click the TextBox so it will get keyboard focus. Press the Escape key, and you'll see what I mean.

Is there any workaround?

 

Can you please fix it.

 

Thanks

 

BENN
Top achievements
Rank 1
 answered on 04 Jul 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
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?