Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
303 views

There's difference in behavior between IE11 and Edge mode IE11 when the radEditor is used inside a window.showModalDialog

  • IE11 : work as expected
  • Edge mode IE 11  :
    • There's a flicking when a key is hit (often) or Enter (always). The window in background seems to get in front and then the showmodalDialog get back in front (by behavior design of showModalDialog). Is it caused by a bad javascript? a bad compatibility mode? Is it corrected in later Telerik version?
    • There's no glitch if we choose HTML instead of Design in the radEditor
    • There's no glitch if the radeditor is not in a window.showModalDialog (ex: opened directly inside current page)

     

 

For the moment, we cannot use a replacement for window.showModalDialog because the website use frames everywhere (as a template for navigation. Ex: frame for left menu, frame for top, frame for center content, etc) in a way that a javascript style showmodalDialog doesn't block UI interaction every where in the page (as with the IE showModalDialog). 

 

 

Context :

  • ASP.Net Classic .Net 4.7.1
  • Telerik version 2020.3.1021.45

 

Thank you for help,

Jean-François Ferland

Rumen
Telerik team
 answered on 20 Oct 2021
0 answers
105 views

I need to insert a value in a cell from another radtree value in server side but the problem is i can not know the current index when the record is new record, the 0 index update the first record not the new record

       Dim ItemGrid As RadGrid = CType(Page.Master.FindControl("MainContent").FindControl("RadGrid2"), RadGrid)
                Dim dataItm As GridDataItem = TryCast(ItemGrid.MasterTableView.Items(0), GridDataItem)
                Dim cell As TableCell = dataItm("price")
                cell.Text = Convert.ToString(myreader("Unit_Price"))
                cell.Focus()
                cell.BorderColor = Color.Red
khaled
Top achievements
Rank 1
Iron
 asked on 18 Oct 2021
1 answer
1.2K+ views

Build 2021.3.914.45, I've got a page that I dynamically add tabs and pageviews too, it's now throwing a maximum call stack size exceeded, NO changes at all to this page, and was working perfectly prior to the upgrade of controls.  The only change was upgrading to the specified version of controls.

Uncaught RangeError: Maximum call stack size exceeded

 

Vessy
Telerik team
 answered on 18 Oct 2021
1 answer
154 views

I have a RadDropDownList with countries ,based a client Event I have a javacript loop selecting the country I want,

I then have an OnselectedIndexchangevent which fires after the JS has selected the country ,however when the event fires it does not retrieve the item that was selected by the JS,(the Js is working correctly).It just returns the first item in the list,

I also tried to store the value of the country in a hidden field which doesn't appear on client side either.

Any solutions would be amazing.

Thank You,

Mohd
Top achievements
Rank 2
Iron
 answered on 15 Oct 2021
0 answers
314 views

Hi Guys,

I tried to find a solution for this, but I can't do it.

I have a RadGrid

                <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowAutomaticUpdates="False" AllowMultiRowEdit="false" Width="100%" OnItemCreated="RadGrid1_ItemCreated" 
                    AllowSorting="True" DataSourceID="exampledatasource2" DataKeyNames="Example" AllowAutomaticDeletes="True"  OnItemCommand="RadGrid1_ItemCommand" CommandItemStyle-HorizontalAlign="Left" 
                    PageSize="30" OnPreRender="RadGrid1_PreRender">
                    <GroupingSettings CaseSensitive="false" />
                    <CommandItemStyle  CssClass="all" />
                    <ExportSettings IgnorePaging="true" ExportOnlyData="true" Excel-Format="Xlsx"></ExportSettings>
                    <MasterTableView AllowAutomaticDeletes="true" AutoGenerateColumns="False" EnableHeaderContextMenu="true" DataSourceID="exampledatasource2" AllowFilteringByColumn="True" EditMode="InPlace" DataKeyNames="Example" CommandItemSettings-ShowExportToExcelButton="True"  CommandItemDisplay="Top" CommandItemStyle-HorizontalAlign="Left" CommandItemSettings-ExportToExcelImageUrl="../images/icons/excel.gif">
                        <CommandItemSettings ExportToPdfText="Export to Pdf" ShowExportToExcelButton="True" ShowAddNewRecordButton="false"></CommandItemSettings>
                        <ExpandCollapseColumn>
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </ExpandCollapseColumn>

 

but when I try to open the excel file, I get 2 alert windows:

1- 

We encountered a problem with content "RadgridExport (44) .xlsx" Do you want us to try to retrieve as much content as possible? If you trust the source of this book, click Yes

 

After click "Yes", I get this:

2-

"Excel has completed file-level validation and repair. Parts of this book may have been repaired or discarded.
Repaired records: Format of /xl/styles.xml part (Styles)"

 

This gives me problems, since in some cells (not all) the date format changes, the correct format is "dd/mm/YYYY", but some cells have the format "mm/dd/YYYY":

 

 

It is not a problem with the records in the database, as the data is fine. This is very strange since the formatting problem does not always occur.

I exported this excel several times and on the fifth try the dates were fine, although it still shows the 2 alert messages.

 

 

Any suggestions for this problem? Thanks in advanced.

 

Sebastian
Top achievements
Rank 1
 asked on 15 Oct 2021
1 answer
123 views
I have a value only with a date, for example: 2021/10/10, but when it shows in the agenda, it is 2021/10/09.

I would like you to just control the day and not the time as well.

Thank you very much in advance

Sorry for the automatic translation.
Fábio
Top achievements
Rank 1
Iron
 answered on 15 Oct 2021
