Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
451 views
We recently upgraded to the Q1 2014 release and are now having problem with HTML tags not being rendered in the text element of the drop down list control.  We have a custom control derived from RadDropDownList that renders labels inside of the text element (ex. "<b>Field1:</b> myvalue").  While I understand this probably isn't officially supported, it did work in the previous release we used (Q2 2013).

Oddly enough, the HTML tags do render when the page initially loads, however, when a new item is selected (which takes the item text and prepends the label and uses the set_text method to update the text of the item) it is showing the tags after HTML encoding in the text element.  The HTML is rendered in the item element as expected.

I traced the issue down to the _updateTextElement method on the client side object and its call to H.text to set the text of the text element.  I played around with replacing that with my own method which uses H.html and it seems to work.  I also had to change the variable "a" to "$telerik.$".

I'm curious to know whether there is a better approach to this or whether I should use the override method assuming that it works and there are no issues with it.
        
Telerik.Web.UI.RadDropDownList.prototype._updateTextElement = function (I) {
    var H = $telerik.$(this.get_textElement());
    if (I) {
        H.html(I);
        H.removeClass(i);
    } else {
        H.html(this.get_defaultMessage());
        H.addClass(i);
    }
        this.get_element().value = I;
};

Oscar Emiliano
Top achievements
Rank 1
 answered on 08 Aug 2014
5 answers
191 views
Hi, I'm using the version ASPNET AJAX Q2 2008, and when you access a new window, and closing access this happening again the error: Invalid JSON primitive

URGENT need of aid
Anthony
Top achievements
Rank 1
 answered on 08 Aug 2014
2 answers
107 views
Hello,

Is it possible to have a cell in the table be a dropdown only if the value is a certain value? I want to allow the user to change the value under certain circumstances.

There are several mailing status: Created, Mailed, Delievered, and Lost

If the value is 'Lost', I want to give the ability to change it to Mailed or Delivered. Otherwise, I want to display the status as a label.



Is this possible?

Thanks
Jesse
Top achievements
Rank 1
 answered on 08 Aug 2014
3 answers
99 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
168 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
91 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
203 views
Is there a workaround to block AutoPostback on RadMaskedTextBox on client-side?

Thanks.
Vasil
Telerik team
 answered on 08 Aug 2014
2 answers
86 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
65 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
221 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
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?