Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
68 views
Moved to another place
Rumen
Telerik team
 answered on 06 Aug 2012
4 answers
345 views
Hi,

I have a page with no masterpage which has two usercontrols. One user control has a form which submits the information and another with a grid which displays the information.

I want to be able to submit the form and update the information in other usercontrol:

default.asp
--->Usercontrol1
----------->Form with submit button

---Usercontrol2
----------->RadGrid


I've been looking at the below article but get object reference error
http://www.telerik.com/help/aspnet-ajax/ajax-user-controls.html


Do I have to add any additional code for this to work.

Thanks
Maria Ilieva
Telerik team
 answered on 06 Aug 2012
1 answer
112 views
Hello,

I would like to have a Context Menu for a Header of a RadGrid that consists of the "Columns" part of the normal Context Menu and some other options I'd like to add myself (the Menu should not have the other normal Options like "Sort Ascending" visible).
Is there an easy way to achieve that functionality for the Context Menu of the Header, or is there an easy way to implement Check Boxes for the Menu Items of the Context Menu control to look familiar to the "Columns" part of the Header Context Menu of the Rad Grid control?

Thank you very much in advance,
Robin
Eyup
Telerik team
 answered on 06 Aug 2012
2 answers
104 views
I've recently developed a new page on my Windows 7 64 machine almost fully composed of Rad controls.  I'm having some weird display issues when deploying my code to the server (Windows Server 2008 R2 Enterprise SP1).  All of the functionality is there but the display can be different and odd for certain controls.  I've attached an example of a button using the Simple skin both from Windows 7 and Server 2008 using the exact same code and version of Telerik.Web.UI.dll (ver 2011.3.1305.40) in the bin directory.  I was going to attach my web.config but can't here.  I'm using the same web.config both in prod and dev.  What would cause the display to be so radically different in both places?  Keep in mind this is using IE9.  I've noticed a few of the smaller issues to go away when using IE8.  Let me know if you need more information.  Thank you.
Slav
Telerik team
 answered on 06 Aug 2012
1 answer
48 views

Hello;

We are facing a weird behavior with rad editor which happens on a some machines on different enviroment than development.

am getting the following javascript error message:

Message: Object doesn't support this action
Line: 5
Char: 32749


Details:
i have a rad editor that have the following properties:

<rad:RadEditor ID="EmailBody" runat="server" Width="100%" ToolsFile="~/_CSS/EditorBasicTools.xml" OnClientLoad="EmailBody_OnClientLoad" StripFormattingOptions="NoneSupressCleanMessage" Skin="Default" SpellCheckSettings-DictionaryPath="~/App_Data/RadSpell/" SpellCheckSettings-DictionaryLanguage="en-US" EditModes="Design" ContentFilters="RemoveScripts, FixUlBoldItalic, FixEnclosingP, IECleanAnchors, MozEmStrong, IndentHTMLContent, EncodeScripts, OptimizeSpans">
<ContextMenus>
<rad:EditorContextMenu Enabled="false" TagName="IMG">
</rad:EditorContextMenu>
<rad:EditorContextMenu Enabled="false" TagName="A">
</rad:EditorContextMenu>
</ContextMenus>
</rad:RadEditor>

 

Do you have any ideas why this happening to me

Am using 2011.3.1305 telerik controls version with IE Browser.

Rumen
Telerik team
 answered on 06 Aug 2012
1 answer
71 views

Hello;

We are facing a weird behavior with rad editor which happens on a some machines on different enviroment than development.

am getting the following javascript error message:

Message: Object doesn't support this action
Line: 5
Char: 32749
 

Details:
i have a rad editor that have the following properties:

