All,
I have multiple web pages that each contain 36 radNumericTextboxes on them.
I want to disable the tab stop on the spin buttons for each of the controls. So far the only answer I can find is this:
myControl.ButtonDownContainer.Attributes.Add("tabindex", "-1")
myControl.ButtonUpContainer.Attributes.Add("tabindex", "-1")
I don't want to have 72 lines of code on each of my 19 pages to do something that I should be able to do in a for each loop. However, I cant seem to implement the following code because the telerik controls dont exist in system.web.ui.page
For Each myControl In Page.Controls
If TypeOf myControl Is RadNumericTextBox Then
myControl.ButtonDownContainer.Attributes.Add("tabindex", "-1")
myControl.ButtonUpContainer.Attributes.Add("tabindex", "-1")
End If
Next
So my question is, how can I return an array of all telerik controls contained on a page?
Thank you,
I have multiple web pages that each contain 36 radNumericTextboxes on them.
I want to disable the tab stop on the spin buttons for each of the controls. So far the only answer I can find is this:
myControl.ButtonDownContainer.Attributes.Add("tabindex", "-1")
myControl.ButtonUpContainer.Attributes.Add("tabindex", "-1")
I don't want to have 72 lines of code on each of my 19 pages to do something that I should be able to do in a for each loop. However, I cant seem to implement the following code because the telerik controls dont exist in system.web.ui.page
For Each myControl In Page.Controls
If TypeOf myControl Is RadNumericTextBox Then
myControl.ButtonDownContainer.Attributes.Add("tabindex", "-1")
myControl.ButtonUpContainer.Attributes.Add("tabindex", "-1")
End If
Next
So my question is, how can I return an array of all telerik controls contained on a page?
Thank you,