Telerik Forums
UI for WinForms Forum
10 answers
252 views
Hi all,

I’m trying to simulate the MaxLength property (which is no longer available) on a RadMaskEditBox and I use:
radMaskedEditBox1.MaskType = MaskType.Standard; 
radMaskedEditBox1.Mask = “aaaaa”;

I set programmatically a first value in my RadMaskedEditBox1, “ABCDE”. The displayed value on my control is, as expected, “ABCDE”. 

Then I try to set another value, "XX”, and I notice that de displayed value of the control is “XXCDE”.

Any idea? How can I use masks to limit the chars n° in the RadMaskEditBox?
Thank you


L.E.: RadControls version 2013.3.1127.40
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Oct 2020
7 answers
631 views
How can I create (by code) a validation rule to test if the length of the text of a control is less then a maximun value or is between a minimun and a maximun value ?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Oct 2020
1 answer
117 views

Good morning,

Is there a limit to the number of tabs  in the exported file?

I have a multipart report that has 12 grids I need to export to the same excel doc.

On the 5th grid export it is just sitting there , no errors just hangs.

Most grids have 20 - 30 records but 2 can have a couple of 100Ks records.

Is this the issue?

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Oct 2020
3 answers
106 views

Hello

I need a drag Drop from gridview to listview.

I have followed the code from the documentation and everything works finew up to the drop on the ListView where I fail to identify the row of the listview into which the drops occurs.

I have the following code (copied from Telerik's documentaiton)

                    targetCell.Text = srcRow.RowInfo.Cells("Name").Value
                    Dim targetElement As DetailListViewElement = TryCast(e.HitTarget, DetailListViewElement)
                    Dim targetVisualItem As BaseListViewVisualItem = targetCell.RowElement
                    Dim insertIndex As Integer = targetCell.Row.ListView.Items.IndexOf(targetVisualItem.Data)

and I get an error on .row and .rowelement which are "not members ..."

Am I missing a reference or is it a change of the components ?

I need to get the row of the listview when I perform the drom on the cell

Thanks in advance for any advice

Best Regards

Pierre-Jean

Nadya | Tech Support Engineer
Telerik team
 answered on 09 Oct 2020
3 answers
375 views

Hi,

 I'm trying to migrate an app that was written in WPF using default tree view to Telerik UI WinForms RadTreeView. For the default tree that has been used previously I had an ObservableCollection to which I could add items and the change would be displayed in the TreeView immediately without me triggering any update method. However, with the Telerik's solution, when I set the DataSource to the observable collection, no change is visible even though that observable collection has been modified.

The final result that needs to be achieved is to be able to display folder structure on a disc. Now obviously, I don't want to load a folder and all of its subfolders at once, but rather only load the content when the user decides to open the given folder.

Can this be achieved using ObservableCollection and without the need of triggering some sort of update method?

Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Oct 2020
3 answers
835 views

I just updated to the latest Winforms release and now none of the Winforms will open in the designer.  All have the same error message (attached in the screenshot as well).

 


Instances of this error (1)

1. Hide Call Stack
at System.ComponentModel.TypeDescriptor.AddAttributes(Object instance, Attribute[] attributes)
at Microsoft.VisualStudio.Design.VSDesignSurface.CreateDesigner(IComponent component, Boolean rootDesigner)
at System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent component, String name, IContainer containerToAddTo)
at System.ComponentModel.Design.DesignerHost.PerformAdd(IComponent component, String name)
at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host) 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Oct 2020
2 answers
823 views

Hi,

I'm using Telerik version 2020.3.918.1, in Visual Studio version 16.1.1, and getting the following error when trying to export a radgridview to excel in VB.net: 

System Entry Point Not Found. 

on the line:          spreadExporter.RunExport(fileName, exportRenderer)

I am able to export using Telerik export process using a solution that Dess provided on another thread, but it was in C#.    When I change the code to VB, and use the same references, I get this error.   I get the same error when I create a quick project from scratch (add a grid, load it, add references, and export...)   (Code below)

Any ideas?   Thanks, Evan 

 

References include:  Telerik.WinControls, Telerik.WinControls.GridView, Telerik.WinControls.UI, Telerik.Common, and Telerik.Export

