Telerik Forums
UI for WPF Forum
1 answer
353 views

Just need confirmation since we are upgrading several tools to Telerik UI for WinForms R3 2022. I downloaded R3 2022 and noticed there's Bin40, Bin48, Bin50, Bin60, Bin 70 and BinNetCore. I am using .Net Framework 4.8 and created a Telerik Winform app with references to TelerikWinFormsApp17\lib\RCWF\2022.3.1109.48\Telerik.WinControls.dll.

I'm assuming I only care about the Bin48 folder, correct? We store them in a common place rather than using NuGet so I'm wanting to make sure I'm using the correct Bin folder.

Thank you,

Russ

Dilyan Traykov
Telerik team
 answered on 21 Nov 2022
1 answer
261 views

Hi,

I am having a problem where I am using a dropdownbutton with some custom controls inside the dropdowncontent area.

Whenever I click an item, the dropdowncontent stays open.  I have tried setting "IsOpen" to false but it is having no effect.

Here is my code, xaml

<telerik:RadDropDownButton x:Name="_toolsDDB" AutoOpenDelay="0:0:0.0" DropDownButtonPosition="Right" Grid.Row="1"
                       IsBackgroundVisible="False" PopupAnimation="Fade" KeepOpen="False"
                        DropDownIndicatorVisibility="Collapsed" IsOpen="{Binding ToolsIsOpen, Mode=TwoWay}"
                         telerik:RadToolTipService.Placement="Top" Margin="5" DropDownPlacement="Right"
                         telerik:RadToolTipService.ToolTipContent="{Binding GlobalStrings.ToolsStr}">

Viewmodel

        public void FunctionClickedCommandHandler(object obj)
        {
            if (_selectedFunction != null)
            {
                _selectedFunction.Command.Execute(null);

                MouseButtonEventArgs args = obj as MouseButtonEventArgs;
                if (obj != null)
                {
                    RadListBox lb = args.Source as RadListBox;
                    if (lb != null)
                        lb.SelectedIndex = -1;

                }

                ToolsIsOpen = false;
            }
        }

I tried binding to "IsOpen" because for some items clicked I need the dropdown to stay open for others I need it to close as soon as an item is clicked.  Right now, I'm just trying to get it to close with the code above.

Here is a quick video showing whats happening

  Video

Thanks for any help.

Stenly
Telerik team
 answered on 21 Nov 2022
1 answer
145 views

Hi:

I'm confused about the best approach to create a crud with Telerik and EntityFramewok 7.0. In some of your samples, I found the use of ICollectionView, but in others QueryableEntityCollectionView and in the mvm sample of RadEntityFrameworkCoreDataSource documentation I was expecting RadEntityFrameworkCoreDataSource, but instead, it uses QueryableEntityCollectionView. Could you help me to understand the differences and advantages of each approach?

Martin Ivanov
Telerik team
 answered on 18 Nov 2022
1 answer
172 views

HI:

I have this query:

 _clientes = new QueryableCollectionView(clientes.Include(c => c.PkCiudadNavigation).ToList()); and I what to change it RadEntityFrameworkCoreDataSource , how Can I Specify this include with RadEntityFrameworkCoreDataSource 

Thanks for your help

Martin Ivanov
Telerik team
 answered on 18 Nov 2022
3 answers
178 views

Hi,

using Visual Studio 2022 (latest version) is it a normal process for the upgrade project wizard, to close visual studio and try to re-open it in admin mode? When does the upgrade happen? Before it closes VS or after when trying to reopen the project? 

The issue is that, in a professional / corporate setup, I may not have admin right on my machine. My user account may be link to a user only privileges and probably tied to some Windows account license agreement use for Windows office tools (Office365, Visual Studio....). 

If I have an admin account for my machine, most likely it'll be a different account (username/password), and most likely it will not be tied to any Windows tools type licensing.

The issue here is by forcing the use of admin access for VS, we are not able to start / validate the license of Visual Studio and it results on being stuck on the validation page of Visual studio. At this point, there is nothing to do than closing VS and the project isn't updated.

The previous Telerik WPF Wizard in Visual Studio 2019 were, in my experience, a lot better than the current extensions in VS 2022. I had a lot more control over the packages used in my project and the upgrade process was seamless. 

How to upgrade a project in VS2022 without using Admin mode? What would be a manual way to do it?

 

Thank you for your help

 

Nikolay Mishev
Telerik team
 updated answer on 18 Nov 2022
0 answers
104 views

HI:

In entity framework im using FromSqlRaw to run a sql query:

