Telerik Forums
UI for WinForms Forum
1 answer
169 views
I hope that I could use TreeView but there is no option, only to load XML which needs a TreeView definition structure.
(same hope I had for JSON)
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Nov 2022
5 answers
293 views
I have a GridViewComboBoxColumn with AutoCompleteMode = SugestAppend, and DropDownStyle = DropDown, and a DataSource of a DataSet with a blank record at the top (so a selection can be removed). If you use the drop down button and select the blank entry then the cell in the GridView clears as expected.  However, if you clear the data in the cell instead, it does not select the blank entry in the drop down list, and when you tab away from that cell the value goes back to what it was before the delete.
Alessandro
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 11 Nov 2022
1 answer
707 views

I am just now attempting a RadSpreadSheet project, and am not finding an example of how to import and populate the form with an SQL Server Stored Procedure.

Can you provide a sample code please?

 

Thanks,

Peshito
Telerik team
 answered on 11 Nov 2022
0 answers
241 views

Hi,

On Telerik for Winforms 2022.3.109.45, using VS 2022 Enterprise on a .Net 7 project, I encounter this error when trying to migrate my projects to the latest Winforms components version, using the Wizard

I'm trying to upgrade from 2022.3.921.48

The wizard encountered an error while trying to handle user event.

System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
   à Telerik.VSX.Internal.FileSystem.GacPathDetector.IsGacBased()
   à Telerik.VSX.Internal.ProjectManagement.ApplicationProjectAssemblyReference.EnsureLoadInformation()
   à Telerik.VSX.Internal.ProjectManagement.ApplicationProjectAssemblyReference.get_LoadInformation()
   à Telerik.VSX.Internal.ProjectManagement.ProjectAssemblyReferenceBase.GetAssemblyReference()
   à Telerik.VSX.Internal.ProjectManagement.ProjectWrapUIComponentsBase.get_IsTelerikReferenceValid()
   à Telerik.VSX.ProjectListing.ProjectListerItemHelper.GetDistributionVersion(IProjectWrapUIComponents projectWrap)
   à Telerik.VSX.ProjectListing.ProjectListerItemHelper.GetTitle(IProjectWrapUIComponents projectWrap)
   à Telerik.VSX.DistributionListing.CheckableItemFactory.Create[T](IList`1 list, Func`2 getTitleFunc, Action`1 callback, Boolean isChecked)
   à Telerik.VSX.Wizards.ViewModels.UpgradeProjectWizardViewModel`2.get_AllProjectItems()
   à Telerik.VSX.Wizards.ViewModels.UpgradeProjectWizardViewModel`2.GetProjectsWithVersionLessThanSelectedDistributionVersion()
   à Telerik.VSX.Wizards.ViewModels.UpgradeProjectWizardViewModel`2.OnCurrentDistributionPropertyChanged(Object sender, PropertyChangedEventArgs e)
   à Telerik.WizardFramework.ScenarioDriven.ViewModelBase.RaisePropertyChanged(String propertyName)
   à Telerik.VSX.ViewModels.DistributionChooserViewModelBase`1.get_CurrentDistribution()
   à Telerik.WinControls.VSX.Wizards.UpgradeProjectWizardBase`2.TryGetDistributionToken(Version targetFramework)
   à Telerik.WinControls.VSX.Wizards.UpgradeProjectWizardBase`2.TryGetMainLoadInformation(Version targetFramework)
   à Telerik.VSX.WizardEngine.Controls.WizardControlBase.PopulateCollectedValues(IPropertyDataDictionary gatheredData)
   à Telerik.VSX.WizardFramework.Pages.DynamicPageController.GetData()
   à Telerik.WizardFramework.Wizard.GetCurrentPageData()
   à Telerik.WizardFramework.Wizard.UpdateNavigation()
   à Telerik.WizardEngine.Helpers.EventHelper.CatchExceptionAndSendReport(Action action)
Jérôme
Top achievements
Rank 1
Iron
Iron
Iron
 updated question on 10 Nov 2022
1 answer
354 views

Hi, 

 

I'm trying to create two radio buttons with superscript text on them usch as this

Is this possible ?

I have tried 1.0ms for the radio button text and-1 as a label, both with transparent backgrounds, but when I overlay them the radio button masks the -1 superscript label when it overlaps the radio button. I believe html in RadLabel does not support superscript / subscript either.

How do I acheive this effect?

Regards

Toby

 

 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Nov 2022
1 answer
619 views

Hi Support,

I want to know how to do Telerik Reporting of HTML Text box read css function. Now I added css function and then html textbox is not working.

If I add below text in to html text box of reporting but not working.

<title>Untitled</title><style type="text/css">p { margin-top: 0px;margin-bottom: 0px;line-height: 1.15; } body { font-family: 'Verdana';font-style: Normal;font-weight: normal;font-size: 16px; } .Normal { telerik-style-type: paragraph;telerik-style-name: Normal;border-collapse: collapse; } .TableNormal { telerik-style-type: table;telerik-style-name: TableNormal;border-collapse: collapse; } .NormalWeb { telerik-style-type: paragraph;telerik-style-name: NormalWeb;margin-top: 6.66px;margin-bottom: 6.66px;border-collapse: collapse; } .s_22077F37 { telerik-style-type: local;font-family: 'Microsoft YaHei';font-size: 16px; } .s_2C3B84B0 { telerik-style-type: local;font-family: 'Times New Roman';font-size: 16px; } </style><p class="NormalWeb "><span class="s_22077F37">Testing and Testing.</span><span class="s_2C3B84B0"></span></p>

 

 

If html textbox can't read and can't do your side also, how to remove css logic in HTMLEditControl. I read from there and I use telerik report that html. If I do myself remove css logic in html , reporting no issue. Please advise to me how to do . Now I am using HTMLEditControl and Telerik REport of html text box.

 

Thanks,

Moe

Momchil
Telerik team
 answered on 10 Nov 2022
1 answer
194 views

Hi everyone,

When exporting my grid view to pdf, all the form components shrink and their text doesn't fit inside the component. I will share my code block and some screenshots with you. I look around for some clues but i didn't find anything. Please explain me how is this happening.

                GridViewSpreadExport spreadExporter = new GridViewSpreadExport(this.exportGrid, SpreadExportFormat.Pdf);
                SpreadExportRenderer exportRenderer = new SpreadExportRenderer();

                spreadExporter.ExportVisualSettings = true;
                spreadExporter.RunExportAsync(this.fileDialog.FileName, exportRenderer);

           

                
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Nov 2022
1 answer
559 views

***Updated with simple standalone project attachment (ViewCellFormatting.zip)

Problem Statement:

After initial load of RadGridView with ViewCellFormatting, the appearance looks desaturated/washed out (as shown in Figure 1), until I manually mouseover the rows (as shown in Figure 2 & Figure 3).

Formatting Cells:

private void dgvMap_ViewCellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e)
        {
         if (e.CellElement is GridCellElement && e.CellElement.Text.Trim().Length != 0)
            {
               
                    Color c = Color.Black;
                    e.CellElement.ForeColor = Color.Black;
                    e.CellElement.BackColor = c;
                    e.CellElement.DrawFill = true;
            }
        }

 

Figure 1 (Initial Load):

Figure 2 (Manual Mouse Roll Over - partial):

Figure 3 (Manual Mouse Roll Over - Full):

WEI TZE
Top achievements
Rank 2
Iron
Iron
 updated question on 10 Nov 2022
1 answer
108 views
Is there any way to save and load filtered GridviewColorColumn columns correctly? Saving works correctly, but when loading the saved xml, only a conversion error (expected data type probably int32) is displayed.
Dinko | Tech Support Engineer
Telerik team
 answered on 10 Nov 2022
1 answer
297 views

[C# WinForm]

Regarding the Row Header (as shown in the figure below: (R1, R2, R3,...)

Question:

  1. How to get the Text of the Row Header?  - E.g. string rowHeaderText = radGridView1.Rows[0].......

Reference:

https://www.telerik.com/forums/radgridview-row-header-related-questions

Based on the reference topic, I have attempted the to get the Row Header using Visual Rows.

var cellContent = this.radGridView1.TableElement.VisualRows[0].VisualCells[0].Text;

But seems like the VisualRows doesn't reflect all the rows.

For example, I have populated 77 rows as shown in first figure below.

However, the count of VisualRows is 4 only (as shown in second figure).

 

 

Formatting Row Header:

private void dgvMap_ViewCellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e)
        {
            if (e.CellElement is GridRowHeaderCellElement)
            {
                    e.CellElement.Text = string.Format("R{0}", dgvMap.CurrentView.ViewInfo.Rows.IndexOf(e.Row) + 1);
                    var element = new RadButtonElement();
                    element.Margin = new Padding(3, 3, 3, 3);
                    element.Padding = new Padding(2, 0, 2, -2);
                    element.ImageAlignment = ContentAlignment.MiddleCenter;
                    element.Alignment = ContentAlignment.MiddleCenter;
                    element.ForeColor = Color.Black;
                    element.Text = string.Format("R{0}", dgvMap.CurrentView.ViewInfo.Rows.IndexOf(e.Row) + 1);
                    element.AutoSizeMode = RadAutoSizeMode.Auto;
                    element.MinSize = new Size(80, 50);
                    e.CellElement.Children.Add(element);
                    e.CellElement.ForeColor = Color.White;
            }

 

Populating Rows & Columns:

            numberOfRow = int.Parse(maxRow);
            numberOfColumn = int.Parse(maxCol);

            for (int j = 1; j <= numberOfColumn; j++)
                dgvMap.Columns.Add(string.Format("C{0}", j));


            for (int k = 1; k <= numberOfRow; k++)
            {
                dgvMap.Rows.Add(new string[] { "" });
            }

            for (int k = 1; k <= numberOfRow; k++)
            {
                for (int j = 1; j <= numberOfColumn; j++)
                {
                    string key = string.Format("{0},{1}", this.dgvMap.TableElement.VisualRows[k-1].VisualCells[0].Text, dgvMap.Columns[j - 1].Name);
                  
                }
            }



 

Dinko | Tech Support Engineer
Telerik team
 answered on 09 Nov 2022
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?