Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
122 views
Hi guys. I just started to use Telerik control.

I have a RadGrid, when users click on the hyperlink, it will pop up and show the user list. I had it running smoothly with a form that using <asp:Content> with a master page. But I have to create another page that without the master page, so I only use normal <html> tag but the radopen is not showing the pop up. Please help.

CS Code
protected void gvHistory_ItemDataBound(object sender, GridItemEventArgs e)
        {
           GridDataItem item = (GridDataItem)e.Item;

                HyperLink hlink = (HyperLink)e.Item.FindControl("hlink");
                hlink.Attributes.Add("Onclick", " return radopen('frmViewUser.aspx?Role_ID=" + item["ROLE_ID"].Text + "','RadWindow1');");
}

ASPX
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <script type="text/javascript">

        function printWindow() {
            bV = parseInt(navigator.appVersion)
            if (bV >= 4) window.print()
        }

        function GridCreated(sender, args) {
            var scrollArea = sender.GridDataDiv;
            var dataHeight = sender.get_masterTableView().get_element().clientHeight;
            if (dataHeight < 250) {
                scrollArea.style.height = dataHeight + 17 + "px";
            }
        }

    </script>

    <style type="text/css">
        .RadWindow {top: 0px!important; left: 0px!important;}
    </style>
</head>
<body>




<form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    
    <div>
        <table>
                <tr>
                    <td>
                        <telerik:RadGrid ID="gvHistory" runat="server" AutoGenerateColumns="False" Width="100%" ExportSettings-Pdf-AllowPrinting="true"
                            PagerStyle-AlwaysVisible="false" CellSpacing="0" ShowFooter="False" Skin="Windows7" TableLayout="Auto" 
                            Font-Size="10px" GridLines="None" EnableLinqExpressions="False" OnItemDataBound="gvHistory_ItemDataBound">
                        <MasterTableView EnableNoRecordsTemplate="true" DataKeyNames="ID" ItemStyle-Wrap="True" HeaderStyle-Wrap="False"
                            Width="100%">
                            <Columns>
                                <telerik:GridBoundColumn DataField="DESCRIPTION" HeaderText="ICMS Status" HeaderTooltip="ICMS Status" UniqueName="DESCRIPTION">
                                </telerik:GridBoundColumn>
                                <telerik:GridTemplateColumn HeaderText="Approver" DataField="ROLE_NAME" 
                                    AllowFiltering="false">
                                    <ItemTemplate>
                                        <asp:HyperLink ID="hlink" runat="server" Text='<%# Eval("ROLE_NAME") %>' 
                                            Onclick="radopen('frmViewRoleUserform.aspx?Role_ID=" + '<%# Eval("ROLE_NAME") %>' + "','RadWindow1')"></asp:HyperLink>
                                        
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>                                    
                                <telerik:GridBoundColumn DataField="USER_NAME" HeaderText="Approved By" HeaderTooltip="Approved By">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="ACTION_TIME" HeaderText="Date" HeaderTooltip="Date" UniqueName="ACTION_TIME">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="COMMENTS" HeaderText="Comment" HeaderTooltip="Comment">
                                </telerik:GridBoundColumn>                                
                                <telerik:GridBoundColumn DataField="ROLE_ID" Display ="false" UniqueName="ROLE_ID">
                                </telerik:GridBoundColumn>                                
                            </Columns>
                        </MasterTableView>
                        <ClientSettings>
                            <Scrolling AllowScroll="False" SaveScrollPosition="True"  />
                            <ClientEvents OnGridCreated="GridCreated" />                               
                        </ClientSettings>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                    </telerik:RadGrid>
                    </td>
                </tr>
            </table>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
            <Windows>
                <telerik:RadWindow ID="RadWindow1" runat="server" ShowContentDuringLoad="false" Width="800px"
                Height="400px" Title="Role Users" Behaviors="Default" Left ="10" Top="10" >
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
        </asp:Panel>        
        <br />
    </div>
</form>
    </body>
    </html>
