Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
77 views
Hello,
By some fluke, I discovered an issue with RadEditor when certain HTML is entered into the editor. This only came to my attention when one of the users of our web app notified me of browsers crashing when trying to load the content into the editor. After investigating, I created a reproducible sample than breaks the editor on Telerik's demo page, as well as the editor in my own app.

here is the offending html: careful

<span style="color: #ff0000;">Test</span> Some content "really long text here; some more stuff here

Enter this html into the HTML view of the rad editor here:
http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx

Careful tho, this will probably crash your browser.

I suspect the issue is caused by whatever parser is trying to interpret that html, and it chokes on it. The real offender is the quote before 'really'. If i remove that, it seems to not be an issue. In the meantime, i removed the quote from the content so my user could edit the content. But I figured I would post the problem here so it can be fixed for future releases.

Thanks!
Marin Bratanov
Telerik team
 answered on 25 Nov 2014
1 answer
66 views
I created a barchart using HTMLChart. HTML code was completed and works fine.
Below is some code. I used static number for test. (Y="25")
How to assign integer to Y in run time in code behind the form? 

                                        <telerik:BarSeries Name="Notification Sent to PCP" Stacked="false" Gap="1.5" Spacing="0.4">
                                                <Appearance>
                                                    <FillStyle BackgroundColor="Yellow"></FillStyle>
                                                </Appearance>
                                                <LabelsAppearance DataFormatString="{0}" Position="Center">
                                                </LabelsAppearance>
                                                <TooltipsAppearance BackgroundColor="#c5d291" DataFormatString="{0}" Color="White">
                                                </TooltipsAppearance>
                                                <SeriesItems>
                                                    <telerik:CategorySeriesItem Y="25"></telerik:CategorySeriesItem>
                                                </SeriesItems>
                                            </telerik:BarSeries> 
Danail Vasilev
Telerik team
 answered on 25 Nov 2014
4 answers
44 views
Hi.

Actually i´m working on a page that add several radDockZone by code, and need to associate them to an ajaxsetting to show an loading Panel. It works, but the problem is the RaddockZone loss their size (fixed at certain rate, for exple 49%, 49%) and act exaclty like if its size never be fixed (Adjusting his size) I tried to add Ajasetting by C# or by ASPX, tried to place my DockZones in several kind of container, but any works. If ajaxsettings for the Zone exits, His fixed size simply doesn´t works.

The settings AjaxcontrolID and the updatecontrol controlID are the same, and it´s the ID of the RadDockZone which i need to update. I need to update it when a dock is docked in it but since there are several Docks and they can be place in several zones the right it´s RaddockZone update irself.

I really appreciate if anybody has an idea about how it´s possible this strange fail occurs. I´d Like to know if i can try to solve it modifyng the update radDockZone event (which doesn´t appear in intellisense in VS) 

Thanks in advance
Slav
Telerik team
 answered on 25 Nov 2014
1 answer
54 views
Hi, 

I want to download grid data in Pdf format, on LinkButton click event, for that i used this code. 

protected void ExportToPdf_Click(object sender, EventArgs e)
       {
           RadGrid1.ExportSettings.ExportOnlyData = true;
           RadGrid1.ExportSettings.IgnorePaging = true;
           RadGrid1.ExportSettings.OpenInNewWindow = true;
           RadGrid1.ExportSettings.FileName = "FileName";
           RadGrid1.MasterTableView.ExportToPdf();
       }

But every time i click on the button, my file is downloading in .xls format not in .Pdf.. 

any suggestions? thanks. 
Kostadin
Telerik team
 answered on 25 Nov 2014
1 answer
130 views
Good day

I have a radmenu with menu items, and each menu item has children.

When the client clicks on a submenuitem, i would like to get the parent menu item text.

Thank you
Tiaan
Top achievements
Rank 1
 answered on 25 Nov 2014
1 answer
105 views

There is several bugs in 2014.3.1024 release (UI for ASP.NET AJAX), here is one:

No base line showing with ShowBaseLine="true" when use "Outlook" skin (and other skins, "Black" skin is fine).

You may create a test website, and then copy the below code to repeat the issue (like showing in the picture attached). Please let me know if there is a quick fix for this:

Thanks,

Ryan

