Hello all...
i have this code for clear radtextboxcontrol, how make this for radspineditor ?
Dim a, b As Control
For Each a In TableLayoutPanel2.Controls
If TypeOf a Is Telerik.WinControls.UI.RadTextBoxControl Then
a.Text = ""
End If
Next
For Each b In TableLayoutPanel2.Controls
If TypeOf b Is Telerik.WinControls.UI.RadSpinEditor Then
b.value = 0 <------ how make this happen
End If
Next
thanks...
4 Answers, 1 is accepted
Thank you for writing.
You need to cast the object to the appropriate type:
Private
Sub
radButton1_Click(
ByVal
sender
As
Object
,
ByVal
e
As
EventArgs)
For
Each
item
As
Control
In
tableLayoutPanel1.Controls
If
TypeOf
item
Is
RadSpinEditor
Then
Dim
spinEditor =
CType
(item, RadSpinEditor)
spinEditor.Value = 0
End
If
Next
item
End
Sub
I hope this will be useful. Let me know if you have additional questions.
Regards,
Dimitar
Telerik by Progress
Hello, Ras Ran,
I am not able to observe a delay when clicking on the up/down arrows in RadSpinEditor. Please check the gif file that demonstrates the result on my end. Maybe there is something different in your setup that causes this behavior. Feel free to submit a support ticket from your Telerik account where you can attach a project demonstrating the problem on your end. Thus, we could be able to investigate the precise case and assist you further.
If you need any further assistance please don't hesitate to contact me.
Regards,
Nadya
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.