I am migrating a SharePoint 2013 system to SharePoint 2019 that uses Telerik AJAX heavily. I have updated the Telerik dlls to the latest version (2020.1.219). The issue I am encountering is whenever a telerik ajax request is made, the AjaxLoadingPanel appears, and then once the response comes back the opacity is set to 0 on the body element, which hides everything on the page.
This is the response I am retrieved from Chrome developer tools:
|1261|scriptStartupBlock|ScriptContentNoTags|Sys.Application.add_init(
function
() {<br> $create(Telerik.Web.UI.RadAjaxManager, {
"_updatePanels"
:
""
,
"ajaxSettings"
:[{InitControlID :
"ctl00_PlaceHolderMain_HomeRightBox1_ctl00_RadBtnOk"
,UpdatedControls : [{ControlID:
"ctl00_PlaceHolderMain_HomeRightBox1_ctl00_pnlRightBox"
,PanelID:
"ctl00_RadAjaxLoadingPanel1"
}]},{InitControlID :
"ctl00_PlaceHolderMain_HomeRightBox1_ctl00_RadWindowWarning_C_lnkClose"
,UpdatedControls : [{ControlID:
"ctl00_PlaceHolderMain_HomeRightBox1_ctl00_pnlRightBox"
,PanelID:
"ctl00_RadAjaxLoadingPanel1"
}]},{InitControlID :
"ctl00_PlaceHolderMain_HomeRightBox1_ctl00_RadWindowWarning_C_cmdAgree"
,UpdatedControls : [{ControlID:
"ctl00_PlaceHolderMain_HomeRightBox1_ctl00_pnlRightBox"
,PanelID:
"ctl00_RadAjaxLoadingPanel1"
}]}],
"clientEvents"
:{OnRequestStart:
""
,OnResponseEnd:
""
},
"defaultLoadingPanelID"
:
"ctl00_RadAjaxLoadingPanel1"
,
"enableAJAX"
:
true
,
"enableHistory"
:
false
,
"links"
:[
"/_layouts/15/1033/styles/Themable/corev15.css?rev=4fiYiJfZqSkE1X%2BbH5YbUw%3D%3DTAG0"
,
"/_layouts/15/1033/styles/XYZ/main.css?rev=5Sa4i2FVc1HsIuLe3sZYGA%3D%3DTAG0"
,
"/_layouts/15/images/favicon.ico?rev=23"
],
"styles"
:[
"body {opacity:0 !important}"
],
"uniqueID"
:
"ctl00$RadAjaxManager1"
,
"updatePanelsRenderMode"
:0},
null
,
null
, $get(
"ctl00_RadAjaxManager1"
));<br>});
Hello,
I need to select Tree list row by javascript.
So far I found this code:
function
selectTask(tsk){
var
gantt = $find(
"<%= RadGantt1.ClientID%>"
);
gantt._widget.select(
"tr:eq("
+ tsk.get_id() +
")"
);
}
But this does not work well. It works only in some cases, sometimes it selects the wrong row or nothing at all.
Can you help me?
Thank you.
Using the Mega Drop down example.
I dynamically created a site map; however, how do I get it to treat the long column as 2 short columns.
| Column 1 Headline | Column 2 headline |
| column 1 data | [Column 2 Right data] [ Column 2 Left data ] |
Keep in mind the data is loaded dynamically and can\will change depending on the user that is accessing the page.
The one Idea I had was to nest a site map within a site map put I do not find a way to do that.
Any ideas that would point me in the right direction would help.
I am using Filter with Grid. If I set FieldName in the FieldEditors that is not in the Grid column (but from binded table), I get null reference exception after call RadFilter1.FireApplyCommand(). Is it Filter control limitation? If yes, is there work around?
Stack trace:
at Telerik.Web.UI.RadFilterDataFieldEditor.CreateEditorFrom(RadFilterDataFieldEditor baseEditor)
at Telerik.Web.UI.RadFilterSingleExpressionItem.SetupFunctionInterface(Control container)
at Telerik.Web.UI.RadFilterExpressionItem.CreateFunctionalInterface()
at Telerik.Web.UI.RadFilterExpressionItem.InitializeItem()
at Telerik.Web.UI.RadFilter.CreateFilterItems()
at Telerik.Web.UI.RadFilter.CreateControlHierarchy()
at Telerik.Web.UI.RadFilter.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at Telerik.Web.UI.RadFilter.RecreateControl()
at Telerik.Web.UI.RadFilter.ContainerFieldDescriptorsReady(Object sender, RadFilterFildDesciptorsEventArgs e)
at Telerik.Web.UI.RadGrid.OnFieldDescriptorsReady(RadFilterFildDesciptorsEventArgs e)
at Telerik.Web.UI.RadGrid.UpdateFilterControl()
at Telerik.Web.UI.GridTableView.SavePagingData(Boolean useDataSource, GridPagingManager paging)
at Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource)
at Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource)
at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)
at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
at Telerik.Web.UI.GridTableView.PerformSelect()
at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()
at Telerik.Web.UI.GridTableView.DataBind()
at Telerik.Web.UI.GridTableView.Rebind()
at Telerik.Web.UI.RadGrid.Telerik.Web.UI.IRadFilterableContainer.ApplyFilterExpressions(RadFilterGroupExpression expressionRoot, Boolean shouldBind)
at Telerik.Web.UI.RadFilter.HandleApplyCommand()
at Telerik.Web.UI.RadFilter.FireApplyCommand()
...
<
EditFormSettings
CaptionFormatString
=
"Update Project"
InsertCaption
=
"New Project"
PopUpSettings-ShowCaptionInEditForm
=
"true"
UserControlName
=
"Project.ascx"
EditFormType
=
"WebUserControl"
><
br
> <
EditColumn
UniqueName
=
"EditCommandColumn1"
><
br
> </
EditColumn
><
br
> <
PopUpSettings
KeepInScreenBounds
=
"False"
Width
=
"1000px"
Height
=
"800px"
OverflowPosition
=
"UpperRight"
Modal
=
"true"
/><
br
> </
EditFormSettings
>
On the user control, I have a RadComboBox that uses a regular asp.RequiredFieldValidator with runat="server".
When the combobox is not populated, the validation works and the asterisk displays, but ONLY after the whole popup window blinks. Is there any way I can stop this blink? Why is it happening? I can post more code if necessary.
I can create a radwindow on the server side. Here is the code-
protected void OpenRW_Click(object sender, System.EventArgs e)
{
RadWindow window = new RadWindow();
window.Modal = true;
window.EnableViewState = false;
window.VisibleOnPageLoad = true;
window.Width = 300;
window.Height = 300;
window.CssClass="imageloader";
window.VisibleOnPageLoad = true;
window.Visible = true;
window.DestroyOnClose = true;
window.Behaviors = Telerik.Web.UI.WindowBehaviors.Move;
window.Title = Title;
window.ID = "Popup";
//create close button here
Button closebt = new Button();
closebt.Visible = true;
closebt.Text = "Close";
closebt.OnClientClick = "$find(\" <%= Popup.ClientID %> \").close(); return false;";
closebt.Style.Add("position", "absolute");
closebt.Style.Add("bottom", "5px");
closebt.Style.Add("right", "10px");
window.ContentContainer.Controls.Add(closebt);
RadWindowManager1.Controls.Add(window);
}
But for some reason when it gets closed it fires a unneeded postback. I've tried a whole bunch things including setting the the viewonpageload property to false and using scriptmanager to display the window, but this yields the same results. Any ideas on how I can get rid of this unnecessary postback would be greatly appreciated. thanks in advance.
Hi,
Copied the following straight from the docs but not working:
<telerik:RadToolTipManager RenderMode="Lightweight" ID="RadToolTipManager2" runat="server" Skin="Web20">
<TargetControls>
<telerik:ToolTipTargetControl IsClientID="False" TargetControlID="TextBox1" Value="ValueForTextBox1" />
</TargetControls>
</telerik:RadToolTipManager>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
Using latest build.
Marc