Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
82 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
100 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
180 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
43 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
102 views
How to show different user controls on edit and insert operation?
Princy
Top achievements
Rank 2
 answered on 06 Aug 2012
0 answers
109 views
Hi folks,

I've got a RadGrid with a GridDateTimeColumn. In edit mode the textbox is only 4px wide. This is only happens for the first time I edit a row after the page is loaded! When I click Cancel to exit edit mode and then edit again, the width is 120px. I've got this issue in IE8. Works fine in Firefox. Have tested with different skins, all give the same result. Also see attached screenshot.

Below is the .aspx code. The column that shows the issue is "betaaldatum". Als interesting is that the ItemStyle width of 60px is completely ignored.

 

<telerik:RadGrid ID="gridTermijnen" runat="server" Width="610px" OnItemDataBound="gridTermijnen_ItemDataBound" 
                                    AllowSorting="True" CellSpacing="0" GridLines="None" OnNeedDataSource="gridTermijnen_NeedDataSource" OnInsertCommand="gridTermijnen_InsertCommand"  
                                    OnDeleteCommand="gridTermijnen_DeleteCommand" OnUpdateCommand="gridTermijnen_UpdateCommand" OnItemCommand="gridTermijnen_ItemCommand" OnDataBound="gridTermijnen_DataBound" LocalizationPath="~/creditmanagement/Telerik_localization">
                                <ClientSettings EnableRowHoverStyle="true" >
                                    <Selecting AllowRowSelect="true" />
                                    <ClientEvents OnRowDblClick="RowDblClick" />
                                    <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" ScrollHeight="120" />
                                </ClientSettings>
                                <MasterTableView DataKeyNames="nr" AllowSorting="true" ShowFooter="true" NoMasterRecordsText=" Geen termijnen gevonden" AutoGenerateColumns="false" 
                                    CommandItemDisplay="Top" EditMode="InPlace">
                                    <Columns>
                                        <telerik:GridTemplateColumn UniqueName="RowNumber" HeaderText="Nr.">
                                            <ItemTemplate>
                                                <asp:Label ID="numberLabel" runat="server" Width="30px" />
                                            </ItemTemplate>
                                            <HeaderStyle Width="30px" />
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridDateTimeColumn DataField="betaaldatum" SortExpression="Betaaldatum" UniqueName="Betaaldatum" HeaderText="Betaaldatum" DataFormatString="{0:d/M/yyyy}" FilterControlWidth="100px" HeaderStyle-Width="140px" AllowFiltering="true">
                                            <ItemStyle Width="60px" />
                                        </telerik:GridDateTimeColumn
                                        <telerik:GridNumericColumn DataField="termijnbedrag" UniqueName="Termijnbedrag" HeaderText="Termijnbedrag" NumericType="Currency" Aggregate="Sum" FooterAggregateFormatString="Totaal: {0:C}" />
                                        <telerik:GridTemplateColumn DataField="nagekomendatum" UniqueName="Nagekomendatum" HeaderText="Datum nagekomen">
                                            <ItemTemplate>
                                                <asp:Label ID="nagekomendatumLabel" runat="server" Text='<%# Eval("nagekomendatum", "{0:d/M/yyyy}") %>' Width="100%" />
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridEditCommandColumn UniqueName="EditColumn" CancelText="Annuleren" UpdateText="Wijzigen" InsertText="Toevoegen" EditText="Bewerken"><HeaderStyle Width="120px" /></telerik:GridEditCommandColumn>
                                        <telerik:GridButtonColumn UniqueName="DeleteColumn" CommandName="Delete" ButtonType="LinkButton" Text="Verwijderen" ConfirmText="Weet u zeker dat u de geselecteerde termijn wilt verwijderen?" />
                                    </Columns>
                                    <CommandItemSettings AddNewRecordText="Toevoegen nieuwe termijn" ShowRefreshButton="false" />
                                    <SortExpressions>
                                        <telerik:GridSortExpression FieldName="betaaldatum" SortOrder="Ascending" />
                                    </SortExpressions>
                                </MasterTableView>
                            </telerik:RadGrid>

The html source code that is generated for IE first edit, IE second edit and Firefox edits:
IE, 1st edit - 4px column!
<input name="gridTermijnen_ctl00_ctl05_RDIPBetaaldatum_dateInput_text" class="riTextBox riEnabled" id="gridTermijnen_ctl00_ctl05_RDIPBetaaldatum_dateInput_text" style="width: 4px;" type="text" _events="[object Object]" value="25-10-2012"/>
  
IE, 2nd edit - fine, though it seems hardcoded to 120px which is not a setting I applied anywhere:
<input name="gridTermijnen_ctl00_ctl05_RDIPBetaaldatum_dateInput_text" class="riTextBox riEnabled" id="gridTermijnen_ctl00_ctl05_RDIPBetaaldatum_dateInput_text" style="width: 120px;" type="text" _events="[object Object]" value="25-10-2012"/>
  
Firefox - always fine.
<input maxlength="2147483647" value="25-10-2012" id="gridTermijnen_ctl00_ctl05_RDIPBetaaldatum_dateInput_text" name="gridTermijnen_ctl00_ctl05_RDIPBetaaldatum_dateInput_text" class="riTextBox riEnabled" style="width:100%;" type="text">

I've no idea where this 4px comes from. Also because it's hardcoded in the html I can't use CSS to override it.

Any suggestions are much appreciated!

Rick
Rick
Top achievements
Rank 1
 asked on 06 Aug 2012
1 answer
193 views
Hi All,

I have a RadGrid control and can access the controls inside it (server-side or client-side).

Now, I have a RadGrid inside that RadGrid and I want to access the controls inside that inner grid, but cannot access the controls either server-side or client-side. Especially, I want to access table or div inside the inner grid.

Please help me in this regards...Thanks in advance.

Dhaval
Shinu
Top achievements
Rank 2
 answered on 06 Aug 2012
2 answers
104 views
Is it possible to export to excel from two or more radgrids in to the same excelsheet at once?

If so, how to do?
Alexander
Top achievements
Rank 1
 answered on 06 Aug 2012
1 answer
90 views
I'm getting Invalid JSON primitive: .  when I try to export to Excel or CSV.  The column names contain various symbols, so I think that might be the cause, but I don't know how to fix it because the column names cannot be changed.  Is there any way around this?
Daniel
Telerik team
 answered on 06 Aug 2012
5 answers
371 views
Hi,

I want the (default value on load in)rendering in datepicker to be __/__/__ on load, and user should be able to insert dates, without having to enter the '/'. I am using Telerik Q1 2009.

I learn from the forum that raddatepicker's dateinput had this property which was removed in the later version to apply free form logic.

In one of the threads, you have explained how to achieve this on blur.

I would like to do this on load (and not on blur). Is there way to do this, without writing the masking logic in javascript ?

Thanks & Regards,
Sachin

Vasil
Telerik team
 answered on 06 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?