Telerik Forums
UI for WPF Forum
3 answers
828 views

Hi,

I have binded custom object collection to the RaCombobox selecting an item and saving is working fine but displaying the item again once we close and open the application is not working.

 

                    <telerik:RadComboBox Name="AppContextNames" Width="150" Height="25" SelectedItem="{Binding AppContext,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" ItemsSource="{Binding Path=DataContext.SharedActionVM.AppContextCollection,RelativeSource={RelativeSource AncestorType={x:Type telerik:RadTreeListView}}}" DisplayMemberPath="Name" />

Here while setting it is working fine but again if go to that combobox  even the AppContext object contains value it is showing empty combo value but combocollection is present.

Is there something I have to do from my side??

Regards,

Nagasree.

 

 

 

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 05 Dec 2019
3 answers
669 views

I'm currenting working on an existing project where there the creator had UserControl Xamls, the controls are in ViewModel folder where usercontrol.ViewModel.cs has the control and executable.

I'm trying not to break the code, learn how to use MVVM/WPF formatting.

I have added a button to the UserControl.Xaml now I'm not clear on get the button control to work so it can export both selected gridview item or the whole gridview. I have found several forum articles but they do not met my WPF format:

<telerik:RadButton x:Name="btnExport"
                                   Grid.Row="0"
                                   Content="Export to Excel"
                                   Command="{Binding Export2ExcelCommand}"
                                   Width="100"
                                   Margin="4" />

But now I need a good sample that show how I should add the "Export2ExcelCommand" button control to the "ucViewModel.cs" file.

Again the goal is to support both whole gridview export or selected items in gridview to Excel.

Help is appreciated.

herb
Top achievements
Rank 1
Veteran
Iron
 answered on 05 Dec 2019
8 answers
203 views

Hi,

I have this RadMaskedTextInput:

<telerik:RadMaskedTextInput IsClearButtonVisible="True" TextMode="PlainText"  Placeholder=" " Mask="a4/>a3" Margin="2,0,2,0" AcceptsReturn="False" HorizontalAlignment="Stretch" Value="{Binding FilterPasse}" ValueMode="IncludeLiterals" SelectionOnFocus="CaretToBeginning"/>

Following implicit style is used

<Style x:Key="DefaultTelerikMaskedTextInputStyle" TargetType="telerik:RadMaskedTextInput" BasedOn="{StaticResource RadMaskedTextInputStyle}">
    <Setter Property="MinHeight" Value="{StaticResource DefaultMinimumHeight}"/>
    <Setter Property="FontFamily" Value="{StaticResource DefaultFont}"/>
    <Setter Property="FontSize" Value="{StaticResource DefaultFontSize}"/>
    <Setter Property="FontWeight" Value="{StaticResource DefaultFontWeight}"/>
    <Setter Property="Validation.ErrorTemplate" Value="{StaticResource ErrorTemplate}"/>
 
    <Style.Triggers>
        <Trigger Property="IsEnabled" Value="True">
            <Setter Property="Background" Value="{StaticResource DefaultTextBoxBackgroundColor}"/>
        </Trigger>
        <Trigger Property="IsEnabled" Value="False">
            <Setter Property="Background" Value="{StaticResource DefaultTextBoxDisabledBackgroundColor}"/>
        </Trigger>
        <Trigger Property="IsFocused" Value="True">
            <Setter Property="Background" Value="{StaticResource DefaultTextBoxIsFocusedBackgroundColor}"/>
        </Trigger>
        <Trigger Property="IsReadOnly" Value="True">
            <Setter Property="Background" Value="{StaticResource DefaultTextBoxIsReadOnlyBackgroundColor}"/>
        </Trigger>
    </Style.Triggers>
</Style>
<Style TargetType="{x:Type telerik:RadMaskedTextInput}" BasedOn="{StaticResource DefaultTelerikMaskedTextInputStyle}"/>

 

When running the application the slash (in the mask) is shown twice (see attached pictures). Any ideas why ?

Regards,
Hans

Hans
Top achievements
Rank 1
Veteran
 answered on 04 Dec 2019
5 answers
481 views

I seem to be having multiple issues with the current version (2019.3.1023.45) of the RadFileDialog (OpenFile, SaveFile, and RadFilePathPicker).

These are:

1. Selecting the "^" for parent directory causes a "Object Referencing Error"
2. Select "This PC" or "Network" just starts the spinning icon with out them opening (I have left this for a considerable time with no result)
3. Manually changing the directory string does no refresh the files list.
4. Setting the RestoreDirectory to True does not seem to work as this always revers to the user directory

Example of the code:

Dim dlg As New RadOpenFileDialog
dlg.DefaultExt = ".xml"
dlg.Filter = "XML|*.xml|All Files|*.*"
dlg.Owner = Me
dlg.RestoreDirectory = True
dlg.ShowNetworkLocations = True
dlg.ShowDialog()
If dlg.DialogResult = True Then

