Telerik Forums
UI for WinForms Forum
1 answer
136 views

What I'm trying is so simple, but doesn't work

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

Imports Telerik.WinControls.UI

Public Class frmListTest
  Private dtTest As DataTable   

    Private Sub frmListTest_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            fillDataTable(dtTest)  ' procedure fills the table from an Oracle database procedure

            myDropDownList.DataSource = dtTest

            myDropDownList.ValueMember = "VALUE_MEMBER"
            myDropDownList.DisplayMember = "DISPLAY_MEMBER"

    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        myDropDownList.SelectedValue = 6  '  DOES NOT WORK
    End Sub

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

dtTemp structure
value_member     display_member
24                         Athletic Operations Building
1                           Camp Randall Stadium
34                         Camp Randall Stadium Misc.
22                         Cr Sports Center [shell] - Womens Hockey
37                         Goodman Diamond All Season Practice
6                           Goodman Softball Complex
23                         Kellner Hall 
2                           Kohl Center
35                         La Bahn Arena
4                           McClain Center

The dropdown list loads ok, but I can't select an item through the SelectedValue property.

What am I doing wrong, or not doing? 

Telerik V 2016.3.913.40

Visual Studio Pro V 14.0.25431.01

 

Later

Art


Dimitar
Telerik team
 answered on 13 Nov 2017
2 answers
202 views
Hi Dear Telerik :)

Maybe this is a dumb question....

In the First Look example when you use a button... is there any way to save this modifications and stored as xml or database field or something and then load this later to affect the behavior of the button maybe in the onLoad event of the main form ?

Also, it's possible to use the PropertyGrid with objects of a parent form? I mean, clicking a button and property grid loaded in a child form affecting properties of some control of the parent form?

And with that ... is there a way to assign controls programmatically to the propertygrid?

Thanx in advance!

:)
Abdul
Top achievements
Rank 1
 answered on 13 Nov 2017
0 answers
92 views

I want to change cursor from default to hand cursor when I hover cursor over the rectangle showing the color of the legend item.

How to achieve this?

Borislav
Top achievements
Rank 1
 asked on 10 Nov 2017
3 answers
146 views

I've followed an example I found on your site for creating a custom gridview column. 

https://docs.telerik.com/devtools/winforms/gridview/cells/creating-custom-cells

 

 I was able to get it to work and populate, but only by manually editing the designer document of the form in which the grid was located.   My column type, however, does appear on my list of column types but after adding it, and when I try closing the grid design window I get an error.  Can you tell me what I'm doing wrong?  Attached a screen shot showing my columntype in the list, the column added (column1), and the error message I received.   Thanks for any help you can give me.

 

 

Dimitar
Telerik team
 answered on 10 Nov 2017
2 answers
201 views

Hi,

I'd like to change the initial directory used by Open and Save buttons. An InitialDirectory property like in OpenFileDialog would be perfect.

Thanks for your help

 

 

Frédéric
Top achievements
Rank 1
 answered on 10 Nov 2017
2 answers
113 views

Hi.  I'm looking to use the RadTrackBar as a selector for hours.  For example, far left would be 0700 (7am) and far right would be 1400 (2pm).

I cannot figure out how to disable/turn off/colorize the TrackBarIndicatorElement behind the slider.  I want just the bar with the slider.  As the user moves it, there should not be any color displayed in the bar.  Is that possible?

Elijah
Top achievements
Rank 1
 answered on 09 Nov 2017
1 answer
426 views

Hi,

i am trying to set focus on combobox during form shown event. I can't see method Focus(). Is there anything i am missing?

Version of control is : 2016.1.112.40

 

please help

 

Thanks

Binu

Hristo
Telerik team
 answered on 09 Nov 2017
5 answers
216 views
Hello Telerik,

