Control Collection

2 posts, 1 answers
  1. Any
    Any avatar
    1 posts
    Member since:
    Oct 2010

    Posted 12 Apr 2011 Link to this post

    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
  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 12 Apr 2011 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top