(db.FsgAcuerdos.FromSqlRaw("Select * From FSG_ACUERDOS ").ToList()

How can I do it with RadEntityFrameworkCoreDataSource 

 

Thanks in advance.

Sami
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 17 Nov 2022
0 answers
125 views

HI:

I read the documentation about cancel option, and all that I saw says that you should implement interface IEditableObject.  I have a project that doesn't implement it and cancel button works perfectly over observable collection against entity framework throw CollectionViewSource:


            ICollectionView c = CollectionViewSource.GetDefaultView(db.Clientes.FromSqlRaw("Select * From CLIENTES ").ToList());
            dbGrid.ItemsSource = c;
            dataForm.ItemsSource = c;

 

in other project with other table it doesnt work unless my object implments IEditableObject, ¿Why?

Is necesary implement IEditableObject incluiding if use EnityFramework over observable collection? Is necesary implment this IedtiableObject interfase also if I use RadEntityFrameworkCoreDataSource instead  ICollectionView ?

 

Thanks in advance for your dvise.

 

Sami
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 17 Nov 2022
1 answer
245 views

Hi,

using the nuget Telerik.UI.for.Wpf60 (or70)  (2022.3.1109) it seems like the StringToGlyphConverter isn't found in the resources (resource not found).

The BooleanToVisibilityConverter is found correctly though... It seems that all converters listed on this page are in the resources but the StringToGlyphConverter. 


<Window x:Class="TelerikWpf.Sandbox.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                Title="MainWindow" Height="350" Width="525">
        <Grid>
        <telerik:RadGlyph Glyph="{Binding GlyphString, Converter={StaticResource StringToGlyphConverter}}"
                          Visibility="{Binding IsVisible, Converter={StaticResource BooleanToVisibilityConverter}}"/>

                
        </Grid>
</Window>

 I was able to make it work by adding it to the resources but I much prefer the "Inline" declaration as other converters (also it is not consistent with the online documentation of the converter. 

<Window x:Class="TelerikWpf.Sandbox.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                Title="MainWindow" Height="350" Width="525">
    <Window.Resources>
        <telerik:StringToGlyphConverter x:Key="StringToGlyphConverter"/>
    </Window.Resources>

    <Grid>
        <telerik:RadGlyph Glyph="{Binding GlyphString, Converter={StaticResource StringToGlyphConverter}}"
                          Visibility="{Binding IsVisible, Converter={StaticResource BooleanToVisibilityConverter}}"/>
    </Grid>
</Window>

For reference, here the App.xaml:

<Application x:Class="TelerikWpf.Sandbox.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    StartupUri="MainWindow.xaml">
    <Application.Resources>
      <ResourceDictionary>
          <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/System.Windows.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Cloud.Controls.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.RibbonView.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.RichTextBox.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Diagrams.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Diagrams.Extensions.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Diagrams.Ribbon.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Docking.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.ScheduleView.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.GanttView.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.FileDialogs.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.DataVisualization.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Pivot.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.PivotFieldList.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.ImageEditor.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.VirtualGrid.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Spreadsheet.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.ConversationalUI.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.Media.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/Telerik.Windows.Controls.SyntaxEditor.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/telerik.windows.controls.fixeddocumentviewersui.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/telerik.windows.documents.proofing.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/telerik.windows.controls.spreadsheetui.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/telerik.windows.controls.data.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/telerik.windows.controls.chart.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/telerik.windows.controls.expressions.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Fluent;component/Themes/telerik.windows.controls.fixeddocumentviewers.xaml"/>
          </ResourceDictionary.MergedDictionaries>
      </ResourceDictionary>
    </Application.Resources>
</Application>

I did a test using the DLL after installation of the latest release (C:\Program Files (x86)\Progress\Telerik UI for WPF R3 2022\Binaries.NoXaml\WPF60) and same issue

I also tested using .Net7 and the correct telerik wpf nuget and same results.

Is it a bug ? 

Thank you for your help

 

Vicky
Telerik team
 answered on 17 Nov 2022
1 answer
167 views

In documentation I noticed that  ThumbNailFactory class is part of Windows for WPF product. I wonder if there is a similar class that could be used in ASP.net core apps ?

 

 

Thank you

Dimitar
Telerik team
 answered on 17 Nov 2022
0 answers
122 views
Is it possible to create the MapShapeReader by passing the XmlDocument object or do I have to save it locally and pass the path?
Ohad
Top achievements
Rank 3
Bronze
Iron
Iron
 asked on 17 Nov 2022
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
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
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?