Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
79 views
If a programmer already has the production copy of say the Rad Ajax Controls installed on his Visual Studio 2008 and would like to try the Telerik Reporting system on a trial basis, would the install of the Telerik Reporting Suite have any effect on the Radcontrols for ASP.Net AJAX?  Would it mess up my install of the RadAjax Controls?  Would it effect my current license at all?  thanks!
Donna
Telerik team
 answered on 27 Oct 2009
1 answer
98 views

Hi,

I am using radeditor for my application. It showing a error message in track change pop window 'OutOfMemoryException'.

Because I am using a html file in radeditor content  which contains more than 1000 lines.

Please the find image file attached, showing error message.

So give any suggestions and how to resolve it.

Thanks in Advance.

 

Regards

Utchimahali.N

Rumen
Telerik team
 answered on 27 Oct 2009
1 answer
87 views
When I add a SELECT element to a page in Design mode with rad editor, I can find no way to manipulate it. To demonstrate my problem, go to the following demo URL: http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx

Click anywhere in the page and use the toolbar to add a SELECT element. Now, try clicking on the SELECT element. You get no indication it's selected, nor do you get any editable properties down below. It does not seem to matter if you add it within a FORM element or not.

Ideally, I should be able to select the element and manage the normal properties, such as name, id, tooltip, etc. I should also be able to manage the list of options and choose which one is selected by default.

Am I missing something? I searched the manual and forum, but found nothing relating to SELECT elements.

Thank you in advance for your assistance.

Joel
Rumen
Telerik team
 answered on 27 Oct 2009
0 answers
99 views
My Fault:

The P of .PasteHtml must be lowercase!

Correct: .pasteHtml

Can a mod attach this please to the previous post?
Yavuz Bogazci
Top achievements
Rank 1
 asked on 27 Oct 2009
1 answer
88 views
hi 
I'am using latest RadControls for ASP.NET AJAX Q2 2009 SP1.
i have to apply custom skin in Rad Editor controls.
its won't apply for imagemanager control..


I have set 
radeditor.Skin = "MyCustomSkin";
            radeditor.EnableEmbeddedSkins = false;

Can you tell me how to solve that issue 

advanced thanks

with regards
R.Vivekanandan
Rumen
Telerik team
 answered on 27 Oct 2009
3 answers
272 views
Hello,
 I have a dynamically built grid with in-place editing and insert row. The insert row is always available at top and I have the following code to do so.

if

 

(!grid.MasterTableView.IsItemInserted)

 

{

grid.MasterTableView.IsItemInserted =

true;

 

grid.Rebind();

}

I have hooked up the OnCommand client event for a confirmation from user when they hit cancel on the row.
grid.ClientSettings.ClientEvents.OnCommand = "RaiseCommand";

 

 

<script type="text/javascript">

 

 

function RaiseCommand(sender, args) {

 

 

if ( (args.get_commandName() == "CancelUpdate") || (args.get_commandName() == "CancelInsert")) {

 

 

if (confirm('Are you sure you want to clear all of the answers for this row?')) {

 

args.set_cancel(

false);

 

}

 

else {

 

args.set_cancel(

true);

 

}

}

}

 

</script>

The problem is if the user confirms the cancel, the CancelCommand never gets fired for the Insert Row. It fires correctly for the Edit Row. I want to trap the CanceCommand to clear the insert row from any contents. Please help

 

Veli
Telerik team
 answered on 27 Oct 2009
1 answer
121 views
Hi,

I have a user control that contains a details view control (DV) among other things.  Within the DV I have a template field with an Editor as the edit template.  I am trying to enforce image size constraints when a user tries to resize an image by dragging the corners etc. 

The issue is that the oncontrolselect event handler that is attached in the ClientLoad does not appear to fire.

By default the DV is in read only mode, although changing the default mode to edit doesn't appear to resolve the issue.

When the details view goes into edit mode this script appears to run.  I get the first two alerts (start and editor).  However, when I click an image and resize it by dragging the corners none of the other alerts appear and the constraints are not enforced.  On a page with the editor in a details view but NOT in a user control the code appears to be fine.

