Telerik Forums
UI for WinForms Forum
3 answers
694 views

How do I copy the the current image to the Clipboard?

 

Clipboard.SetImage(radImageEditor1.?);

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Dec 2020
4 answers
154 views

I have a pushbutton to save current image to disk.  2 problems

 

1. it takes at least 15 seconds for FileSaveDialog to open?

 

2. Cannot get SaveImage or SaveImageAs to work.  

 

Code: Below:

private void butSavePreview_Click(object sender, EventArgs e)

        {
            string saveFName;
            saveFName = Path.GetFileNameWithoutExtension(dgvFiles.CurrentRow.Cells[1].Value.ToString());
            radSaveFileDialog1.FileName = saveFName;
            radSaveFileDialog1.Filter = "JPG | *.jpg";
            if (radSaveFileDialog1.ShowDialog() == DialogResult.OK)
            {
                saveFName = radSaveFileDialog1.FileName + ".jpg";

                radImageEditor1.SaveImage(saveFName);
            }
        }

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Dec 2020
4 answers
615 views

I collapse some groups of RadPropertyGrid programmatically, but it's don't work. Those groups collapse, but I can't expand it with the mouse. those appear as disabled.

 

        #region RPG: CONFIGURACION DE GRUPOS----------------------ini

        private void rpgMaquina_CustomGrouping(object sender, PropertyGridCustomGroupingEventArgs e)
        {
            switch (e.Item.Category)
            {
                case "General": e.GroupKey = 0; e.Handled = true; break;
                case "Inventario": e.GroupKey = 1; e.Handled = true; break;
           
                case "Pares de apriete": e.GroupKey = 2; e.Handled = true; break;
                case "Accesorios": e.GroupKey = 3; e.Handled = true; break;

                default:
                    break;
            }


        }

        private void rpgMaquina_ItemFormatting(object sender, PropertyGridItemFormattingEventArgs e)
        {
            PropertyGridGroupItem groupItem = e.Item as PropertyGridGroupItem;
            if (groupItem != null)
            {
                e.Item.Label = groupItem.GridItems[0].Category;
                if (e.Item.Label == "Inventario" || e.Item.Label == "Accesorios")
                {
                    groupItem.Collapse();
                    //groupItem.Enabled = true;

                }

            }
        }
        #endregion RPG: CONFIGURACION DE GRUPOS-------------------fin

Nadya | Tech Support Engineer
Telerik team
 answered on 01 Dec 2020
1 answer
250 views

Hi,

Actually, I have data as attached Data.png file. I have to create a bar chart for Pendency type grouped in Project wise, Level wise just like attached BarChartMultipleGroups.png file.

Please help me to achieve this.

Thank You.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Nov 2020
1 answer
627 views

I have a gridview with 3 columns and I want to make sure that all cells in the row have a value in them.  If col0 is null and the user goes back and enterd data, the event does not detect the changes and just gets stuck in the col0 cell.   As you can see, I tried a couple of different ways.  Below is my code:

 

private void dgvCatagories_CellValidating(object sender, CellValidatingEventArgs e)
        {
            try
            {
                GridViewDataColumn column = e.Column as GridViewDataColumn;
                // if (string.IsNullOrEmpty((string)e.Row.Cells["Col0"].Value) || ((string)e.Row.Cells["Col0"].Value).Trim() == string.Empty ||
                //        string.IsNullOrEmpty((string)e.Row.Cells["Col1"].Value) || ((string)e.Row.Cells["Col1"].Value).Trim() == string.Empty ||
                //        string.IsNullOrEmpty((string)e.Row.Cells["Col2"].Value) || ((string)e.Row.Cells["Col2"].Value).Trim() == string.Empty)
                if (e.Row is GridViewDataRowInfo && column != null && column.Name == "Col0" ||
                e.Row is GridViewDataRowInfo && column != null && column.Name == "Col1" ||
                e.Row is GridViewDataRowInfo && column != null && column.Name == "Col2")             
                {

                    e.Cancel = true;
                    ((GridViewDataRowInfo)e.Row).ErrorText = "Cell Can Not Be Blank";

                }
                else
                {
                    ((GridViewDataRowInfo)e.Row).ErrorText = string.Empty;
                }

            }
            catch (Exception ex)
            {
                LogFile(ex.Message, ex.ToString(), "dgvCatagories_CellValidating", this.FindForm().Name);
            }
        }

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Nov 2020
1 answer
436 views

Hi,

All examples, forums and online docs discuss calling GridViewSpreadExport's RunExport method on every iteration of a loop when exporting multiple RadGridViews.

This is costly as the Excel document is opened, written to and saved on every iteration.

Is there a way of avoiding having to call RunExport on every iteration?
Ideally, you'd want to setup multiple Excel sheets from RadgRidViews in memory and then issue the RunExport command outside of the loop.

Is there a mechanism to achieve this, either with GridViewSpreadExport  / SpreadExportRenderer or other...?

 

Thanks

Nadya | Tech Support Engineer
Telerik team
 answered on 26 Nov 2020
3 answers
98 views

The setting does not work when the range is left at its default setting.
Setting does not work when only one default setting is modified.

 

version: 2019.2.618.40

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Nov 2020
2 answers
123 views

How to line up english message in chat bubble

Hello, ChatBubble has problem.

ex)

(e.ItemElement as TextMessageItemElement).MainMessageElement.TextAlignment = ContentAlignment.MiddleLeft;
(e.ItemElement as TextMessageItemElement).MainMessageElement.UseCompatibleTextRendering = false;

When UseCompatibleTextRendering's value is false, english Line spacing fails.

But another language line spacing successes.

So, How to line spacing english? I want to solve it.

Thanks.

Nadya | Tech Support Engineer
Telerik team
 answered on 25 Nov 2020
1 answer
160 views

I have two ChartView, one displaying moving average indicators and the other displaying other technical indicators, which have the same timeline.

How can I using one RangeSelector to control the two ChartView at the same time.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Nov 2020
3 answers
1.1K+ views

Hi,

 

I am using the ValueChanged event to detect changes in the grid that contains Checkboxes and I assign true to a variable which I use later to ask if it is true. But if with a second click I return to its previous value, the value has not really changed. How do I detect if something has really changed in the grid?

 

This is my code:

 

        private void rgvPerfiles_ValueChanged(object sender, EventArgs e)
        {                                                                         
            if (this.rgvPerfiles.ActiveEditor is RadCheckBoxEditor)
            {
                hayCambiosPendientes = true;
            }
        }

Best regards.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Nov 2020
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?