...

End If

 

Any suggestions would be appreciated?

 

Tony Kennard
Top achievements
Rank 1
 answered on 04 Dec 2019
2 answers
186 views

I have created a chart with dynamically populated data that needs to hold thousands of data points.  For performance, I wanted to set the renderoptions on a lineseries to bitmap rendering instead of the default xaml rendering.  However, when switching to bitmap rendering, I lose the ability to set the strokeshapestyle on the line series.  It appears that the dashed line I was expecting to see is replaced with a solid line.  I knew that I would lose the ability to set the line thickness in bitmap rendering.  Do I also lose any ability to style the stroke of the line?

Thank you for any help you can provide.

Jeremy
Top achievements
Rank 1
 answered on 03 Dec 2019
3 answers
348 views

Hi,

Some performance issue.
The 'Content' property of my RadPane holds a quite complex visual tree (let's say it contains RadGridView), and I add it to the Panes ObservableCollection.
I've implemented a custom DockingPanesFactory and only overrided the AddPane method. Not something special, it's almost like your example here:
http://docs.telerik.com/devtools/wpf/controls/raddocking/features/panes/panesource.html

I've noticed that adding of pane to the visual tree by Panes.Add(pane) that invoke the AddPane of the DockingPanesFactory takes something like 400ms.
Same for the Remove method. It's relevant also for DragStart when undocking this "heavy" pane, what happens is, the ToolWindow for this floating pane appears after a second or two, and the user holds the left mouse button down with no ToolWindow below the mouse cursor, and as I said only after 1-2 seconds the ToolWindow appears.

My Content property holds a ViewModel that has a DataTemplate targeted to it by "TargetType" property of the DataTemplate. The DataTemplate consist of a View that has a RadGridView ....

It's not reasonable that the whole pane appears only after its content added to the visual tree. I want to make the Pane to appear and let the content to load afterwards, Especially regarding the ToolWindow, because the user don't have any indication that the ToolWindow takes time to appear.

BTW, I've disabled the animations... you know, by....
<telerikDock:RadDocking telerik:AnimationManager.AnimationSelector="{x:Null}"
telerik:AnimationManager.IsAnimationEnabled="False">

Please, help me here to achieve my goal.
Thanks!!!


Vladimir Stoyanov
Telerik team
 answered on 03 Dec 2019
1 answer
140 views

hi

i got this error "Object reference not set to an instance of an object." when i use "Example 1: Default UI" from https://docs.telerik.com/devtools/wpf/controls/radpdfviewer/default-ui

i find errors in this lines:

 telerik:RadPdfViewerAttachedComponents.RegisterSignSignatureDialog="True" telerik:RadPdfViewerAttachedComponents.RegisterFindDialog="True" telerik:RadPdfViewerAttachedComponents.RegisterSignaturePropertiesDialog="True" telerik:RadPdfViewerAttachedComponents.RegisterContextMenu="True"

 

but this lines hasn't problem in example for radviewer firstlook

Tanya
Telerik team
 answered on 02 Dec 2019
1 answer
65 views

https://gyazo.com/6c0fab884114c8d37d8690dc8b66aaa3

how fix?

I'm using the Fluent dark theme.  Works fine with crystal.

Dinko | Tech Support Engineer
Telerik team
 answered on 02 Dec 2019
3 answers
289 views

Hello,

I have telerik version 2014.1.331.40. I want to make a ComboBox filter in FilterRow mode in the RadGridView control. I need it to work exactly like the Textbox does, only with the ComboBox instead. I tried editing the control template of StringFilterEditor, but then I lose all functionality and when I try to bind the DisplayMemberPath, it doesn't work or when it does through code behind, it is very slow while I type what I want to Filter (I need to do Filter as you type which I did with the Textbox) (I use a large amount of Data).

Please help,

Bar.

Martin Ivanov
Telerik team
 answered on 02 Dec 2019
2 answers
339 views

I use a RadGridView for displaying data from a database. I'm on .NET Core 3.0 and use Telerik UI for WPF 2019_3_1023 NuGet NoXaml Version oft the controls. 

I have encountered a strange behaviour when i do grouping for some columns. The group header row is displayed correctly with the expander button on the left side, followed by the grouping information. The strange thing is, that clicking on the expander icon (arrow down) doesn't expand the grouped rows. Only clicking the text representing the items the grid is grouped after expands the row to show the grouped rows. I have some implicit styling applied (mainly colors, font and row height of the grid) and use the material design. Even after removing the implicit stylings, the grid behaves strange. Can't geht the expander button to work, which is annoying for customers, as they expect that the icon responds to clicking (as seen in the Telerik Demo app for example). Is it possible that the styling could affect the expander button behaviour?

 

Thanks,

Martin

Martin
Top achievements
Rank 1
 answered on 02 Dec 2019
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?