Telerik Forums
UI for WinForms Forum
0 answers
187 views

Hello to the team,

 

This is my problem :

I have a screen with rapMap (which represents World) in my local PC, with 2 labels representing a travel between country A and country B.

When I run my application on another PC than mine, the background of the map disappears (the labels are OK).

 

What could I do to solve this problem ? 

 

Thanks a lot for advance,

Thierry 

 

Thierry
Top achievements
Rank 1
 asked on 11 Aug 2021
1 answer
119 views

Hi.

I found an old posting (KB, forum, ??) about how to use a custom dialog to edit an existing data row in the grid.

That required the GridCellDoubleClick and GridCommandCellClick events to be intercepted.

I need to have the same dialog appear when adding a new row.  What is the best way to get this done?  Should I intercept the DefaultValuesNeeded event or the CreateRow event?

If I use the DefaultValuesNeeded event, if I have the underlying record created when the add operation starts, will any changes to that underlying record be reflected in the grid view automatically?

Thanks

-marc

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Aug 2021
6 answers
1.1K+ views

Could you tell me if it is possible to change the colour of the item being hovered over within a dynamically created RadContextMenu. I have implemented the code below but it is leaving a "shadow" background system default (see attached) (with 

From init code:

 e.ContextMenu.MouseMove += ContextMenu_MouseMove;


Within Form code:

RadMenuItem lastHoveredItem;
private void  ContextMenu_MouseMove(object sender, MouseEventArgs e)
        {
            RadDropDownMenu menu = (RadDropDownMenu)sender;
            RadMenuItem hoveredItem = menu.ElementTree.GetElementAtPoint(e.Location) as RadMenuItem;
            if (hoveredItem != null)
            {
                if(lastHoveredItem != null && lastHoveredItem != hoveredItem)
                {
                    lastHoveredItem.FillPrimitive.ResetValue(FillPrimitive.BackColorProperty, ValueResetFlags.Local);
                    lastHoveredItem.FillPrimitive.ResetValue(FillPrimitive.ForeColorProperty, ValueResetFlags.Local);
                    lastHoveredItem.ForeColor = Color.Black;
                }

                hoveredItem.FillPrimitive.BackColor = Theming.Current.HighlightedBackground;
                hoveredItem.ForeColor = Theming.Current.HighlightedText1;
                lastHoveredItem = hoveredItem;
            }

        }

The Reset value above is not resetting the ForeColor thus the hard coding back to Black.

 

UPDATE:

The menu items are dynamically created with menu.Items.Clear() called each time. I have created a method which is called once the context menu has been built which runs the code you suggested (looping through the items within the menu) but I am once again getting the "lagged" yellow highlight color showing. It seems to be due to the child/nested context menu entries as I get no issue on single context menus with no children - see newly attached image

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Aug 2021
1 answer
273 views

Hello,

I would like to use the radWebCam to take snapshots. When taking a snapshot and afterwards clicking the saving button, it is automatically saved.

- Is there a possibility to modify this saving process? I would like to access the snapshot to display it in a picture box in my application
- In which directory the snapshots are saved?
- Can I chose the filename and the diractory to which a snapshot is saved?

Thank you and have a great weekend!

Jana

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Aug 2021
1 answer
292 views

How to use multiple lines when editing cells?

https://www.telerik.com/forums/auto-row-height-with-multiline-cell

Although I refer to the above page, cells with multiple lines work normally, but cells with only one line do not display text in Edit-Mode.

 

        private void gridTextData__CellEditorInitialized(object sender, VirtualGridCellEditorInitializedEventArgs e)
        {
            var textediter = e.ActiveEditor as VirtualGridTextBoxEditor;
            if (textediter != null)
            {
                textediter.Multiline = true;
            }

        }

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Aug 2021
1 answer
241 views

Hello,

I'd like to localize the RichTextEditorRibbonBar. I've found an useful link with a sample xml file which helped me to localize some parts. But it seems it doesn't contain all the controls of the RichTextEditorRibbonBar. For example - I wasn't able to localize the Simplified Layout:

There is no occurrence of a word Simplified in the xml file.

How should I localize this?

Thanks

Tomáš

Nadya | Tech Support Engineer
Telerik team
 answered on 06 Aug 2021
1 answer
136 views

I want to prompt the user some messages if the values of PropertiGrid changed  when they close the RadForm. 

 

How do I do that? Thanks!

Nadya | Tech Support Engineer
Telerik team
 answered on 06 Aug 2021
1 answer
616 views
I don't know how to get data from each column in RadListView. How to get data from first column?
Thanks for reading!
Nadya | Tech Support Engineer
Telerik team
 answered on 06 Aug 2021
1 answer
326 views

hello

I need to create whatsapp ui that can send files and voice notes to other client

As there any way to do it with chat ui ??

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 Aug 2021
1 answer
107 views

Hello All,

I  have converted my Winforms C# Application to Telerik using the Telerik conversion extension tool in VS 2017 . It is converted but I see the events are not associated with the control even though the code exists in the code behind file.

Is this a known issue?  Any suggestion or help is really appreciated.

Example: A Raddropdown list selected index change event is not tied to the Raddropdown. I see the event in the code behind.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Aug 2021
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?