Telerik Forums
UI for WPF Forum
0 answers
121 views

Hi,

I an using RadMaskedCurrencyInput control for taking number from input its work fine for using English Keyboard. The problem is when I change the system language to Japanese and enter number using NumPad , instead of new value replace with entered one, new value is concatenate with previous value. Like if 415 is already entered, I switch the Keyboard to Japanese  and select the previous entered value and type new number 325, Predication window is open and choose the number 325. After's electing value, our RadMaskedCurrencyInput  shows 325415 value instead of 325.
Please help me to resolve this.


Thanks in Advance.

Sajid
Top achievements
Rank 1
 asked on 22 Aug 2022
1 answer
195 views

Hi,

I use a RadGridView to display a collection of object. I use it for display only, no user input needed except for a button in the last column.

Why I use this control for such display and not a ListBox: a ListBox would require me to create an ItemTemplate but I need to keep constant columns width between my object properties so I can have a consistent alignment for all items. Also the columns should always be set to the largest control within it.

I remove most features that makes it look like a table: 

<telerik:RadGridView x:Name="radGridView"
                                 ItemsSource="{Binding Items}"
                                 ShowColumnHeaders="False" ShowGroupPanel="False"
                                 RowIndicatorVisibility="Collapsed"
                                 AlternateRowBackground="Transparent"
                                 AutoGenerateColumns="False"
                                 GridLinesVisibility="None"
                                 CanUserFreezeColumns="False" CanUserReorderColumns="False"
                                 CanUserSelectColumns="False">

I also set CanUserSelect="False" and  IsSynchronizedWithCurrentItem="False" but that didn't seem to work...

The last step would be to remove the selection and its display. I would like to remove the focus and color change when click on a row. I tried to set IsHitTestVisible = "False" but it prevent me to use my buttons in the last column.. 

                                

Any suggestions ?

Thank you for your help

Stenly
Telerik team
 answered on 19 Aug 2022
1 answer
288 views

Trying to upgrade my C# WPF application to the latest telerik version using the Upgrade Wizard,

It crash right after starting the upgrade with:

 

An error occurred while running the wizard.

Error executing custom action Telerik.Windows.WPF.VSX.Actions.MultiProjectUpdateReferencesAction: System.Runtime.InteropServices.COMException (0x80004005): This reference cannot be removed from the project because it is always referenced by the compiler.
   at VSLangProj.Reference.Remove()
   at Telerik.VSX.ProjectConfigurators.ApplicationReferenceManager.RemoveReferences()
   at Telerik.VSX.ProjectConfigurators.ApplicationReferenceManager.UpdateReferences()
   at Telerik.VSX.Actions.UpdateReferencesAction.UpdateReferences(IProjectWrapUIComponents projectWrap)
   at Telerik.VSX.Actions.MultiProjectActionBase`1.Execute(WizardContext wizardContext, IPropertyDataDictionary arguments)
   at Telerik.VSX.Actions.MultiProjectUpdateReferencesActionBase`1.Execute(WizardContext wizardContext, IPropertyDataDictionary arguments)
   at Telerik.VSX.WizardEngine.ActionManager.ExecActions()

 

Tried in VS2019 and VS2022, same results. Installed the latest Telerik extension from the VS Extension market.

Nikolay Mishev
Telerik team
 answered on 19 Aug 2022
1 answer
432 views

Hi,

I am unable to show the dynamic timer countdown in the GridView cell. 

can you please help me with the proper method. Refer to the attached video for more details.

 

Thank you

 

Stenly
Telerik team
 answered on 18 Aug 2022
0 answers
215 views

When I execute this code to open a window in the application, I see in the Diagnostic Tool that the window is cleaned

var dialog = new TestWindow();
dialog.Show();

<Window x:Class="BusinessModules.WfmModule.Views.TestWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        mc:Ignorable="d"
       Height="450" Width="800">
    <Grid/>
</Window>

public partial class TestWindow
{
    public TestWindow()
    {
        InitializeComponent();
    }
}

 

But if I change to RadWindow

 

<telerik:RadWindow x:Class="BusinessModules.WfmModule.Views.TestWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        mc:Ignorable="d"
       Height="450" Width="800">
    <Grid/>
</telerik:RadWindow>

I see that the window is not cleaned

This is after I opened it 18 times and of course closed all the windows

 

Would appreciate help

 

