Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
127 views
I am converting \n to <br> upon binding for my RadGrid which displays correctly. We are using multiline RadTextBoxes instead of the single line.
When I click in the cell to edit however the text for editing is blank. It only has this behavior when a <br> line break tag is in the bound text. Any thoughts?

Version: 2013.07.17
David
Top achievements
Rank 1
 answered on 08 Aug 2014
5 answers
189 views
I am using grouping on my grid for a single column.  When I export using ExcelML, all of the data comes over except for the actual group data.  I even see the row where I would expect the group information to be.

Is there a setting I am missing?
<telerik:RadGrid ID="rgWeightBreaks" runat="server">
    <MasterTableView AutoGenerateColumns="false" GroupsDefaultExpanded="false" GroupLoadMode="Client"
        DataKeyNames="OriginAirport, DestinationAirport, TariffNumber" ClientDataKeyNames="OriginAirport, DestinationAirport, TariffNumber"
        CommandItemDisplay="Top">
        <Columns>
            <telerik:GridBoundColumn HeaderText="Origin City" DataField="OrigAirportCity" HeaderStyle-Width="200px" ItemStyle-Width="200px" Display="false" UniqueName="OriginCity"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Destination City" DataField="DestAirportCity" HeaderStyle-Width="200px" ItemStyle-Width="200px"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Airport" DataField="DestinationAirport" HeaderStyle-Width="50px" ItemStyle-Width="50px"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Transit Days" DataField="TransitDays" HeaderStyle-Width="50px" HeaderStyle-HorizontalAlign="Right" ItemStyle-Width="50px" ItemStyle-HorizontalAlign="Right"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Minimum Charge" DataField="MinimumCharge" HeaderStyle-Width="100px" HeaderStyle-HorizontalAlign="Right" ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Right" DataFormatString="${0}"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="500" DataField="BreakOne" HeaderStyle-Width="75px" HeaderStyle-HorizontalAlign="Right" ItemStyle-Width="75px" ItemStyle-HorizontalAlign="Right" DataFormatString="${0}"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="1000" DataField="BreakTwo" HeaderStyle-Width="75px" HeaderStyle-HorizontalAlign="Right" ItemStyle-Width="75px" ItemStyle-HorizontalAlign="Right" DataFormatString="${0}"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="2000" DataField="BreakThree" HeaderStyle-Width="75px" HeaderStyle-HorizontalAlign="Right" ItemStyle-Width="75px" ItemStyle-HorizontalAlign="Right" DataFormatString="${0}"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="5000" DataField="BreakFour" HeaderStyle-Width="75px" HeaderStyle-HorizontalAlign="Right" ItemStyle-Width="75px" ItemStyle-HorizontalAlign="Right" DataFormatString="${0}"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="7500" DataField="BreakFive" HeaderStyle-Width="75px" HeaderStyle-HorizontalAlign="Right" ItemStyle-Width="75px" ItemStyle-HorizontalAlign="Right" DataFormatString="${0}"></telerik:GridBoundColumn>
        </Columns>
        <GroupByExpressions>
            <telerik:GridGroupByExpression>
                <SelectFields>
                    <telerik:GridGroupByField FieldName="OrgAirportCity" FieldAlias="Gateway" />
                </SelectFields>
                <GroupByFields>
                    <telerik:GridGroupByField FieldName="OrgAirportCity" FieldAlias="Gateway" />
                </GroupByFields>
            </telerik:GridGroupByExpression>
        </GroupByExpressions>
        <CommandItemSettings ShowExportToExcelButton="true" />
    </MasterTableView>
    <ClientSettings AllowExpandCollapse="true" EnableRowHoverStyle="true">
        <Selecting AllowRowSelect="true" />
        <Scrolling UseStaticHeaders="true" />
    </ClientSettings>
    <ExportSettings OpenInNewWindow="true" ExportOnlyData="true">
        <Excel Format="ExcelML" />
    </ExportSettings>
</telerik:RadGrid>

Daniel
Telerik team
 answered on 08 Aug 2014
3 answers
118 views
We are using VS 2013 and Telerik version 2014.1.403.40.
On some occasions we are getting documents in the Telerik RadEditor which when edited are creating large numbers of CRLFs in the HTML code.  Near the top of the document there will be a section which appears to be a comment <!--  followed by thousands of CRLFs with a single line of actual code appearing every 32768 characters. So there are 16392 CRLFs followed by a single line (like /* Font Defintions */) then another 16392 CRLFS and another line of code.  This continues for approximately 250,000 lines until the uncomment line appears -->

If this is left in the document IE "freezes" indicating a long script is running.  If I remove the extra commented out section the document loads correctly and quickly.  

These documents are edited within the RadEdit and saved there, they are not pasted from Word or other editing software.  Can you tell me why this gigantic section of commented code is present and how can I keep it from having this issue?  This is happening with both IE11 and IE8

