Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
96 views
Hi

Can I use Spell with web controls from other vendors? I try it with a Memo Text from DevExpress and Spell just get the first word from the text.

Regards
Rumen
Telerik team
 answered on 14 Oct 2009
4 answers
120 views
I have a Q2 2009 RadControls for ASP.Net AJAX RadTabStrip on a web page with NO multipage. I use the tabstrip strictly as a navigational tool. Below the tabstrip is a div with some plain old text paragraphs that sits in a contentplaceholder from my masterpage. In IE8 compatibility view, when I hover over one of the tabs on the strip, the div containing the text "collapses" and cuts off the content from the bottom. This doesn't occur in IE8 native mode, Firefox, Chrome, Opera or other modern browsers. Any thoughts? This is driving me mad!
SVA Webmaster
Top achievements
Rank 1
 answered on 14 Oct 2009
1 answer
129 views
I have a page with 2 windowmanagers on it, some controls have their own managers.
This is the manager on the control with the grid.
<telerik:RadWindowManager ID="mgrWindow" ShowContentDuringLoad="false" VisibleStatusbar="false" ReloadOnShow="true" runat="server" > 
    <Windows> 
        <telerik:RadWindow ID="EventDetailsBulkAdd" Behaviors="Close" Width="447" Height="395" Modal="true" NavigateUrl="EventDetailsBulkAdd.aspx" runat="server" OnClientClose="OnWindowClose" /> 
    </Windows> 
</telerik:RadWindowManager> 

I add the confirmtemplate to the window manager on the serverside.
mgrWindow.ConfirmTemplate = new Designer.Web.Controls.ucConfirmEventForm(this.Page); 

In the grid I have a delete button which uses the confirmtemplate.
<telerik:GridButtonColumn HeaderText="Remove" ConfirmText="{FormName}" ConfirmDialogType="RadWindow" ConfirmTitle="Remove" ButtonType="ImageButton" CommandName="Delete" UniqueName="colRemove" ImageUrl="~/Images/icon_delete.gif" > 
                <HeaderStyle HorizontalAlign="Center" Width="60" /> 
                <ItemStyle HorizontalAlign="Center" /> 
            </telerik:GridButtonColumn> 

When I click on the delete button it does not call my confirmtemplate on this control. It calls the other windowmanagers confirmtemplate which is not set and is the first one rendered. I know default RadWindowManager functions call the first RadWindowManager that is rendered on the page. How do I get my delete button to call a specific RadWindowManager?

Georgi Tunev
Telerik team
 answered on 14 Oct 2009
1 answer
87 views

I receive the following error in the CreateSaveStateTrigger  method when adding a RadDock dynamically to a RadDockZone

{"A control with ID '39f41c90af750a469baaf9eacef10f1b6c83__53' could not be found for the trigger in UpdatePanel 'UpdatePanel1'."}


'39f41c90af750a469baaf9eacef10f1b6c83__53'  is the id of the RadDock I am attempting to add.

Here is my code for CreateSaveStateTrigger:

 

private

 

void CreateSaveStateTrigger(RadDock dock)

 

{

 

//Ensure that the RadDock control will initiate postback

 

 

 

 

 

// when its position changes on the client or any of the commands is clicked.

 

 

 

 

 

//Using the trigger we will "ajaxify" that postback.

 

 

 

 

dock.AutoPostBack =

true;

 

dock.CommandsAutoPostBack =

true;

 

 

AsyncPostBackTrigger saveStateTrigger = new AsyncPostBackTrigger();

 

saveStateTrigger.ControlID = dock.ID;

saveStateTrigger.EventName =

"DockPositionChanged";

 

UpdatePanel1.Triggers.Add(saveStateTrigger);

 

saveStateTrigger =

new AsyncPostBackTrigger();

 

saveStateTrigger.ControlID = dock.ID;

saveStateTrigger.EventName =

"Command";

 

UpdatePanel1.Triggers.Add(saveStateTrigger);

}


Any help would be appreciated.

Thanks,

Brian

Jim
Top achievements
Rank 1
 answered on 14 Oct 2009
1 answer
104 views
Hi Telerik Team,

On a project we are working on for some reason we can't get the image manager in a RadEditor to upload images in I.E.

It works fine in Firefox, its accepting uploads and adding them into the file.  In I.E. the upload button is faded out (disabled).

The code that sets up the managers is shown below.