I would like to customize RadPageView in mode Backstage. I like how it looks with 'TelerikMetro' theme, but I would like to change method for selecting active page - instead of using image (green arrow) I would like to use simple border on the left side. That what I am doing:
1. Open Visual Style Builder
2. Select RadPageView control and set it to Backstage.
3. Apply to 'TelerikMetro' theme.
4. Expand control tree and select 'RadPageViewStripItem' for customization.
5. Go to 'Element states' window for customization needed states for item. In my case I am looking all states where green arrow image is used. There are 'RadPageViewStripItem.Selected','RadPageViewStripItem.MouseDown' and 'RadPageViewStripItem.Selected.MouseOver'.
6. Disable repository item with green arrow.
7. Create new simple repository item - Border. For highlighting active tab.
8. And this is the issue - on preview, I see that when I select page, I have border for some pages that are not selected. It looks like the border line is too long. The same result I have if I try to use this changed theme in my project.

How I can change this and how to make border shorter, only for needed page item? I am really don't understand what causes this error.

I also uploaded video to - https://www.screencast.com/t/ZehV4cXj
Hristo
Telerik team
 answered on 09 Nov 2017
1 answer
288 views

Hello.

I have a problem with the scrollbars.

I have 2 Usercontrols with one radpageview.

The first code works.

The second don´t works.

There are no Scrollbars.

Please help.

Private Sub Hauptmenue_Shown(sender As Object, e As EventArgs) Handles Me.Shown
    Dim _tablet As TetraFMS.FMSTablet 'Läd das Hauptfenster in die Anwendung
    _tablet = Controls("ucFMSTablet")
    If _tablet Is Nothing Then
        _tablet = New FMSTablet()
        _tablet.Name = "ucFMSTablet"
 
        Me.Controls.Add(_tablet)
        _tablet.Dock = DockStyle.Fill
        _tablet.HorizontalScroll.Enabled = True
        _tablet.VerticalScroll.Enabled = True
        _tablet.BringToFront()
    Else
        _tablet.Dock = DockStyle.Fill
        _tablet.BringToFront()
    End If

 

Private Sub RibbonTabDesigner_Click(sender As Object, e As EventArgs) Handles RibbonTabDesigner.Click
    Dim _designer As TetraFMS.FMSEditor
    _designer = Controls("ucFMSEditor")
    If _designer Is Nothing Then
        _designer = New FMSEditor()
        _designer.Name = "ucFMSEditor"
 
        Me.Controls.Add(_designer)
        _designer.Dock = DockStyle.Fill
        '_designer.AutoScroll = True
        _designer.HorizontalScroll.Enabled = True
        _designer.VerticalScroll.Enabled = True
        _designer.BringToFront()
        _designer.Refresh()
 
    Else
        '_designer.AutoScroll = True
        _designer.HorizontalScroll.Enabled = True
        _designer.VerticalScroll.Enabled = True
 
        _designer.BringToFront()
        _designer.Refresh()
    End If
 
 
End Sub
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Nov 2017
5 answers
154 views
Hello Guys

Im trying to create a simple Hierarchy in a RadGridView, but the RadGridView 
is not making the relation, i mean, as you can see in the attached file,
 even the relation is betweet columns Id_Report of the parent Template,
and Id_Report  of the child template, is not making the match between them.
 Can anyone tell me something about this behaivor pls? 


Dim template As New GridViewTemplate()
template.BeginUpdate()
template.DataSource = Me.oConsulta.Select_DS("56").Tables(0)
grReportsSolicitado.MasterTemplate.Templates.Add(template)
 
Dim relation As New GridViewRelation(grReportsSolicitado.MasterTemplate)
relation.ChildTemplate = template
relation.RelationName = "Id_Report"
relation.ParentColumnNames.Add("Id_Report")
relation.ChildColumnNames.Add("Id_Report")
grReportsSolicitado.Relations.Add(relation)
template.EndUpdate()
Me.grReportsSolicitado.EndUpdate()
Me.grReportsSolicitado.Refresh()


Thanks for you Help

Cesar
Mariajo
Top achievements
Rank 1
 answered on 07 Nov 2017
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?