Telerik Forums
UI for WinForms Forum
19 answers
533 views
Does anyone know how to get a dropdownlist to function (bindings) on the new radDataEntry form.   I am so frustrated with the lack of examples and documentation with Telerik!  
Michael
Top achievements
Rank 1
Iron
 answered on 12 Aug 2021
1 answer
200 views

 

What I am trying to do is to check whether the current cell element containing an appointment inside a 'scheduler_click event'.

It appears when the current cell does not contain an appointment, the currentCellElementDate shows correctly. However, if the current cell does contain an appointment, the currentCellElementDate 'Time' is wrong always.

        private void radScheduler1_Click (object sender, EventArgs e)
        {        
            cmdCreateTest.Enabled = true;
            cmdSubmitTest.Enabled = false;
            cmdRemoveTest.Enabled = false;
           
            DateTime currentCellElementDate = this.radScheduler1.SelectionBehavior.CurrentCellElement.Date;            

            foreach (AppointmentElement appointmentElement in this.radScheduler1.ViewElement.GetAppointmentElements())
            {
                Debug.WriteLine(appointmentElement.Start + " : " + currentCellElementDate);
                if (appointmentElement.Start == currentCellElementDate)
                {
                    cmdCreateTest.Enabled = false;
                    cmdSubmitTest.Enabled = true;
                    cmdRemoveTest.Enabled = true;                
                    break;
                }
            }
        }

   
   
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Aug 2021
0 answers
218 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
168 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.3K+ 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
316 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
352 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
289 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
182 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
692 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
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)
Form
Chart (obsolete as of Q1 2013)
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?