Princy
Top achievements
Rank 2
 answered on 04 Jun 2014
4 answers
120 views
Is it possible to stack the aggregated items in the column footer?

What I am looking for is to display a number of aggregates (sum, avg, std dev) for certain columns that will appear vertically.
Phil
Top achievements
Rank 1
 answered on 04 Jun 2014
6 answers
152 views
Hi,

I have an asp.net 4.0 application that uses Radeditor. However, when I installed SSL certificate in IIS I'm getting XML Parsing Error in Firefox or just blank page in IE as shown in the picture. This only happens in pages with Radeditor in it.

When I uninstalled the certificate, the issue was gone and the pages worked flawlessly. Any Idea how to fix this?

I am using a Comodo SSL in IIS6.

Thanks
Ianko
Telerik team
 answered on 04 Jun 2014
3 answers
276 views
Hello,

We are using RadEditor (2014.1.225.40) & are encountering a serialization error(below) when setting up a large number of EditorLink entries (15,000+)

I know the 'right' answer is to NOT build up that much data to send to the browser, but I am looking to see if there is any short term workaround to try.


Please note:
We do ALREADY have an entry to setup the maximum in the web.config, but that does appear to apply to the editor instance - I'm guessing it has it's own instance.
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="2147483644"></jsonSerialization>
</webServices>
</scripting>
</system.web.extensions>

When I break on the error I see that in RadEditor.SerializeCollections, there is a _serializer instance that has a MaxJSONLength of 2097152.
(see attached image serializerSetting.gif)
Is there any config/small code change I can make to adjust that until I get a better fix in place?


Full Error:
Server Error in '/' Application.Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.InvalidOperationException: Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace: 

[InvalidOperationException: Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.]
System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, StringBuilder output, SerializationFormat serializationFormat) +532853
System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, SerializationFormat serializationFormat) +66
System.Web.Script.Serialization.JavaScriptSerializer.SerializeValue(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat, MemberInfo currentMember) +153
System.Web.Script.Serialization.JavaScriptSerializer.SerializeEnumerable(IEnumerable enumerable, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat) +127
System.Web.Script.Serialization.JavaScriptSerializer.SerializeValueInternal(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat, MemberInfo currentMember) +1306
System.Web.Script.Serialization.JavaScriptSerializer.SerializeValue(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat, MemberInfo currentMember) +197
System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, StringBuilder output, SerializationFormat serializationFormat) +28
System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, SerializationFormat serializationFormat) +66
Telerik.Web.UI.RadEditor.SerializeCollections(IScriptDescriptor descriptor, JavaScriptSerializer jss) +912
Telerik.Web.UI.RadEditor.DescribeComponent(IScriptDescriptor descriptor) +1258
Telerik.Web.UI.RadWebControl.Telerik.Web.IControl.DescribeComponent(IScriptDescriptor descriptor) +10
Telerik.Web.UI.ScriptRegistrar.GetScriptDescriptors(Control control) +119
Telerik.Web.UI.RadEditor.GetScriptDescriptors() +26
Telerik.Web.UI.RadWebControl.System.Web.UI.IScriptControl.GetScriptDescriptors() +10
System.Web.UI.ScriptControlManager.RegisterScriptDescriptors(IScriptControl scriptControl) +128
Telerik.Web.UI.RadWebControl.RegisterScriptDescriptors() +90
Telerik.Web.UI.RadEditor.RegisterScriptDescriptors() +27
Telerik.Web.UI.RadWebControl.Render(HtmlTextWriter writer) +84
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10
System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10
System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
System.Web.UI.Control.Render(HtmlTextWriter writer) +10
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
System.Web.UI.Control.Render(HtmlTextWriter writer) +10
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +216
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +53
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
System.Web.UI.Control.Render(HtmlTextWriter writer) +10
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
System.Web.UI.Page.Render(HtmlTextWriter writer) +29
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1386
Ianko
Telerik team
 answered on 04 Jun 2014
3 answers
170 views
We've got a couple of oddities with RadEditor (Q1 2010 version).

