This is a migrated thread and some comments may be shown as answers.

clearing RadSpineditor

4 Answers 113 Views
SpinEditor
This is a migrated thread and some comments may be shown as answers.
Hengky
Top achievements
Rank 1
Hengky asked on 09 Mar 2017, 08:40 AM

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

Sort by
0
Accepted
Dimitar
Telerik team
answered on 09 Mar 2017, 01:29 PM
Hello Hengky,

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
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Hengky
Top achievements
Rank 1
answered on 10 Mar 2017, 02:40 AM
Thanks Dimitar ... its work.
0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 25 Jun 2021, 07:22 AM
hii , when i am clicking RadSpinEditor Up and Down buttoncontinuously its getting delay ....how to solve this ? please check the attached File 
0
Nadya | Tech Support Engineer
Telerik team
answered on 25 Jun 2021, 11:56 AM

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/.

Tags
SpinEditor
Asked by
Hengky
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Hengky
Top achievements
Rank 1
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
Nadya | Tech Support Engineer
Telerik team
Share this question
or