//set up the client folders  
            string[] DocMan = new string[] { "~/ClientResources/" + log.ClientID + "-" + log.Name + "/Docs/" };  
            string[] ImMan = new string[] { "~/ClientResources/" + log.ClientID + "-" + log.Name + "/Images/" };  
            string[] FlashMan = new string[] { "~/ClientResources/" + log.ClientID + "-" + log.Name + "/Flash/" };  
            string[] MediaMan = new string[] { "~/ClientResources/" + log.ClientID + "-" + log.Name + "/Media/" };  
 
 
            //create directorys if they dont exist  
            if (!Directory.Exists(Server.MapPath(DocMan[0])))  
            {  
                Directory.CreateDirectory(Server.MapPath(DocMan[0]));  
            }  
 
            if (!Directory.Exists(Server.MapPath(ImMan[0])))  
            {  
                Directory.CreateDirectory(Server.MapPath(ImMan[0]));  
            }  
 
            if (!Directory.Exists(Server.MapPath(FlashMan[0])))  
            {  
                Directory.CreateDirectory(Server.MapPath(FlashMan[0]));  
            }  
 
            if (!Directory.Exists(Server.MapPath(MediaMan[0])))  
            {  
                Directory.CreateDirectory(Server.MapPath(MediaMan[0]));  
            }  
 
            //set the directorys in the editor  
            RadEditor1.DocumentManager.ViewPaths = DocMan;  
            RadEditor1.FlashManager.ViewPaths = FlashMan;  
            RadEditor1.ImageManager.ViewPaths = ImMan;  
            RadEditor1.MediaManager.ViewPaths = MediaMan;  
            RadEditor1.DocumentManager.UploadPaths = DocMan;  
            RadEditor1.FlashManager.UploadPaths = FlashMan;  
            RadEditor1.ImageManager.UploadPaths = ImMan;  
            RadEditor1.MediaManager.UploadPaths = MediaMan;  
            RadEditor1.DocumentManager.DeletePaths = DocMan;  
            RadEditor1.FlashManager.DeletePaths = FlashMan;  
            RadEditor1.ImageManager.DeletePaths = ImMan;  
            RadEditor1.MediaManager.DeletePaths = MediaMan;  
 
            // endable the image editor  
            RadEditor1.ImageManager.EnableImageEditor = true;  
 
            // Set the max uploads of the managers  
            RadEditor1.ImageManager.MaxUploadFileSize = 4194304;  
            RadEditor1.DocumentManager.MaxUploadFileSize = 4194304;  
            RadEditor1.MediaManager.MaxUploadFileSize = 10485760;  
            RadEditor1.FlashManager.MaxUploadFileSize = 4194304;  
 
            // Set the allowed file types  
            string[] DocPatterns = new string[] {"*.pdf"};  
            string[] ImgPatterns =  new string[] {"*.gif","*.png","*.jpg"};  
            string[] FlashPatterns =  new string[] {"*.swf"};  
            string[] MediaPatterns =  new string[] {"*.avi"};  
 
            RadEditor1.DocumentManager.SearchPatterns = DocPatterns;  
            RadEditor1.ImageManager.SearchPatterns = ImgPatterns;  
            RadEditor1.FlashManager.SearchPatterns = FlashPatterns;  
            RadEditor1.MediaManager.SearchPatterns = MediaPatterns;  
 
            //Load Styles Into Editor  
            RadEditor1.CssFiles.Clear();  
            RadEditor1.CssFiles.Add("~/ClientResources/global.css"); 

                    <telerik:RadEditor ID="RadEditor1" runat="server" Height="500px" Width="750px" Language="en-GB" 
                        ContentFilters="None">  
                        <Content> 
                        </Content> 
                    </telerik:RadEditor> 

We are getting a javascript error of:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; InfoPath.2; Tablet PC 2.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)
Timestamp: Fri, 9 Oct 2009 12:55:08 UTC

Message: Object doesn't support this property or method
Line: 43
Char: 1
Code: 0
URI: http://www.imagered.co.uk/iradmin/ScriptResource.axd?d=zVUi-h_5pZ9qabijiqORhifjZOicXN2SuUtcfdQeurd2fgZYD_nF4gzzuWoaEmC7EKgAAkRkokeYMDDs1ryEzfnVb8yFwDt2bdlZ6mfwBgk1&t=ffffffff8baae12e

Message: 'Telerik.Web.UI.FormDecoratorDecoratedControls.Default' is null or not an object
Line: 29
Char: 1
Code: 0
URI: http://www.imagered.co.uk/iradmin/ScriptResource.axd?d=zVUi-h_5pZ9qabijiqORhifjZOicXN2SuUtcfdQeurd2fgZYD_nF4gzzuWoaEmC7EKgAAkRkokeYMDDs1ryEzfnVb8yFwDt2bdlZ6mfwBgk1&t=ffffffff8baae12e

 

