Telerik Forums
UI for WinForms Forum
4 answers
180 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
684 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
274 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
680 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
486 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
123 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
152 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
179 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.2K+ 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
7 answers
4.8K+ views

Hello

I started a Winforms .net 3.1 project. All Telerik components are not visible in the Toolbox. When I try adding them (Right-clink in General, Chose-items, etc.) I can see all the Telerik components, checked, and when I uncheck-recheck a few nothing happens. The Telerik menu is visible and active in the Extensions menu. 

Also all forms (in designer mode) show this error: "The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: \r\n NewEmailForm --- The base class 'Telerik.WinControls.UI.RadForm' could not be loaded. Ensure the assembly has been referenced and that all projects have been built." Even though the project is cleaned and rebuild multiple times. When run in dbeug mode, all runs fine without errors. The designer for any form is just not usable.

When trying to add a new RadForm i get and error about "Scenario wizard cannot be launched..." (see attached). I am thinking it cannot load the assembly files, yet everything runs fine when debugging and part of VS2019 seem to be aware of installation.

 

This only happens in a .NET Core (3.1) project. If I do the same on a .NET Framework project all works well.

 

Here are my versions:

- Microsoft Visual Studio Enterprise 2019 / Version 16.6.4
- Microsoft Windows 10 Enterprise / Version 10.0.1.18363 Build 18363
- Telerik UI for Winforms 2020.1.218.310

 

 

Thanks

Herald

 

 

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)
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?