Am I missing something to get the editor oncontrolselect event to fire?

Here's the edit template code from the DV
<EditItemTemplate>  
    <telerik:RadEditor ID="reTest" runat="server"   
        ContentAreaCssFile="http://path/to/cc.css"   
        StripFormattingOnPaste="MSWordRemoveAll"                              
        ToolsFile="~/App_Data/RadEditor/Tools.xml"   
        OnClientPasteHtml="PasteFormatting"  
        OnClientCommandExecuting="ChangeImageManager"   
        OnClientLoad="OnClientLoad"   
        Content='<%# Eval("Object.HTML") %>'>  
        <ImageManager MaxUploadFileSize="2097152" />  
        <Content><p></p></Content>  
    </telerik:RadEditor>  
</EditItemTemplate>  

Here's the javascript that is below the editor on the page.  There are some server code tags in the js to pull values in from the code behind & web config.

function OnClientLoad(editor, args)         
        {         
                alert("start"); 
                 
                alert(editor); 
            editor.attachEventHandler("oncontrolselect", function()         
            {         
                alert("attachEventHandler"); 
                //Check if image         
                window.setTimeout(function()         
                {         
                alert("setTimeout"); 
                    var selElem = editor.getSelection().getParentElement();          
                    if (selElem.tagName == "IMG")         
                    {        
                        //Store current width and height        
                        curWidth = selElem.offsetWidth;        
                        curHeight = selElem.offsetHeight;       
                         
                        //Possible to resize, so attach eventhandler        
                        selElem.onresizeend = function(e)        
                        {        
                            var resized = false; 
                            alert("onresizeend"); 
 
                            if(selElem.style.pixelWidth > <%=System.Configuration.ConfigurationManager.AppSettings["editorMaxWidth"] %>) 
                            { 
                                selElem.style.pixelWidth =  <%=System.Configuration.ConfigurationManager.AppSettings["editorMaxWidth"]  %> 
                                resized = true;   
                            } 
                            if(selElem.style.pixelHeight > <%=System.Configuration.ConfigurationManager.AppSettings["editorMaxHeight"] %>) 
                            { 
                                selElem.style.pixelHeight = <%=System.Configuration.ConfigurationManager.AppSettings["editorMaxHeight"]  %>    
                                resized = true; 
                            } 
 
                            if(resized) 
                            { 
                                alert('Your image cannot be larger than <%=System.Configuration.ConfigurationManager.AppSettings["editorMaxHeight"]  %> x <%=System.Configuration.ConfigurationManager.AppSettings["editorMaxHeight"]  %>'); 
                            } 
          
                           // selElem.onresizeend = null;//remove handler        
                                    
                        };    
                    }      
                }, 0);         
            });     
        }         

Thanks for any help offered,

Regards,

Matt

Rumen
Telerik team
 answered on 27 Oct 2009
3 answers
166 views
Is there radInfo -dialog? Just to tell user that everything was ok.
Georgi Tunev
Telerik team
 answered on 27 Oct 2009
1 answer
221 views
hi in javascript we can have "oWnd.setSize(800, 600);
oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Maximize + Telerik.Web.UI.WindowBehaviors.Close)
" to add the size and multiple behaviors.

Is it possible to do all these in code behind?  Here is my code to open the window from code behind

RadWindow rw = radwindowmanager1.Windows[0];        
        rw.OpenerElementID = label1.ClientID;
        rw.NavigateUrl = "page1.aspx?abc=" + strID;

thanks in advance!
Georgi Tunev
Telerik team
 answered on 27 Oct 2009
1 answer
195 views
Hi friends

I want to validate the below control, how to do that.


and also this one, if we dont select any event , some msg shld come like "Please select an event" , but without choosing the event its is saving, inorder to bind i use the usercontrol AdvancedForm, the radcombox  is placed in resourcecontrol usercontrol , i used the
emptyMessage option in radcombobox but nothing is displaying and not validating

Please help
Peter
Telerik team
 answered on 27 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?