Telerik Forums
UI for WinForms Forum
1 answer
108 views

Is there a way to fully cancel a user insert of a new row programatically?

I am looking to simulate the user hitting the esc key once initiating an insert of a new row.

Thanks,

 

Hristo
Telerik team
 answered on 22 Nov 2016
1 answer
152 views

Hello everybody,

I have a problem using the element visibilty property on ElementVisibility.Collapsed on the radgridview RowFormatting event.

When i try to put the row visibility to ElementVisibility.Collapsed, there is a strange behavior, the rows are not correctly displayed.

Here is a sample that reproduces the problem :

Imports Telerik.WinControls.UI
 
Public Class RadForm1
    Private _Liste As New List(Of MyClass1)
 
    Public Sub New()
 
        ' Cet appel est requis par le concepteur.
        InitializeComponent()
 
        ' Ajoutez une initialisation quelconque après l'appel InitializeComponent().
        _Liste.Add(New MyClass1 With {.Prop1 = 10, .Prop2 = "AAA" & .Prop1})
        _Liste.Add(New MyClass1 With {.Prop1 = 10, .Prop2 = "BBB" & .Prop1})
        _Liste.Add(New MyClass1 With {.Prop1 = 10, .Prop2 = "CCC" & .Prop1})
        _Liste.Add(New MyClass1 With {.Prop1 = 100, .Prop2 = "DDD" & .Prop1})
        _Liste.Add(New MyClass1 With {.Prop1 = 100, .Prop2 = "FFF" & .Prop1})
        _Liste.Add(New MyClass1 With {.Prop1 = 1, .Prop2 = "QQQ" & .Prop1})
        _Liste.Add(New MyClass1 With {.Prop1 = 1, .Prop2 = "SSS" & .Prop1})
        RadGridView1.DataSource = _Liste
 
    End Sub
 
    Private Sub RadGridView1_RowFormatting(sender As Object, e As RowFormattingEventArgs) Handles RadGridView1.RowFormatting
        If DirectCast(e.RowElement.RowInfo.DataBoundItem, MyClass1).Prop1 = 10 Then
            e.RowElement.Visibility = Telerik.WinControls.ElementVisibility.Collapsed
        Else
            e.RowElement.Visibility = Telerik.WinControls.ElementVisibility.Visible
        End If
 
    End Sub
 
    Private Class MyClass1
        Public Property Prop1 As Integer
        Public Property Prop2 As String
    End Class
 
End Class

Maybe i'm missing something, but when i replace Telerik.WinControls.ElementVisibility.Collapsed by Telerik.WinControls.ElementVisibility.Hidden, i have the expected behavior (except that the rows are not collapsed).

 

Thanks in advance for your answers, and sorry for my aweful english ... I'm french.

 

I'm using Windows 7 64 bits, with 2016.3.1024.40 version of radcontrols, and .Net Framework v4

Ralitsa
Telerik team
 answered on 22 Nov 2016
1 answer
205 views

Hi. I understand that we need to create new themes for each different appearance of a control (eg button) unless it's done in the designer etc.

It's of concern that each of the theme packets is pretty large eg 500k in size and seems an awful waste of disk space if a whole theme needs to be generated for the sake of a single control where, in my case, I'm using 4 - 5 different shaped/coloured buttons on a single form, this is the first one I'm changing to telerik out of several hundred forms in the application.

Am I understanding this correctly? Or is it possible to strip a theme packet down to cover a selection of controls with just what's needed by those controls?

If so then is it possible to add changing the functionality of the themes/visual designer to the 'wish list' for a future version please :)

Dimitar
Telerik team
 answered on 22 Nov 2016
5 answers
340 views

Hello , I am Aung Ko .

I am getting the Null Reference exception in rad grid view , first i has been filled data in gridview after filling data may be one row or two row in which I has been clicked in Group Type Column in gridview  at this time I has been seen Null Reference exception. I can't handled this exception. How can I do for this exception. Please , Suggest to me.

