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
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?
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.
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
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?
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
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
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()