Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
170 views
Hi all
I have noticed following behavior in our SharePoint pages.
When RAD editor web part is added to a zone, I am able to edit the content within the control.
After I save the page, check in and then edit the page, I am unable to edit the content. I must add that this happens only in Internet Explorer. Upon looking into the mark up of the page, I noticed that the nearest <div > is set with unselectable=on

ex:

<div id="ctl00_m_g_de8edd76_8f8a_4459_a956_04989983b73e_ctl00_contentDiv" class="reContentArea reContentAreaToggle" contenteditable="true" style="position: relative; height: 211px;" unselectable="on"></div>

Since the div is unselectable, I am not able to get focus in the content editing area.

 
Does anyone know why IE injects unselectable="on" into the content area.
Thanks in advance

Victor
Top achievements
Rank 1
 answered on 09 Aug 2014
0 answers
57 views
I have done this in the initial work file and everything went fine. After i integrate this into the project, this error ->  "System.NullReferenceException: Object reference not set to an instance of an object." appear.

Stack Trace: 

[NullReferenceException: Object reference not set to an instance of an object.]
UltimateFurniture.CustomerReg.btnConfirm_Click1(Object sender, EventArgs e) in C:\Users\Ang yong xin\Documents\ecommerce application project\UltimateFurniture backup(6)\UltimateFurniture\UltimateFurniture\Register.aspx.cs:85
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9752554
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +196
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724
Lock
Top achievements
Rank 1
 asked on 08 Aug 2014
2 answers
514 views
I have a grid that currently contains a number of <GridHyperLinkColumn>'s in it.

I found that I needed to have a multi-level header, and so I am now wanting to include the <GridHyperLinkColumn>'s inside of the <ItemTemplate> area of  a <GridTemplateColumn>.

It appears that this is not possible and so my question is how to get the same functionality as I had with the <GridHyperLinkColumn> into the <ItemTemplate> of <GridTemplateColumn>?

Thanks!
Dave
Top achievements
Rank 1
 answered on 08 Aug 2014
6 answers
704 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
259 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
181 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
137 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
198 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
131 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
264 views
Is there a workaround to block AutoPostback on RadMaskedTextBox on client-side?

Thanks.
Vasil
Telerik team
 answered on 08 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?