c# - change property of rad controls in form -


how can access property of rad controls in form. code bellow

foreach (control ctrl in this.controls)   {    radcontrol rc = ctrl radcontrol;     if (rc != null)        {            if (rc.gettype() == typeof(telerik.wincontrols.ui.radbutton))             {               rc.image = ....             }      }  } 

thanks

in conditional statement want test if (ctrl radcontrol)

and want make recursive function go down through control collections in page.

private void dosomethingtoradcontrols(controlcollection controls) {   if (controls != null && controls.any()) {     foreach (control ctrl in controls) {       if (ctrl radcontrol) {         //       }       dosomethingtoradcontrols(ctrl.controls);     }   } } 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -