Telerik Forums
UI for WinForms Forum
1 answer
240 views

I have a pageview in strip mode with the items on the left.

I'd like to keep the width of those tabs at a static value, as I am adding/removing tabs and the resizing is a bit visually jarring.  Is this possible?  And if so, how? 

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

Hello!  I am using the ExplorerControl for an application where I want to limit the user to selecting files and folders - they should otherwise be completely unable to modify the filesystem.  Is there a way to disable the feature where the user selects a file or folder, then selects it again, and the file entry changes to let them edit the name of the selected item?



This occurs with both a mouse and touchscreen selection; I'd like to disable both of these cases.   To clarify, this is distinct from the "rename" feature of the Windows context menu, which normally appears on mouse right-click (and can be disabled by handling that event).

Thanks for your help!

--Ed

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

Greetings,

I've tested the image export functionality of RadChartView, however, the output quality isn't quite high, and therefore, it isn't appropriate for printing stuff (I tested JPEG format).

I also searched for PDF output of RadChartView, most implemented methods are all about putting an exported image of RadChartView into a PDF document.

First Question : Is it possible to export a high-quality image of RadChartView? and is it possible to change the background color of the exported image? (as default it exports the image with white background; JPEG)

Second Question : What's the best way to export a RadChartview into a PDF document?

 

Thanks in advance.

 

 

 

 

 

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

I have a Telerik WinForm RadGridView and I have a GridViewCheckBoxColumn column where the user can check/uncheck all of the rows in the grid. I'm able to click the header check box to uncheck or check all of the rows. I'm trying to implement the ability that it will only check or uncheck all of the visible rows in the grid. For example, if the user filtered one of the columns I'd like the header check/uncheck to only toggle based on the filtered rows and not all the rows. Currently, it appears the default functionality is to change all the rows.

I found this article: https://docs.telerik.com/devtools/winforms/controls/gridview/rows/rows-vs-childrows that explains how you can access either the rows or childrows collections to access all the data or the filtered data. I added an event to the CellValueChanged event and created a break point in that new method. Within that event the rows and childrows are the same (i.e. the row count was the exact same). However, within the ValueChanged event it correctly shows the childrows based on the current filters.

Is there another event where I should be capturing the check/uncheck event from the header that correctly lists the childrows data?

I tried creating a separate button to toggle the check boxes and used this article: https://www.telerik.com/forums/how-to-get-all-row-with-checkboxcolumn-checked to update the rows. But I have more than 5,000 records and it takes a very long time to iterate over all the rows. Is there an easier way to uncheck/check all the rows other than iterating over the rows collection?

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Aug 2021
19 answers
367 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
123 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
161 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
99 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
917 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
226 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
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
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
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
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
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
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
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?