Telerik Forums
UI for WinForms Forum
3 answers
230 views
Hi, I'm using the latest version of the WinControls package and I'm using trying to hide inactive data on a DropDownList to prevent the user from selecting it but ElementVisibility.Collapsed shows a blank line (as ElementVisibility.Hidden). It is my understanding that the row should not visible nor blank with the first value.

Am i missing something?


private void uxAssignedAt_VisualListItemFormatting(object sender, VisualItemFormattingEventArgs args)
{
    var personne = args.VisualItem.Data.DataBoundItem as Personne;
 
    // Reset default value
    args.VisualItem.ResetValue(LightVisualElement.VisibilityProperty, ValueResetFlags.Local);
 
    if (personne != null && !personne.IndActive)
    {
        args.VisualItem.Visibility = ElementVisibility.Collapsed;
    }
}
Francois
Top achievements
Rank 1
 answered on 07 Nov 2011
3 answers
673 views
By default the tree view will change selection by clicking on a item with left or right mouse, I need to prevent the selected item from changing when a item is clicked with the right mouse, instead i need to hilight the item and pop a context menu.
Also where do you change the color of the selected background?
Thanks

Ivan Petrov
Telerik team
 answered on 07 Nov 2011
3 answers
221 views
Hi all, i have questions about treeview in winform. Is it possible to integrate or combine explorer-like treeview to telerik treeview? I mean when the root folder/node is set to desktop directory, then it would auto generate all the childs and other nodes (which is folders/shortcut) inside the desktop.. Another question is how to make drag n drop function that copy the folder/node and not move it to the other treeview?

Sorry if I ask many questions here, I am a lil' bit beginner to this thing and hope you all can guide me. Thanx for your coorperation.

Regards,

Muz
 
Julian Benkov
Telerik team
 answered on 07 Nov 2011
1 answer
182 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
200 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
119 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
161 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
130 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
278 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
116 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
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?