0 answers
127 views
We have a RadGrid with many columns and would like to change the icon displayed beside each filter item ( "contains", "isnull", "isNotNull",etc) to an icon indicating what has been previous selected and applied.  I have set the imageurl, selectionurl,hoverurls in the codebehind and set EnableSelection to true.  Also verified viewstate is on.  However the menu never changes the icon beside the selected item. When I investigated it appears there is a single filter menu created client side and is re-used thus would expect this to require javascript to solve.  Are there any examples of changing the selectedURL or imageURL once the filter menu window is shown to the selected filter via javascript  ???   
Van
Top achievements
Rank 1
Iron
Iron
 asked on 14 Oct 2021
0 answers
75 views

Hello 

I'm using a RadFilter(dropdownFilter) in my ASP.Net Ajax application and noticed that upon changing the Field/Value , the change takes about 8-10 seconds to reflect..
When we change Filed/Value , a call or handler event is initiated  to the Telerik.Web.UI.Resource.axd and its taking time to get the response and render the control with selected Filed/Value. 

Any help on this is appreciated.

Attached the call that triggers to WebResource.axd .

Below my Scriptmanager configuration - 

<telerik:RadScriptManager ID="ScriptManager" runat="server" EnablePageMethods="false" EnableEmbeddedjQuery="false"
                        EnablePartialRendering="true" EnableScriptGlobalization="false" EnableScriptLocalization="true"
                        EnableHandlerDetection="false" ScriptMode="Release" EnableScriptCombine="false" AsyncPostBackTimeout="600">
                        <Groups>
                            <telerik:ScriptReferenceGroup>
                                <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.jQueryExternal.js" />
                                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryPlugins.js" />
                                </Scripts>
                            </telerik:ScriptReferenceGroup>
                        </Groups>
                    </telerik:RadScriptManager>

Ayyappa
Top achievements
Rank 1
 asked on 14 Oct 2021
1 answer
155 views

Hello,

I am attempting to integrate the drag/drop feature into a RadTreeList. The dragging is enabled and seems to work great but when an item is dropped it attempts a postback but does not change position. I assume this is because I need to manually assign it a value in comparison to a parent item. Does anyone have any experience or examples they could provide to display this functionality better? The most I have found online was this brief article:

https://docs.telerik.com/devtools/aspnet-ajax/controls/treelist/items/items-drag-and-drop

My code:

       <telerik:RadTreeList ID="treeViewGrid" runat="server" DataKeyNames="ModuleId" CommandItemDisplay="Top" ParentDataKeyNames="ParentId" AutoGenerateColumns="false" EnableDragAndDrop="true">
            <ClientSettings AllowItemsDragDrop="true">
    <Selecting AllowItemSelection="True" />
                </ClientSettings>
            <Columns>

....

</columns>

....

 

Database:

moduleid
1
displayorder
1
moduletype
1
parentid
0
displayorder
2
moduletype
1
parentid
0
moduleid
2

 

 

My guess would be that there is a OnDropItem that runs server side where I can assign a new display order based on the previous order. Any help on this is appreciated! Thanks!

Eric R | Senior Technical Support Engineer
Telerik team
 answered on 13 Oct 2021
0 answers
132 views

Hi Team,

I am getting console issue with getParentElement(),this shows element value as null

which affects all other functionalaities.


 function RadEditorElementDesignerModule(element) {
                    RadEditorElementDesignerModule.initializeBase(this, [element]);
                };

                RadEditorElementDesignerModule.prototype =
                {
                    initialize: function() {
                        RadEditorElementDesignerModule.callBaseMethod(this, 'initialize');
                        var selfPointer = this;
                        this.get_editor().add_selectionChange(function() { selfPointer.doSomething(); });
                        this.doSomething();
                    },
                    doSomething: function() {
                        var module = this.get_element();
                        Test.$('RadEditorElementDesignerModule').setInnerHTML('').hide();
                      
                        var selection = this.get_editor().getSelection();
                        
                        var element = selection.getParentElement();
                        if (element.designer) {
                       
                           if (designers[element.designer]) {
                                try {
                                    designers[element.designer](element, module);
                                    BDS.$('RadEditorElementDesignerModule').show();
                                }
                                catch (ex) { }
                            }
                        }
                    }


 

Error:

Uncaught TypeError: Cannot read properties of null (reading 'designer')
    at RadEditorElementDesignerModule.doSomething (Shell.aspx?
    at RadEditorElementDesignerModule.initialize
    at RadEditorElementDesignerModule.Sys$Component$endUpdate [as endUpdate] (VM4504 ScriptResource.axd:3685)
    at $create (VM4790 bds-min.js:3)
    at Telerik.Web.UI.Editor.ModulesManager.createModule (VM5225 ScriptResource.axd:391)
    at Telerik.Web.UI.Editor.ModulesManager.createModules (VM5225 ScriptResource.axd:375)
    at Telerik.Web.UI.Editor.ModulesManager.initialize (VM5225 ScriptResource.axd:365)
    at c.RadEditor.initialize (VM5221 ScriptResource.axd:8095)
    at c.RadEditor.Sys$Component$endUpdate [as endUpdate] (VM4504 ScriptResource.axd:3685)
    at Sys$_Application$endCreateComponents [as endCreateComponents] (VM4504 ScriptResource.axd:4897)
doSomething @ Shell.aspx?

 

Can anyone please help me what should I replace.

Sachita
Top achievements
Rank 1
Iron
Iron
Iron
 updated question on 13 Oct 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?