<rad:RadEditor ID="EmailBody" runat="server" Width="100%" ToolsFile="~/_CSS/EditorBasicTools.xml" OnClientLoad="EmailBody_OnClientLoad" StripFormattingOptions="NoneSupressCleanMessage" Skin="Default" SpellCheckSettings-DictionaryPath="~/App_Data/RadSpell/" SpellCheckSettings-DictionaryLanguage="en-US" EditModes="Design" ContentFilters="RemoveScripts, FixUlBoldItalic, FixEnclosingP, IECleanAnchors, MozEmStrong, IndentHTMLContent, EncodeScripts, OptimizeSpans">
<ContextMenus>
<rad:EditorContextMenu Enabled="false" TagName="IMG">
</rad:EditorContextMenu>
<rad:EditorContextMenu Enabled="false" TagName="A">
</rad:EditorContextMenu>
</ContextMenus>
</rad:RadEditor>

Do you have any ideas why this happening to me

Am using 2011.3.1305 telerik controls version with IE Browser.

 

Rumen
Telerik team
 answered on 06 Aug 2012
0 answers
89 views
GridColumnCollection cols = grid.MasterTableView.Columns;
GridColumn c = cols.FindByUniqueName(columnName);
if (c != null){ 
    int start = c.OrderIndex; 
    for (int i= start; i < cols.Count; i++)  
    { 
        c = cols[i]; 
        if (i < cols.Count - 1)   
            c.OrderIndex = i+1;
        else     
            c.OrderIndex = start;  
    }
}

the above code doesn't work when reordering columns through server side. I have written the above code in 
pageload event . I also tried by setting the various properites like ReorderColumnsOnClient=false but it 
doesn't work . 

Kindly suggest alternatives 
Vinodh B
Top achievements
Rank 1
 asked on 06 Aug 2012
1 answer
166 views
Hello,

We are using ASP.NET 4.1 with Telerik RadControls. In one of the pages, we are using dynamically created RadDock controls. In the designer mode, we allow users to create different controls (textbox, checkbox, radio button lists, etc) and encapsulate them in a RadDock control. This allows them move and resize the controls contained in raddocks and then we save their dockstate in the SQL Server 2008 database. In the view mode, all the controls are re-created dynamically along with raddocks and added to an AjaxPanel on the page for display. In this mode, they can't be moved or resized, and are used for data entry only.

The application does work fine, but we have been noticing these unhandled exceptions in the IIS event log related to this page -
Exception information:

    Exception type: ArgumentException

    Exception message: Unterminated string passed in. (80): {"Top":1214,"Left":271,"DockZoneID":"","Collapsed":false,"Pinned":false,"Resizab
   at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeString()
   at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeMemberName()
   at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary(Int32 depth)
   at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth)
   at System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer)
   at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit)
   at Telerik.Web.UI.RadWebControl.LoadPostData(String postDataKey, NameValueCollection postCollection)
   at Telerik.Web.UI.RadWebControl.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection)
   at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Request information:
    Request URL: http://fhcehrmedical/Modules/------   
Request path: /Modules/Template/-------
    User host address: -----------------
    User: ----------
    Is authenticated: True
    Authentication Type: Forms
    Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:
    Thread ID: 21
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False

    Stack trace:    at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeString()
   at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeMemberName()
   at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary(Int32 depth)
   at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth)
   at System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer)
   at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit)
   at Telerik.Web.UI.RadWebControl.LoadPostData(String postDataKey, NameValueCollection postCollection)
   at Telerik.Web.UI.RadWebControl.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection)
   at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

This is not a consistent occurrence throughout the board but we do get about 15-20 of them every day. There are no Ajax calls from within this page itself; all it does is a regular save and retrieval. Also, this error is not logged every time they save it, but some times which is what making it difficult for us to track it down. We have investigated the individual controls that seem to cause this problem and their dockstate in the database is no different from the rest of the controls.

Can someone please provide an insight as to what could be causing this issue?

Thanks.
Slav
Telerik team
 answered on 06 Aug 2012
1 answer
41 views
Setting CurrentFilterFunction=Contains defaults to no filter while setting AutoPostBackOnFilter  as true.How to persist this setting?
Shinu
Top achievements
Rank 2
 answered on 06 Aug 2012
1 answer
97 views
How to show different user controls on edit and insert operation?
Princy
Top achievements
Rank 2
 answered on 06 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?