====Code below=================

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
<Scripts>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
</Scripts>
</telerik:RadScriptManager>
<script type="text/javascript">
//Put your JavaScript code here.
</script>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
</telerik:RadAjaxManager>
<telerik:RadSplitter runat="Server" ID="RadSplitter1" Width="100%" BorderSize="0"
BorderStyle="None" PanesBorderSize="0" Height="100%" Orientation="Horizontal"
VisibleDuringInit="false">
<telerik:RadPane ID="RadPaneMenu" runat="server" Height="30" Width="100%">
<telerik:RadTabStrip ID="Menu1" runat="server" Width="100%" ScrollChildren="true"
Skin="Outlook" ShowBaseLine="true">
<Tabs>
<telerik:RadTab Text="AAAAA" Value="0" Selected="True">
</telerik:RadTab>
<telerik:RadTab Text="BBBB" Value="1">
</telerik:RadTab>
<telerik:RadTab Text="CCCC" Value="2">
</telerik:RadTab>
<telerik:RadTab Text="DDDDD" Value="3">
</telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
</telerik:RadPane>
<telerik:RadPane ID="RadPaneMain" runat="server" Height="100%" Width="100%">

</telerik:RadPane>
</telerik:RadSplitter>
</form>
</body>
</html>
Aneliya Petkova
Telerik team
 answered on 25 Nov 2014
3 answers
294 views
I'm not sure if the RadGrid (or late bound controls) support what I'm trying to do.

My concern is design in nature.

I can already perform the grouping server-side, but when I have two items that match on a particular DataKey, I need to effectively make them appear as 1 item.

For example:

// Asset of a person
public class PersonAsset {
     public Guid PersonID {get;} //DataKey; second GroupBy will be by PersonID
      
     public string Asset {get;set;}
     public Guid AssetID {get;set} //not a DataKey for the Grid, correlates to a comboxbox that makes the asset changeable
      
     public string PersonName {get;set;}
     public string Note1 {get;set;}
     public string Note2 {get;set;}
     public string Note3 {get;set;}
     public PersonAssetState State {get;set;}
}
 
//going to perform first GroupBy using this enum
public enum PersonAssetState {
   NotSet,
   Type1,
   Type2
}

<telerik:RadGrid runat="server" ID="rGridInventory" ShowHeader="true" Width="99%" OnNeedDataSource="rGridInventory_NeedDataSource">
       <MasterTableView DataKeyNames="PersonID" ClientDataKeyNames="PersonID" 
           ShowGroupFooter="true" GroupLoadMode="Client">
           <GroupFooterTemplate>              
           </GroupFooterTemplate>
           <GroupByExpressions>
               <telerik:GridGroupByExpression>
                   <GroupByFields>
                       <telerik:GridGroupByField FieldName="State" SortOrder="Descending" />
                       <telerik:GridGroupByField FieldName="PersonID" />
                   </GroupByFields>
                   <SelectFields>
                       <telerik:GridGroupByField FieldName="State" />
                       <telerik:GridGroupByField FieldName="PersonID" />
                   </SelectFields>
               </telerik:GridGroupByExpression>
           </GroupByExpressions>
       </MasterTableView>           
   </telerik:RadGrid>

So at this point, instead of having subsequent grouped columns/rows containing "PersonName" twice or more in a tubalar fashion, I am looking for it to display once, and for all groupings at this level (Second) to appear as 1 row.
Konstantin Dikov
Telerik team
 answered on 25 Nov 2014
1 answer
55 views
Is there anything in place to allow for more than one year for a "yearly" recurrence rule? Some of our clients are looking to add appointments once every other year or once every three years.

If not, is there anything in the works to support such a thing?

Thanks,
Kerry Wano
Peter Filipov
Telerik team
 answered on 25 Nov 2014
7 answers
300 views
Hi I got an error when exporting to PDF :


Invalid XHTML. RadGrid has to render correct XHTML in order to export to PDF.
Parse error:
The '@' character, hexadecimal value 0x40, cannot be included in a name. Line 1746, position 161.
at line:
<td>&nbsp;</td><td>12379182</td><td>43289573</td><td>test</td><td>tester</td><td>0147238</td><td>"Tom &amp; test tester" <tester@bigpond.net.au></td> 
  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: Telerik.Web.UI.Grid.Export.GridPdfExportException: Invalid XHTML. RadGrid has to render correct XHTML in order to export to PDF.
Parse error:
The '@' character, hexadecimal value 0x40, cannot be included in a name. Line 1746, position 161.
at line:
<td>&nbsp;</td><td>770547771</td><td>661576901</td><td>Antheunis</td><td>tester</td><td>0147238</td><td>"Tom &amp; test tester" <tester@bigpond.net.au></td>


It seems that this happens when there is a email with <something@something.com> in the field value


Is there a event handler that I can overwrite to handle this when data is being populated to the PDF?

Thanks.
Kostadin
Telerik team
 answered on 25 Nov 2014
4 answers
453 views
if save changes is never invoked client side, can we get the changes made to a batch edit radgrid server side? we'd like to eliminate the need to click 'save changes' and have the whole form (grid and non grid fields) submitted by a single action.
Angel Petrov
Telerik team
 answered on 25 Nov 2014
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?