Telerik Forums
UI for WinForms Forum
1 answer
57 views

Hey guys, is it possible to create a List of GridViewDataColumn avaliable at design time? Like u do in the GridRelations(attached), I've tried reading your TemplateCollectionEditor(at Telerik.WinControls.UI.Design.dll, same namespace) class, but didn't understand anything.

Here is my class where I want' use it

public class ColunaTextoAjuda : IAjuda
    {
        public GridViewDataColumn Coluna { get; set; }
 
        [Browsable(true)]
        [DefaultValue("")]
        [Editor("Telerik.WinControls.UI.Design.TextOrHtmlSelector, Telerik.WinControls.UI.Design, Version=2018.1.116.40, Culture=neutral, PublicKeyToken=5bb2a467cbec794e", typeof(UITypeEditor))]
        public string Texto { get; set; }
    }
Leandro
Top achievements
Rank 1
 answered on 01 Nov 2018
8 answers
801 views
Hello All,

I have a requirement to print a number of RTF notes as a single document. I tried to create a RadDocument for each note and merge them, but unable to get it done.
Please guide me through the appropriate way to achieve this functionality.

Thanks
Pawan
Tanya
Telerik team
 answered on 01 Nov 2018
3 answers
133 views

I've noticed that Grid.Selection.SelectedRegions returns the dataset row number values whenever a paging-enabled virtual grid page changes. i.e the selection may be on a different page than the one on view.

I'm having problems generating elegant code for moving the regions from page to page so they select from the page of data that's on view, including cases where a full page of data has less rows than the original selection.

The help file isn't very explanatory,

radVirtualGrid1.VirtualGridElement.Selection.BeginSelection(3, 1, radVirtualGrid1.MasterViewInfo, true); radVirtualGrid1.VirtualGridElement.Selection.ExtendCurrentRegion(6, 3);

If I've several individual rows selected then how do I manipulate the grid.selection.selectedregions so that I can assign the whole set of regions? following is the code Im trying but Im having a real struggle understanding what Im doing.

01.var selectionRegions = Grid.Selection.SelectedRegions;
02.var offset = Math.Abs(e.NewIndex - Grid.PageIndex);
03.var multiplier = e.NewIndex > Grid.PageIndex
04.  ? PageSize * offset
05.  : -PageSize * offset;
06.var newRegions = new List<SelectionRegion>(); 
07.foreach (var region in selectionRegions)
08.{
09.  var newRegion = new SelectionRegion(region.Top * multiplier, region.Left,
10.    region.Bottom * multiplier, region.Right, region.ViewInfo);
11.  newRegions.Add(newRegion);
12.}
13.Grid.Selection.SelectedRegions. <- and here is where everything goes horribly wrong :)

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Nov 2018
5 answers
476 views

Hi all,

I've implemented a radgridview in my project, and I need one column to search, in this case, a barcode but I have two ways for search it. The barcode and a small code which are related between. So I've implemented a multicolumncombobox and a composite filter to do this. It works, but I have a problem in some cases. When the combobox has a lot of data, the filter which has the property autocompletemode as suggestappend, it is working too slow. For example, I press one key  it takes too long time to appear in the column, it appears to be freeze.

Do you know how to improve this? Or there is another control to make this purpose?

Thanks in advance.

Regards,

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Nov 2018
1 answer
266 views

Hi

I have an issue with the validation of email addresses using when the mask type is set to EMail, it is not allowing the following style of email address "t.harris@working.group" (note this is not the exact email address of obvious reasons), it does work when i append .co.uk or .com on the end.

What are the validation criteria for this EMail validation ? 

Do I have to use an edit mask instead ? If so can you give an example which will allow above email address as well as those in more "normal" formats ?

 

Regards

Toby

 

Dimitar
Telerik team
 answered on 01 Nov 2018
8 answers
236 views

Hello All,

Is it possible to validate the text enter as the user types (ie validate on TextChanged) as opposed to validating as focus is changed?

Thanks!!

Dimitar
Telerik team
 answered on 01 Nov 2018
1 answer
100 views