Ohad
Top achievements
Rank 3
Bronze
Iron
Iron
 updated question on 18 Aug 2022
1 answer
112 views

When you use a MentionContext on a RadRichTextBox and you are on the last line of the text box, it does not pop open a Mention Context Menu when using the Context Character.  You have to hit a return to expand the box, and then move up a line, and then use the mention Character. 

Am I missing something or was this done by design? 

Is there a way to trick it into thinking it isn't the last line? 

Can it be fixed to possibly open upward instead of downward?  Since my example is only one line, an upward solution wouldn't work for me either.

 


Dimitar
Telerik team
 answered on 17 Aug 2022
1 answer
117 views

Hello,

 

I've updated my WPF project to 2022 R2 package, and after the update, all of the RadButtons became perfectly square, despite them having rounded corners.

Am I missing something? Is is because of the update? I did not change anything with the theme (and neither anything else).

Masha
Telerik team
 answered on 17 Aug 2022
1 answer
105 views
Right now, my trackball information appears directly over the mouse point.  It obscures the trackball line and the point on the plot about which info is being shown.  Like this:





What I would like is some sort of "smart" placement that puts the tip on one side or the other -- or even above, based on how much room is available.  Here's a crude example I hacked up merely by hard-coding the margin to be 100 pixels offset

            <tk:RadCartesianChart.TrackBallInfoStyle> 
                <Style TargetType="{x:Type tk:TrackBallInfoControl}"> 
                    <Setter Property="Margin" Value="100 0 0 0"/>
                </Style> 
            </tk:RadCartesianChart.TrackBallInfoStyle> 
The result is better but obviously does nothing to account for the actual font size (which could make 100 pixels not enough or too much) or location of the mouse on the control.  If I'm on the far right side of my chart, I want this info tip to move to the left so I can still read all of it.



As you can see, I've customized the TrackBallInfoTemplate quite a bit.   Maybe this option already existed and I broke it/neglected to set it in my customizations?  I cannot see any properties on the control that might let me set it.

Does anything like this exist?  Or do I need a really complicated converter...?
Martin Ivanov
Telerik team
 answered on 16 Aug 2022
0 answers
146 views

how can I specify MultipleSelectionBoxTemplate which i can access properties of selected items ?

i have an employee class 

    public class Employee {
    public string Firstname {get;set;}
    public string Lastname {get;set;}
    }



I am using Telerik radCombobox in my wpf application to display list of employee 

              <telerik:RadComboBox x:Name="radComboBox"
                                     Width="200" 
                                     AllowMultipleSelection="True" 
                                     ItemsSource="{Binding Path=EmployeeList}"  
                                     >

                    <telerik:RadComboBox.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Path=Lastname}" />
                        </DataTemplate>
                    </telerik:RadComboBox.ItemTemplate>

note: this code simplified , i have to use ItemTemplate  because i set textblock style based on some condition 


this works fine for item template  but when i select an item the display text in combobox show  full name of Employee class (namespace + class name ) not the Lastname
i tried 

             <telerik:RadComboBox.MultipleSelectionBoxTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Path=Lastname}" />
                        </DataTemplate>
                    </telerik:RadComboBox.MultipleSelectionBoxTemplate>


i get no result , the combobox displayvalue of selected item is always empty.

i tried another solution 

                    <telerik:RadComboBox.MultipleSelectionBoxTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Path=SelectedItems,Converter={StaticResource SelectionToCustomStringCoverter}}" />
                        </DataTemplate>
                    </telerik:RadComboBox.MultipleSelectionBoxTemplate>

this neither work , the converter always execute at first selection 

this is really crazy spending 4 hours to figure out a simple thing , 
so my question is how can i specify MultipleSelectionBoxTemplate which i can access properties of selected items .



  
ARASH
Top achievements
Rank 1
 asked on 16 Aug 2022
1 answer
134 views

Hello, 

Using the DiagramDesignToolBox_WPF project diagram control (from Telerik's github) samples, I created a basic diagram. See attached.

Once the diagram is loaded, is it possible to associate commands such as click, be able to update the diagram object's background color, be able to update the diagram object's text, etc.?

Thanks,

Mark

One last question:

My Telerik subscription provides me with X support tickets per year but I can't find where to create a new support ticket. I see my past tickets that I've created but no where can I start a new one. How can I start a 'priority' question that is associated with my paid Telerik subscription?

Dilyan Traykov
Telerik team
 answered on 16 Aug 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
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?