-----------------------------------------------------------------------------------------------

Imports Telerik.WinControls.Export

  Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
        'Dim spreadExporter As GridViewSpreadExport = New GridViewSpreadExport(RadGridView1)
        'Dim exportRenderer As New SpreadExportRenderer()
        'spreadExporter.RunExport("exportedFile.xlsx", exportRenderer)

        'Dim exportFile As String = "..\..\exportedData.xlsx"
        'Using ms As New System.IO.MemoryStream()
        '    Dim exporter As New Telerik.WinControls.Export.GridViewSpreadExport(Me.RadGridView1)
        '    Dim renderer As New Telerik.WinControls.Export.SpreadExportRenderer()
        '    exporter.RunExport(ms, renderer)

        '    Using fileStream As New System.IO.FileStream(exportFile, FileMode.Create, FileAccess.Write)
        '        ms.WriteTo(fileStream)
        '    End Using
        'End Using

        Dim fileName As String = "..\..\exported" & DateTime.Now.ToLongTimeString().Replace(":", "_") & ".xlsx"
        Dim spreadExporter As GridViewSpreadExport = New GridViewSpreadExport(Me.RadGridView1)
        Dim exportRenderer As SpreadExportRenderer = New SpreadExportRenderer()
        'exportRenderer.WorkbookCreated += exportRenderer_WorkbookCreated
        spreadExporter.ExportVisualSettings = True
        spreadExporter.RunExport(fileName, exportRenderer)
        Process.Start(fileName)

    End Sub


 

evan
Top achievements
Rank 1
 answered on 07 Oct 2020
9 answers
252 views

Hi all,

I'm trying to customize an item,but I'm stuck, I hope someone could help...

What I need is to show inside my PropertyGrid a value (a string) with a button aside (the typical [...] ).

Clicking the button will open up a custom form, from which a new value can be selected.

So something like the following code, which I've found in another thread:

private void RadPropertyGrid1_EditorRequired(object sender, PropertyGridEditorRequiredEventArgs e)
        {
            if (e.Item.Name == "DatoStringa")
            {
                var editor = new PropertyGridBrowseEditor();
                var el = editor.EditorElement as RadBrowseEditorElement;
                el.DialogType = BrowseEditorDialogType.FolderBrowseDialog;
                e.Editor = editor;
            }
        }

 

That's fine, but I need a brand new form, not a predefined one.

Is this possible?

Thank you!

 

Nadya | Tech Support Engineer
Telerik team
 answered on 07 Oct 2020
4 answers
256 views

Hi, 

I currently develop an application on Windows 10 on a tactile device uses a RadPageView (explorerBar mode).

I want to use gesture to control the scroll, i set the enableGesture to Pan.

And in PanGesture event, i have the code :

   

If CType(CType(sender, RadPageView).GetChildAt(0).GetChildAt(3), Telerik.WinControls.UI.RadScrollBarElement).Visibility = ElementVisibility.Visible Then
          If CType(CType(sender, RadPageView).GetChildAt(0).GetChildAt(3), Telerik.WinControls.UI.RadScrollBarElement).Value + e.Offset.Height >= CType(sender, RadPageView).VerticalScroll.Minimum And _
             CType(CType(sender, RadPageView).GetChildAt(0).GetChildAt(3), Telerik.WinControls.UI.RadScrollBarElement).Value + e.Offset.Height <= CType(sender, RadPageView).VerticalScroll.Maximum Then
              CType(sender, RadPageView).VerticalScroll.Value = CType(CType(sender, RadPageView).GetChildAt(0).GetChildAt(3), Telerik.WinControls.UI.RadScrollBarElement).Value + e.Offset.Height
          End If
          CType(CType(sender, RadPageView).GetChildAt(0).GetChildAt(3), Telerik.WinControls.UI.RadScrollBarElement).Value += e.Offset.Height
      End If

Only the scroll bar moves, not the control

 Thanks for your help :)

NB : I'm using Q1-2015

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Oct 2020
1 answer
125 views

I've looked all over but haven't been able to find VisualStyleBuilder's source code. Is there any chance I could download the source code to use to build in-house tools with?  

 

Thanks - Jason

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Oct 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?