Telerik Forums
UI for WinForms Forum
1 answer
7 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
23 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
107 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
14 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
14 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
14 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
28 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
20 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
14 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
11 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
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
Calendar, DateTimePicker, TimePicker and Clock
ChartView
ComboBox and ListBox (obsolete as of Q2 2010)
Buttons, RadioButton, CheckBox, etc
Chart (obsolete as of Q1 2013)
DropDownList
ListView
PageView
Form
MultiColumn ComboBox
TextBox
Menu
PropertyGrid
RichTextEditor
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
Tabstrip (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
MaskedEditBox
CommandBar
Carousel
ListControl
Panorama
PdfViewer and PdfViewerNavigator
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
AutoCompleteBox
VirtualGrid
Label
Panel
ContextMenu
Visual Studio Extensions
Documentation
TitleBar
SplitContainer
DesktopAlert
Rotator
Map
TrackBar
ProgressBar
SpinEditor
StatusStrip
MessageBox
ShapedForm
CheckedDropDownList
CheckedListBox
LayoutControl
Spreadsheet
CAB Enabling Kit
CollapsiblePanel
Conversational UI, Chat
Wizard
ScrollablePanel
TextBoxControl
WaitingBar
BrowseEditor
DateTimePicker
GroupBox
TabbedForm
Tools - VSB, Control Spy, Shape Editor
ImageEditor
DataEntry
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ScrollBar
ApplicationMenu
ColorDialog
RangeSelector
DataFilter
CardView
SyntaxEditor
BindingNavigator
PopupEditor
Barcode
ColorBox
WebCam
VirtualKeyboard
Callout
CalculatorDropDown
DataLayout
ValidationProvider
Styling
BreadCrumb
FontDropDownList
PictureBox
RibbonForm
TimePicker
ToastNotificationManager
Accessibility
ButtonTextBox
Licensing
Localization
Rating
Security
Separator
SparkLine
TimeSpanPicker
FilterView
TaskBoard
+? more
Top users last month
Matthias
Top achievements
Rank 5
Bronze
Bronze
Iron
Psyduck
Top achievements
Rank 4
Bronze
Bronze
Iron
Liu
Top achievements
Rank 1
Iron
Alex
Top achievements
Rank 1
Veteran
Iron
Iron
George C.
Top achievements
Rank 2
Iron
Veteran
Top users last month
Matthias
Top achievements
Rank 5
Bronze
Bronze
Iron
Psyduck
Top achievements
Rank 4
Bronze
Bronze
Iron
Liu
Top achievements
Rank 1
Iron
Alex
Top achievements
Rank 1
Veteran
Iron
Iron
George C.
Top achievements
Rank 2
Iron
Veteran