We are not getting any errors in Firefox.

any idea why it would be working in Firefox and not I.E?

Rumen
Telerik team
 answered on 14 Oct 2009
1 answer
77 views
I upload videos using the media manger in Rad Editor.
If i dont want to show the preview of the video & just  wanted to show a link & when the user clicks on the link the video can be downloaded, what should i do?
kollam2003
Top achievements
Rank 1
 answered on 14 Oct 2009
2 answers
255 views
Hi all.

I'm using RadGrid (Telerik.Web.UI version 2008.3.1314.35) and getting the following error intermittently:

Line: 2315
Error: Sys.InvalidOperationException: Type Telerik.Web.UI.Orientation has already been registered. The type may be defined multiple times or the script file that defines it may have already been loaded. A possible cause is a change of settings during a partial update.


Then I click OK and this error is shown:

Line: 1266
Error: Sys.ScriptLoadFailedException: The script '/ScriptResource.axd?d=DRRRF0lfdGPBZtsSbajt39Af5wonTAgGeuf84mye7dW8eEGeKInK_beJOvDZmok9d9bDEO8Est-jZldOVJwBA4mHHe-xjid1-5haZivH3EM1&t=ffffffffcec42054' failed to load. Check for:

 Inaccessible path.

 Script errors. (IE) Enable 'Display a notification about every script error' under advanced settings.

 Missing call to Sys.Application.notifyScriptLoaded().



I can't figure out what is happing. All I know is that this error only occurs after I stop to use the application for a while. For example: I click a button that populates the RadGrid. Then I wait for ~ 10 min. I click the button again and the error above is shown.

(We are using Load Balancing in servers)

Any ideias?

Thank you in advance



Rodrigo Proenca
Top achievements
Rank 1
 answered on 14 Oct 2009
3 answers
82 views
Hi,

I have a page with a RadGrid and below the grid a Panel with Detail controls. The Grid is filled with Employees. When I select an Employee the Panel with Detail controls must be filled with Employee details.

I am using the RadAjaxManager to Ajaxify this page. I added an AjaxSetting with the Grid as the AjaxControl and the Panel as the AjaxUpdatedControl. All this works but the Panel is updated at each event of the Grid (Sorting, FIltering, Selecting, etc.). I want that the Panel is only updated when the SelectedIndexChanged event of the Grid occurs.

Is there a way to specifiy Events in the AjaxManager?
Or is there a way to Update controls from the server, even when they are not Ajaxified in the first place (like the Update method of the AJAX.NET UpdatePanel)?

Thanks,
Danny
Sebastian
Telerik team
 answered on 14 Oct 2009
1 answer
171 views
I am trying to re-populate the radlistbox items, so that the items are re-checked based on the values stored in database. How can I do this?

radlistbox.selectedindex = 1 only selects the apporiate items but not checked.
Genady Sergeev
Telerik team
 answered on 14 Oct 2009
1 answer
422 views
Hi,

I need to get my code working because it has to go live this monday. I've a big problem. My javascripts are not getting fired when put inside update Panel.

Pls  do not tell it's not telerik's problem. some ppl have responded to us like that.

This is my code:

 

//js function which isused to get refernce of the client object

 

 

 

 

 

<telerik:RadScriptBlock>
<script type="text/javascript">

 

 

 

 

 

function getSelected()

 

{

 

//get a reference to Radcombobox client object

 

 

 

 

 

 

var obTagCombo = document.getElementById("<%= m_radTagCombo.ClientID %>");

 

 

 

//get_value() returns the value of the control

 

 

 

 

 

 

var value = obTagCombo.get_value();

 

 

//get_text()returns the text of the control.

 

 

 

 

 

 

var text = obTagCombo.get_text();

 

 

//get a reference to RadEditor client object

 

 

 

 

 

 

var editor = document.getElementById("<%=m_radEmailEditor.ClientID%>");

 

 

 

//pasteHtml method is used to paste the contents passed to the editor control.

 

 

 

 

 

editor.pasteHtml(text);

}

 

 

 

</

 

script>

 

</

 

telerik:RadScriptBlock>

 

And I call this js getSelected () in

 

 

 


 

 

<input type="button" value="Insert Tag" onclick="getSelected();" />

But I get a Js undefined: object expected error. Pls do help us in solving this bug. Pls help with code.

I'm sure you guys have a good solution for this.
Thanks,
ZR

 

Rumen
Telerik team
 answered on 14 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?