Telerik Forums
UI for WPF Forum
4 answers
326 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
95 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
68 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
89 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
178 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
169 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.0K+ 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
184 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
1 answer
90 views
I'm trying to set merge field values manually and I can't get anything to work, or find anything indicating how I can do this directly.  Here's an example of my code:

 

                        var span = new Span("Testing");
                        var fragment = DocumentFragment.CreateFromInline(span);


                        start.Field.SetFragmentByDisplayMode(FieldDisplayMode.Result, fragment);

 

start.Field is a MergeField, and basically other than the end result being blank.  When I look at the MergeField objects properties after making this call I see that the ResultFragment shows as empty.  What am I missing here?  If this won't work is there some way to just remove the field and insert my text? 

I realize the documentation is angled towards mail merge but my situation doesn't make that feasible.

Matt
Top achievements
Rank 1
 answered on 03 Jul 2016
1 answer
83 views

hiiii,, i want to get the value of checkboxcolumn in datagrid wpf

i try this code

if (item.boolCol == true)
              {
                  MessageBox.Show("fail");
              }
              else
              {
                  MessageBox.Show("success");
 
              }

but don't take the changed value but take the same value of the my itemsourse 

Ahmed
Top achievements
Rank 1
 answered on 03 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
Slider
Expander
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?