Links:

1) In Design mode, the user enters a line of text
2) The user marks a single word in the text they just entered
3) The user sets a hyperlink on the word via the Hyperlink Manager.
4) User continues adding text
5) The user marks the word previously hyperlinked and presses "Delete" on the keyboard

Result:
In HTML View, there's an empty anchor <a href></a> tag where the word used to be.

Things we tried:
- If the user selects the word plus the whitespace character preceding the word, the anchor tag is properly removed
- If the user "backspaces" the word out, the anchor tag is also properly removed
- If the user marks the word and instead of pressing "Delete" starts typing a replacement text, the anchor tag is kept around the new text

It's our opinion that marking the word (shift + cursor keys) and pressing the "Delete"-Key should also remove the underlying anchor tag (if present).

Changing Attributes:

Scenario:
 We've got a Rad Editor on a page. The content is set from the Database. On postback, the application should check whether the user changed the content, and if yes, do some processing and update the database.

Observation:
We were setting the Rad Editor from the database with text containing a single anchor tag as follows:

.... <a href="http://www.sample.com" class="XYZ">Sample</a> ...

Without changing anything in the editor and forcing a postback, RadEditor gave us the following content back:

.... <a class="XZY" href="http://www.sample.com">Sample</a> ...

Being the good fellows we are, we take that, write it back into the database and load the page again. So this time we set the content of our rad editor to:

.... <a class="XZY" href="http://www.sample.com">Sample</a> ...

Again, without changing anything in the edtior, we cause a postback and lo and behold what do we get from Rad Editor:

.... <a href="http://www.sample.com" class="XYZ">Sample</a> ...

We've determined that this due to one of the default CONTENT FILTERS that Rad Editor uses. We managed to fix the problem by setting the ContentFilters property to "None", however this "fix" is less than perfect. Maybe you guys could look at which part of your javascript is flipping tag attributes around and make it stop?

Thanks.


Ianko
Telerik team
 answered on 04 Jun 2014
2 answers
80 views
Hi, 

I'm looking at switching over to the HTML Charts now that they seem rich in features.  

First issue that I am facing is that I want to only show the top x records on the chart with any beyond x being shown collectively as others.

Beyond manipulating the data set to do that is there any way to do this with the out of the box charts?

Regards

Jon
Jon
Top achievements
Rank 1
 answered on 04 Jun 2014
2 answers
122 views
What CSS do I need to apply to reduce the height / shrink spacing between the file names in the uploaded list?
Magdalena
Telerik team
 answered on 04 Jun 2014
3 answers
51 views
We are running Version 9.0.30729.1 SP.

When using a RadEditor in IE 9, the data that is entered is never sent back to the server.  I have tried adding the UseSubmitBehavior=false on all the saving buttons,  I also tried to add the meta tag to emulate IE 8. Is there a patch for this version that fixes this issue with IE 9?

Everything works fine in Chrome and Firefox and IE 8.
Ianko
Telerik team
 answered on 04 Jun 2014
4 answers
60 views
Hi..

Got a problem with Radcalendar. Works fine locally on IIS8 click a date and the date stays selected. When I publish to IIS8 I click on a date and the date bounces back to selected date bounces back to today's date. The calendar is on a masterpage is there anything obvious to look for?
Speedcrete
Top achievements
Rank 1
 answered on 04 Jun 2014
3 answers
42 views
Hi All

I am facing issue the order of the attributes get change when load the data in Rad editor, The same order also get change when switch between the design & html mode.
The Tag i insert in the db: &lt; <a style="color: #000000;" class="1" title="C-2, General Commercial" tagname="Primary Zone">C-2, General Commercial</a> &gt;
The tag i got in a html editor: &lt; <a tagname="Primary Zone" title="C-2, General Commercial" class="1" style="color: #000000;">C-2, General Commercial</a> &gt;

Here the order of the attribute is exactly reverse.
The same also get reverse when switch between  the design & Html Mode
Ianko
Telerik team
 answered on 04 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?