Thanks.

This is my sample project Link.

https://drive.google.com/file/d/0B0PjZMmehto4ZXl1dkRIa29qdG8/view?usp=sharing

Dimitar
Telerik team
 answered on 21 Nov 2016
12 answers
244 views

I'm complete new to the Winforms. I use Progress/OpenEdge 11.6.

I build the "getting started" Example and tried to customize it.

My questions:

Is it possible to disable the context menu (Close, close all ...) for the last shown Tab, because I want one Tab always stay open?

Is it possible to float out a complete document container with all document windows in it?

When I autohide as Document, is it possible to put the information to the bottom of the form?

When I set the CloseAction to "Hide" is there a build in function to manage then hidden Documents?

Thank yout for answers

Jürgen

 

Mark
Top achievements
Rank 1
 answered on 18 Nov 2016
1 answer
339 views

I would like to add an Add, Edit and Delete buttons to the RadGridView, similar to what is seen in this ASP.NET Ajax control

http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/commanditem/defaultcs.aspx

Is this possible in WinForms without too much hassle? I am not a fan of the current appearance of just having RadButtons above.
Dimitar
Telerik team
 answered on 18 Nov 2016
18 answers
319 views
Hi,

Is there away to scroll to a particular time? I need to have a 24 hour day but scroll to a timeslot. Say 8 am and then if possible scroll to the next available time slot? Is this possible? I've seen some articles on the AJAX controls but hardly anything on winforms.

Thanks
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Nov 2016
1 answer
42 views

A colleague show me an odd behavior of a grid in a tool that I programmed.

After inserting a new row, a column with check boxes was moved and overlay a column some a little bit further on the right side. At the original position was a gap then. He show me on the screen, but I have no screenshot to show, nor I can reproduce.

Do you any idea, how this could happen?

Hristo
Telerik team
 answered on 17 Nov 2016
12 answers
77 views

Trying to add a RadLinearGauge, gallery is empty.

Tried using upgrade wizard, tried rebooting machine and Visual Studio (several times).

Tried Clean and Rebuild all, tried removing and re-adding gauge, nothing works.

Bob Graham

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Nov 2016
1 answer
113 views

I'm having an issue with regards to having multiple node levels in the treeview.

First I load all the data into the treeview by binding a datatable as the the source.

When you drill down in a category you'll notice that the first two nodes are not flagged as Indeterminate, but when you click on the second node to open up its children the parent nodes get refreshed and get flagged as indeterminate.

'Loads tree nodes

      Public Sub LoadItemCategories()
        mItemCategoryDT = Datalayer.ItemCategoryRetrieveByRetail(ComboItemDataAsInt(cboRetail))

        InitTree()

        tvItemCat2.BeginUpdate()
        tvItemCat2.DisplayMember = "ItemCat"
        tvItemCat2.ParentMember = "PARENT_ITEM_CATEGORY_CD"
        tvItemCat2.ChildMember = "ITEM_CATEGORY_CD"
        tvItemCat2.DataSource = mItemCategoryDT
        tvItemCat2.EndUpdate()

        ' tvItemCat2.ExpandAll()
        AddHandler Me.tvItemCat2.NodeCheckedChanged, AddressOf tvItemCat2_NodeCheckedChanged
        AddHandler Me.tvItemCat2.NodeFormatting, AddressOf tvItemCat2_NodeFormatting

    End Sub 

 

    Private Sub tvItemCat2_NodeFormatting(sender As Object, e As TreeNodeFormattingEventArgs)
        Dim data As DataRowView = TryCast(e.Node.DataBoundItem, DataRowView)

        If data IsNot Nothing Then

            Dim value As Object = data.Row("Checked")
            If value Is DBNull.Value Then
                e.Node.CheckState = ToggleState.Indeterminate
            Else
                e.Node.Checked = CBool(value)
            End If
        End If


    End Sub

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Nov 2016
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
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
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?