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

Control Collection

1 Answer 43 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Any
Top achievements
Rank 1
Any asked on 12 Apr 2011, 08:10 AM
I have problem making array of telerik controls or converting or casting them to Windows forms controls, can anyone help?

when I try to search telerik control in control collection,like this


private
void LoopControls(Control.ControlCollection controls)

{

 

   foreach (Control control in controls)

 

    {

        if (control is RadButtonElement)

        {

        }

    }

 }

 

system generates following execption

 

 

Cannot convert type System.Windows.Forms.Control to Telerik.WinControls.UI.RadButtonElement

1 Answer, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 12 Apr 2011, 11:00 AM
Hello,

The RadControls are simple controls that are made up of RadElements. Please have a look at this help topic which explains an overview of the architecture. If you would like to let me know what you would like to do, I'll do my best to help
Regards,
Richard
Tags
General Discussions
Asked by
Any
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Share this question
or