if you completely delete the contents in the editor and press the <Enter> key, then int.MinValue is returned.

Why? In this case, you must return either null or 0 or do nothing.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 Oct 2018
3 answers
1.6K+ views
On Telerik control , when I click the items using mouse right click, it calls the same function of the left click & I'm unable to disable it. Please let me know if there is any property to disable the right click.
Dimitar
Telerik team
 answered on 31 Oct 2018
1 answer
121 views

Hi,

I'm able to get the samples to work but I'm having trouble adding to my project. It seems that TreeViewElement_CreateNodeElement isn't firing.

Can anyone see what I might be missing? The code below just needs a radtreeview named tvProjectPath.

Thanks in advance!!

Imports Telerik.WinControls.UI
 
Public Class RadForm1
    Private Sub RadForm1_Load(sender As Object, e As EventArgs) Handles Me.Load
        Dim rtvTest As Telerik.WinControls.UI.RadTreeView = tvProjectPath
        Dim DFSRootNode As New RadTreeNode("Root0")
        Dim ProdDataNode As New RadTreeNode("Child1")
        Dim JobsNode As New RadTreeNode("Child2")
        Dim ProjectRoot As New RadTreeNode("Child3")
        'Dim ProjectFolder As New CustomTreeNodeElement()
        tvProjectPath.Nodes.Add(DFSRootNode)
        DFSRootNode.Nodes.Add(ProdDataNode)
        ProdDataNode.Nodes.Add(JobsNode)
        JobsNode.Nodes.Add(ProjectRoot)
        'ProjectRoot.TreeViewElement =
    End Sub
    Private Sub CustomNodes_Load(sender As Object, e As EventArgs) Handles Me.Load
        Dim test As String = ""
 
        Me.tvProjectPath.ExpandAll()
    End Sub
    Private Sub TreeViewElement_CreateNodeElement(sender As Object, e As Telerik.WinControls.UI.CreateTreeNodeElementEventArgs)
        e.NodeElement = New CustomTreeNodeElement()
    End Sub
End Class
Public Class CustomContentElement
    Inherits TreeNodeContentElement
    Private nodeContentContainer As StackLayoutElement
    Private nodeLabel As RadLabelElement
    Private nodeTextBox As RadTextBoxControlElement
 
    Protected Overrides ReadOnly Property ThemeEffectiveType() As Type
        Get
            Return GetType(TreeNodeElement)
        End Get
    End Property
    Protected Overrides Sub InitializeFields()
        MyBase.InitializeFields()
        Me.StretchHorizontally = True
    End Sub
    Protected Overrides Sub CreateChildElements()
        MyBase.CreateChildElements()
        nodeContentContainer = New StackLayoutElement
        nodeContentContainer.Orientation = Orientation.Horizontal
        nodeContentContainer.StretchHorizontally = True
        nodeContentContainer.StretchVertically = False
        nodeLabel = New RadLabelElement
        Me.Children.Add(nodeLabel)
        nodeTextBox = New RadTextBoxControlElement
        Me.Children.Add(nodeTextBox)
 
    End Sub
 
End Class
Public Class CustomTreeNodeElement
    Inherits TreeNodeElement
    Protected Overrides Function CreateContentElement() As TreeNodeContentElement
        Return New CustomContentElement()
        'Dim node As RadTreeNode = Me.Data
 
    End Function
 
    Protected Overrides ReadOnly Property ThemeEffectiveType() As Type
        Get
            Return GetType(TreeNodeElement)
        End Get
    End Property
 
End Class

Dimitar
Telerik team
 answered on 31 Oct 2018
5 answers
138 views

I was prompted to download a new version, did so.

Created a new project using option one from the dropdown. Could not add any controls to the default form. I thought it was strange that it said [Download] but tried any ways.

Next I created a new project with option 2, worked fine.

So my question is, how do I use option one marked as [Download] even though I already downloaded it and saw zero errors?

Thanks for your time with this matter.

VS2017 Enterprise

Dimitar
Telerik team
 answered on 31 Oct 2018
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
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
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
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?