Telerik Forums
UI for WinForms Forum
1 answer
691 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
492 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
125 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
154 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
184 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
4 answers
139 views

Hello,

I have searched but not found any solution to somehow make the horizontal line for the full hour in scheduler.
Please see the attached image. I'm struggling to put words on this ;)

Any help or suggestions are appreciated.

Thank you!

Jan
Top achievements
Rank 1
 answered on 20 Nov 2020
1 answer
196 views

Hello,

is it possible to change initial directory of open image dialog in image editor? I tried to set current directory by Directory.SetCurrentDirectory, but it seems it uses always some last opened directory.

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

Greetings,

 

Supposing that a Radgridview has 4 columns and the second one is the current column (our target).

Is it possible to change backcolor of not all the rows of the current column, but only the header cell of the color  ? As if the column is highlighted or selected

I attached a picture

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 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
CollapsiblePanel
TextBoxControl
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
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?