Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
132 views
Rad Window Disappears after I drag it over into design mode and choose a skin.  Is this normal?
derek
Top achievements
Rank 2
 answered on 01 May 2009
8 answers
138 views
When deployed to our corporate .NET hosting environment, my application fails when filtering a grid...

-----------------

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
---------------------

I'm guessing the corporate environment runs in medium trust but I have an email in to the site admin to find out for sure.  It works OK in my local environment.  Only filtering has a problem.  All other functionality on the rad grid and other telerik controls I use are fine.  Is there a way to make this work without full trust?

Thanks
Matt
Top achievements
Rank 1
 answered on 01 May 2009
1 answer
145 views
Good Morning,

How can I center a PopUp form in a browser window.

I saw the script sample provided in the documentation... but it centered the window according to the grid position in the page.
What I want is center base on the browser window, not the content. Like a Radwindow if I can say

Thanks!
Alexandre Lepage
Top achievements
Rank 1
 answered on 01 May 2009
5 answers
295 views
I am trying to create RadDocks dynamically and add them to static RadDockZones in Page_Load but I get the following error:

"Page cannot be null. Please ensure that this operation is being performed in the context of an ASP.NET request."

What can be the source of this problem?

My structure is as follows:

- I have a master page having a RadScriptManager
- I have an aspx page that inherits from this master page
- I have 3 RadDockZones inside a RadDockLayout in this aspx page with ids DZ1, DZ2 and DZ3
- In the Page_Load function of this aspx page, I am trying to create RadDocks dynamically and add them to these RadDockZones. The contents of these RadDocks are loaded from separate ascx files:

RadDock oDock1 = new RadDock(); 
oDock1.Title = "First Dock"
oDock1.ID = "radDock1"
Control oCtrl1 = LoadControl("~/Controls/Dock1Contents.ascx"); 
oDock1.Controls.Add(oCtrl1); 
 
RadDockZone oZone1 = DZ1; 
oZone1.Docks.Insert(0, oDock1); 
 
RadDock oDock2 = new RadDock(); 
oDock2.Title = "Second Dock"
oDock2.ID = "radDock2"
Control oCtrl2 = LoadControl("~/Controls/Dock2Contents.ascx"); 
oDock2.Controls.Add(oCtrl2); 
 
RadDockZone oZone2 = DZ2; 
oZone2.Docks.Insert(0, oDock2); 
 
RadDock oDock3 = new RadDock(); 
oDock3.Title = "Third Dock"
oDock3.ID = "radDock3"
Control oCtrl3 = LoadControl("~/Controls/Dock3Contents.ascx"); 
oDock3.Controls.Add(oCtrl3); 
 
RadDockZone oZone3 = DZ3; 
oZone3.Docks.Insert(0, oDock3);   
Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 01 May 2009
1 answer
117 views
Is it possible to use client side script to change the font from a get_html call for the radEditor. Our client now wants all content to be the same font.
Rumen
Telerik team
 answered on 01 May 2009
6 answers
212 views
Hello,

I have a RadGrid and I would like to have a default url image show in the grid when none is available.  I have the code in the itemdatabound because before i am loading flash files as well as normal .jpg.  I'm trying to figure out this code but I don't know if I am doing it wrong or if there is an easier way.  My code is below.

 

protected void RadGrid2_ItemDataBound(object sender, GridItemEventArgs e)

 

{

 

if (e.Item is GridDataItem)

 

{

 

 

String FileType = DataBinder.Eval(e.Item.DataItem, "FileTypeID").ToString();

 

 

TableCell TemplateCell = (e.Item as GridDataItem)["Image1"] as TableCell;

 

 

if (FileType == "swf")

 

{

TemplateCell.Text =

String.Format("<div id=\"flashcontent\"><embed type=\"application/x-shockwave-flash\" src=\"{0}\" id=\"sotester\" name=\"sotester\" quality=\"high\" wmode=\"transparent\" height=\"100\" width=\"290\" /></div>", DataBinder.Eval(e.Item.DataItem, "PhysicalPath"));

 

}

 

else if (FileType == null )

 

{

 

Image myImage = new Image();

 

myImage.ImageUrl =

"~/DataImages/missing.jpg";

 

}

 

else

 

{

 

Image myImage = new Image();

 

myImage.ImageUrl =

DataBinder.Eval(e.Item.DataItem, "PhysicalPath").ToString();

 

myImage.Width =

Unit.Pixel(16);

 

myImage.Height =

Unit.Pixel(16);

 

myImage.AlternateText =

"someimage";

 

TemplateCell.Controls.Add(myImage);

}

}

 }
When it runs i can see the images and the flash but the empty images still don't have the missing jpg appearing

Amanda
Top achievements
Rank 1
 answered on 01 May 2009
1 answer
208 views
How i can change the selectedregion color from CodeBehind, ForeColor property doesnt work, any help????

im doin it now with javascript :
     $get('RadSliderSelected_' + $find('RadSlider1').get_id()).style.background = 'url("../Images/Red.gif")';
Tsvetie
Telerik team
 answered on 01 May 2009
3 answers
97 views
I am trying to implement the "hack" solution to preserve HTML symbols instead of converting them to Unicode.  My problem is that "Telerik" is undefined in the javascript.  I don't have any references to Telerik.Web.UI as I am just using RadEditor, nothing else by Telerik.  Can you give me the numeric value for the enum: Telerik.Web.UI.Editor.Filter

If this is not an enum, can you give me the javascript definition for that variable?

I'm fairly certain that is the problem spot in the script.

Thanks much.
Rumen
Telerik team
 answered on 01 May 2009
3 answers
122 views

Hi,
I am facing following 2 problems:

1. I am getting a javascript error " 'AjaxNS' is undefined" when I try to change any value from radcontrol combo box.
Note, I have set UseEmbeddedScripts="false" as earlier I could not see RadControls (e.g. Combo Box).

Also I would like to mention that the same code works on DEV environment but it is not working on Test environment. Is there any settings or security problem?

 

2. I am getting another javascript error " 'Sys' is undefined" when a page with RadUplaod control is opened. Like above scenario, I have set UseEmbeddedScripts="false".

Also I would like to mention that the same code works on DEV environment but it is not working on Test environment. Is there any settings or security problem?

Please let me know the solution.

Veselin Vasilev
Telerik team
 answered on 01 May 2009
1 answer
160 views

Hi 

I have a problem. I using q1 2009 and. Radeditor upload and image editor doesn t working. How can I enable upload and image editor?

Upload folder enabled for image upload. Permission is ok.

       <telerik:RadEditor runat="server" ID="RadEditor1" Height="550px" Width="100%" BorderWidth="0" Skin="Office2007">  
            <ImageManager ViewPaths="~/Upload/" /> 
            <FlashManager ViewPaths="~/Upload/" /> 
            <MediaManager ViewPaths="~/Upload/" /> 
            <DocumentManager ViewPaths="~/Upload/" /> 
            <TemplateManager ViewPaths="~/Upload/" /> 
            <Content> 
                
            </Content> 
        </telerik:RadEditor> 

Thank you.
 

Georgi Tunev
Telerik team
 answered on 01 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?