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

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>});


The culprit is the "styles":["body {opacity:0 !important}"] portion.  Does anyone know why this would be happening?
Attila Antal
Telerik team
 answered on 24 Mar 2020
2 answers
196 views

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.

Igor
Top achievements
Rank 1
 answered on 24 Mar 2020
2 answers
89 views

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.  

 

 

 

Vessy
Telerik team
 answered on 24 Mar 2020
3 answers
154 views

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()
   ...

Doncho
Telerik team
 answered on 23 Mar 2020
6 answers
268 views
I have a RadDataForm that is databound to a SQLDataSource.  If I use a RadTextBox within a Div within the EditTemplate, the value entered into that RadTextBox is sent to the database.  However, if I put that RadTextBox within a Table->TableRow->TableCell in the Div, the value entered into that RadTextBox is never sent to the database, nor is it still in the form after the update.  Are there restrictions on how controls can be embedded within the EditTemplates when editing data?
Doncho
Telerik team
 answered on 23 Mar 2020
5 answers
330 views
If I have a MultiColumnComboBox in a RadDataForm, how do I data bind the Selected Value to the datasource of the RadDataForm?
Doncho
Telerik team
 answered on 23 Mar 2020
1 answer
116 views
     I have a RadGrid that uses:
                <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.

Eyup
Telerik team
 answered on 23 Mar 2020
3 answers
61 views
Hello

When I want to change Title in Gantt tree list, the text is not selected, and can not be accessed by mouse, only by a keyboard.
The same behaviour happens in Custom Task fields.
This works well on columns like Start / End time.
You can see this on your demos also.
I am considering this as a bug.

How can I change this behaviour to be able to access text by a mouse?

Thank you.

PS. in regards to bugs, if you change in PopUp window Start value so it has wrong time format (delete space "12:00 AM" -> "12:00AM") and hit Save two times, it will save the null value.
Peter Milchev
Telerik team
 answered on 20 Mar 2020
8 answers
434 views

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.

Jesse
Top achievements
Rank 1
 answered on 20 Mar 2020
2 answers
202 views

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

Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 20 Mar 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?