This is the code for the ASPX page:
                <tr>
                    <td colspan="2">
                        <telerik:RadEditor ID="reContent" ContentAreaMode="Iframe" EditModes="Design,Preview" ToolbarMode="Default" ToolsFile="~/Telerik/ToolsFile.xml" ContentAreaCssFile="EditorContentArea.css" AutoResizeHeight="true" Width="100%" runat="server">
                            <ImageManager MaxUploadFileSize="1000000" EnableImageEditor="true" />
                            <SpellCheckSettings DictionaryPath="~/Telerik/RadSpell" AllowAddCustom="false" SpellCheckProvider="EditDistanceProvider" EditDistance="2" FragmentIgnoreOptions="All" WordIgnoreOptions="UPPERCASE,WordsWithNumbers" />
                        </telerik:RadEditor>
                    </td>
                </tr>
Patrick
Top achievements
Rank 1
 answered on 08 Aug 2014
3 answers
258 views
Is there a workaround to block AutoPostback on RadMaskedTextBox on client-side?

Thanks.
Vasil
Telerik team
 answered on 08 Aug 2014
2 answers
118 views
For some reason when my grid loads it keeps edit form open for first record. Please help!
Additional question: is there a way to show number of sub records in hierarchical grids?

Thank you
David
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 08 Aug 2014
1 answer
78 views
Recent versions of Visual Studio have an Options dialog with a search options box.   Does telerik UI AJAX offer a control that sort of rendering based on inputs, checkboxes, etc?

Thanks, just curious
Slav
Telerik team
 answered on 08 Aug 2014
3 answers
258 views
I am using an old licensed version of the Telerik TabStrip. I am using IE 10 and 11. I am now getting javascript errors when I use the TabStrip on a web page. The error is window.attachEvent("onunlo\x61d",this.O9); Object does not support attachEvent. How would I fix this?

​
The dll shows as
RadTabStrip.Net2.dll

Assembly Version 3.4.1.0

Telerik © 2002-2007

Dimitar
Telerik team
 answered on 08 Aug 2014
11 answers
242 views
Hi,

    When i set validation group for rad button it wont fire server side click event.
If i remove the validation group it works fine.    
    




Thanks,
Dhamu
Maven
Top achievements
Rank 2
 answered on 08 Aug 2014
8 answers
984 views
I would like to use the RadAsyncUpload control without using a temporary file.  I just need the stream to pass to another function(e.File.InputStream).  How can I accomplish this?  

It works for me when I run it in Visual Studio, but fails when I deploy it to the server.  I am setting my Temporary Folder to a folder in the HttpContext.Current.Server.MapPath.  The user machine will not have that path.

My ascx file:
        <telerik:RadAsyncUpload runat="server" ID="RadAsyncUploadLetterFile" AllowedFileExtensions="rtf,rtfb" Width="225px"  
            OnFileUploaded="RadAsyncUploadLetterFile_FileUploaded" MaxFileInputsCount="1" DisablePlugins="True"
            PostbackTriggers="btnUpload" OnClientFileUploadFailed="onClientFileUploadFailed" 
            EnablePermissionsCheck="False" DisableChunkUpload="True" UseApplicationPoolImpersonation="True" 
            Skin="Web20" MultipleFileSelection="Disabled" >
        </telerik:RadAsyncUpload>

ascx.cs:
        public void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                RadAsyncUploadLetterFile.TemporaryFolder = HttpContext.Current.Server.MapPath(@"..\..\Reports");
            }
        }


Hristo Valyavicharski
Telerik team
 answered on 08 Aug 2014
2 answers
165 views
Hello,

Even though we bought the licence recently im getting a javascript error when using a RadListbox in a a UserControl then is called on a RadGrid.

When its called in ASPX, it does not verify the same behavior, in other words all goes well.

The userControl its quite simple

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="IncidenteComentarios.ascx.cs" Inherits="CRM.Ui.Web.IncidenteComentarios" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<telerik:RadToolBar runat="server" ID="ToolBar" AutoPostBack="true" Skin="Windows7">
    <Items>
        <telerik:RadToolBarButton Text="Guardar" CommandName="PerformInsert" CommandArgument="" />
        <telerik:RadToolBarButton Text="Guardar / Novo" CommandName="PerformInsert" CommandArgument="New" />
        <telerik:RadToolBarButton Text="Cancelar" CommandName="Cancel" />
    </Items>
</telerik:RadToolBar>
<br />
<telerik:RadListBox ID="lstRecursos" runat="server" CheckBoxes="true" Width="350px"
    DataTextField="_Descricao" DataValueField="_Codigo" DataKeyField="_Codigo" Height="200px">
</telerik:RadListBox>

At this sample no operations are taken on server.

Thanks
Princy
Top achievements
Rank 2
 answered on 08 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?