Telerik Forums
UI for WinForms Forum
1 answer
187 views
Hello,
I have used the desert theme as my form theme and aqua for my gridview. There are two problems which i have faced during working with this themes. i will be appreciate if you help me with these issues.
1. After finalizing the gridview, the gridlines can not be viewed and the rows can only be distinguished by different colours. how can i apply these gridlines? 
2. In the gridview which is seen in run-time, the numbers are placed in the left side of the column and the strings are placed on the right side of the column. is there a way to arrange both of them in the same direction, let's say both in right or left side?

thanks in advance
David Namer
Ivan Petrov
Telerik team
 answered on 07 Nov 2011
6 answers
206 views
Hi,

This is regarding the RadDropDownList:

When I diseble a RadListDataItem by setting Enabled to false i can select it by keborard upp and down arrows but it cannot be selected by mouse. I do not want the user to be able to select a disabled item using the keboard (it should be ignored and go to next enabled item)...
 
I hawe tryed to create this behavior using the SelectedIndexChanging Event whitout any success.

Any suggestions are welcome
 
//Niklas
Stefan
Telerik team
 answered on 07 Nov 2011
1 answer
126 views
Hi anyone know if there's an equivalent treeview node custom attributes for winform just like asp.net?  Example:
In ASP.NET code behind:
    - node.Attributes.Add("NODE_ID", dbRow["NODE_ID"].ToString());

If not, is there similar way of adding custom attributes to the treeview node in winform?

Thanks, 
Julian Benkov
Telerik team
 answered on 07 Nov 2011
1 answer
167 views
When I create a group like this:
             GroupDescriptor GroupDescriptor descriptor = new ("GrupoVencimento");
             descriptor.GroupNames [0]. ListSortDirection.Descending = Direction;
             descriptor.Aggregates.Add ("Sum (Value)");
             this.rgvContasReceberParcela.GroupDescriptors.Add (descriptor);

How do I format the font, size, style, etc.?

thank you
Ivan Petrov
Telerik team
 answered on 07 Nov 2011
1 answer
134 views
Hi,

I am using the RadTreeView (RTV) control to display a list of IP addresses.  The datasource of the RTV is set on form load, with the data source set to a BindingList of a custom class.  This all works fine.

The problem happens when I update the BindingList using a standard Timer control, with the selected item in of the RTV de-selecting, thus requiring it to be selected again.  I have attempted to store and set the selection, however this still causes momentary blinking of the selecting.  I've also tried to SuspendLayout, the ResumeLayout without success.

The above issue also occurs with the hover style, which for 'ControlDefault' theme is a lighter orange colour, with the background colour switching between this and white on refresh of the BindingList.

Please help!
Jack
Telerik team
 answered on 07 Nov 2011
1 answer
282 views
Is there a way (ideally a property) to stop the grid from automatically selecting the newest row when one is added to the datasource?  

See the example below.  When an item is added to the bindinglist, I want to prevent the row selection from occuring.  I know I can set a variable before adding the item, and then cancel the row change on the "changing" event.  But ideally, I could just turn off the functionality.

It also needs to NOT automatically scroll to it.

Thoughts?

Please note:  This behavior does NOT occur on the MS datagrid.

Imports System.ComponentModel
 
Public Class Form1
 
    Private myList As BindingList(Of MyObject)
 
    Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
        myList = New BindingList(Of MyObject)()
        myList.Add(New MyObject(1, "Outdoor"))
        myList.Add(New MyObject(2, "Hardware"))
        myList.Add(New MyObject(3, "Tools"))
        myList.Add(New MyObject(4, "Books"))
        myList.Add(New MyObject(5, "Appliances"))
        AddHandler myList.ListChanged, AddressOf myList_ListChanged
        RadGridView1.DataSource = myList
    End Sub
    Sub myList_ListChanged(ByVal sender As Object, ByVal e As ListChangedEventArgs)
 
    End Sub
    Private Sub RadButton1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadButton1.Click
        myList.Add(New MyObject(6, "Plants"))
        ' DO NOT CHANGE SELECTION!
    End Sub
 
 
 
    Public Class MyObject
        Public Sub New(ByVal myInt As Integer, ByVal myString As String)
            _myInt = myInt
            _myString = myString
        End Sub
        Private _myInt As Integer
        Public Property MyInt() As Integer
            Get
                Return _myInt
            End Get
            Set(ByVal value As Integer)
                _myInt = value
            End Set
        End Property
        Private _myString As String
        Public Property MyString() As String
            Get
                Return _myString
            End Get
            Set(ByVal value As String)
                _myString = value
            End Set
        End Property
    End Class
 
End Class
Jason Parrish
Top achievements
Rank 1
 answered on 04 Nov 2011
1 answer
119 views
I have noticed that checking a checkbox does not immediately update the datasource.  It isn't until I click on another control that the databinding occurs.

This seems inconsistent with how the standard winforms controls behave.

What is the most normal way of duplicating the standard behavior?
Peter
Telerik team
 answered on 04 Nov 2011
2 answers
174 views

Hello All,

I have added a handler to try and capture the double click of an editing cell on a grid - it never reaches the stop statement, the keydown item fires fine. Can anyone give me some pointers?

 

Private Sub radGridView1_CellEditorInitialized(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.GridViewCellEventArgs) Handles RadGridView1.CellEditorInitialized
       Dim tbEditor As RadTextBoxEditor = TryCast(Me.RadGridView1.ActiveEditor, RadTextBoxEditor)
       If Not tbEditor Is Nothing Then
           If (Not tbSubscribed) Then
               tbSubscribed = True
               Dim tbElement As RadTextBoxEditorElement = CType(tbEditor.EditorElement, RadTextBoxEditorElement)
               tbElement.TextBoxItem.Tag = Me.RadGridView1.Name
               AddHandler tbElement.TextBoxItem.KeyDown, AddressOf tbElement_KeyDown
               AddHandler tbElement.DoubleClick, AddressOf tbElement_DoubleClick
           End If
       End If
   End Sub
   Private Sub tbElement_DoubleClick(ByVal sender As Object, ByVal e As EventArgs)
       Stop
   End Sub
 
 
   Private Sub tbElement_KeyDown(ByVal sender As Object, ByVal e As KeyEventArgs)
 
       If e.KeyCode = Keys.F1 Then
           Stop
       End If
 
 
 
   End Sub
Brad
Top achievements
Rank 1
 answered on 03 Nov 2011
3 answers
113 views
Hi,

I noticed that the OnKeyPress, OnKeyUp, and OnKeyDown don't 'work' the same as the microsoft text box, it's been documented here in this forum, and there were a few other events that don't work as expected.

Is there a full list of events in this and other controls that I should be wary about when converting all our .net controls to telerik ones?

I'm using version 2011.2.11.831.

Thanks,
Clive
Stefan
Telerik team
 answered on 03 Nov 2011
1 answer
468 views
Hi
I need to change the font for one column of my RadGridView in runtime. Is this possible?
If Yes, can you help me with the code in VB.NET?
Thanks
Ivan Petrov
Telerik team
 answered on 03 Nov 2011
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
ProgressBar
CheckedDropDownList
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
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?