Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Efficient way of adjusting all editors on page

$
0
0

Hi Marin thanks for the reply. 

i would like to check how do i resize those editor not in repeater?

i tried this but it is not entering the if(ctrl is RadEditor)

01.foreach(Control ctrl inPage.Controls)
02.{
03.    if(ctrl isRadEditor)
04.    {
05.       RadEditor control = ctrl asRadEditor;
06.       ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Now setting "+ control.ClientID +" width')", true);
07.                     
08.       if(control != null)
09.       {
10.             control.Width = Unit.Pixel(width);
11.             control.Height = Unit.Pixel(height);
12.       }
13.       else
14.       {
15.          ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Control "+ ctrl.ClientID +" not found')", true);
16.                        return;                       
17.       }
18.   }
19.}

Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>