Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
130 views

Hi,

      I have updated to latest 2023.2.714.45 Telerik web ui in my web portal using telerik visual studio extension. However, after updating, the web ui is not function properly. I have an account in telerik, however in Visual studio, it also ask me to buy the Telerik ui for Asp.net Ajax.

I have attached the video for your comparison.

Alex
Top achievements
Rank 1
 asked on 29 Aug 2023
0 answers
93 views

Hello, I've encountered a loading panel issue. The loading panel on my user control page won't disappear.

Please see the attached image for my page hierarchy.

I have a parent page which uses 2 same user control pages. On my parent page, I have a RadAjaxManager and on the user control page I have a RadAjaxManagerProxy.

Parent Page RadAjaxManager code:

The button1 on parent page will update panel1.

<telerik:RadAjaxLoadingPanel runat="server" ID="rAjaxLoaingPanel1" Modal="false"></telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxManager runat="server" ID="rAjaxMan1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="button1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="panel1" LoadingPanelID="rAjaxLoaingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

User Control Page RadAjaxManagerProxy code:

The button2 on user control page will update panel2, and panel2 will update itself.

<telerik:RadAjaxLoadingPanel runat="server" ID="rLdPn" Height="400px"></telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxManagerProxy runat="server" ID="rAjaxManProxy">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="button2">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="panel2" LoadingPanelID="rLdPn" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="panel2">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="panel2" LoadingPanelID="rLdPn" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

 

When I click button1, the ajax loading panel (id=rAjaxLoadingPanel1) is working fine, it shows and hides. However, when I click button2, the ajax loading panel (id=rLdPn) will stay on the region of panel2 infinitely.

I searched some 2009 forum posts but none of them addressed my issue.

Could someone help me? Thanks very much!

 

 

 

 

yuki
Top achievements
Rank 2
Iron
Iron
Iron
 updated question on 29 Aug 2023
1 answer
102 views

For accessibility, I'm trying to add a tabindex attribute to the captcha image.

Here is the script I'm using:

document.addEventListener("DOMContentLoaded", function(){    

document.getElementById("ctl00_ContentContainer_EntityFormControl_aeace8755f5aec118f8f000d3a5b28d1_EntityFormControl_aeace8755f5aec118f8f000d3a5b28d1_EntityFormView_captcha_CaptchaImageUP").tabIndex = 0;

alert(‘page loaded successfully’);

});

The script can't seem to find the image tag by the id. What am I missing here?

 

 

Rumen
Telerik team
 updated answer on 28 Aug 2023
1 answer
257 views

Hi everyone,
I'm having problems with $find and getElementById. In my page $find doesn't find the objects while getElementById finds them but then the client-side API functions are not executed (error message: "splitter2.get_height is not a function").

$find always returns NULL, both on the RadSplitter and RadGrid.

To understand I also isolated the affected code in a new page, same problem. This is the code:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <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.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>

    <div>
        <telerik:RadSplitter ID="RadSplitter1" runat="server" SplitBarsSize="2" Width="100%" >
            <telerik:RadPane ID="LeftPane" runat="server" >
                <telerik:RadGrid ID="RadGrid1" runat="server"></telerik:RadGrid>
            </telerik:RadPane>
            <telerik:RadPane ID="RightPane" runat="server" >
            </telerik:RadPane>
        </telerik:RadSplitter>
    </div>
    <script type="text/javascript">
        var Alt = window.innerHeight;
        var Larg = window.innerWidth;
        var splitter = $find('<%= RadSplitter1.ClientID %>');
        alert(splitter);

        var grid = $find('<%= RadGrid1.ClientID %>');
        alert(grid);

        var splitter2 = document.getElementById('<%= RadSplitter1.ClientID %>');
        alert(splitter2);
        alert(splitter2.get_height());
        splitter2.set_height(800);

    </script>
    </form>
</body>
</html>

 

Thanks for your help

 

Rumen
Telerik team
 answered on 28 Aug 2023
0 answers
96 views
Chart
Top achievements
Rank 1
 asked on 28 Aug 2023
1 answer
195 views

I try to inplement this : https://demos.telerik.com/aspnet-ajax/wizard/application-scenarios/add-remove-wizardsteps/defaultvb.aspx

This works fine in a test project. I am able to delete a step and every thing works fine.

 

But on my target project, after deleting a step: Step is deleted. all looks fine. But each time i click on "next" or on another step header i recieve error message.. In errormessage i see this has nothing to do with my code.

Server Error in '/' Application.

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:
[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.Collections.ArrayList.get_Item(Int32 index) +12906457
   Telerik.Web.UI.GridColumnCollection.System.Web.UI.IStateManager.LoadViewState(Object savedState) +107
   Telerik.Web.UI.GridTableView.LoadStructureState(Object SavedStructure) +140
   Telerik.Web.UI.RadGrid.LoadTableViewStructure(IEnumerator stateEnumerator, GridTableView tableView) +52
   Telerik.Web.UI.RadGrid.LoadViewState(Object savedStateObject) +146
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +274
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +149
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +325
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +149
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +325
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +149
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +325
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +149
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +325
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +149
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +325
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +149
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +325
   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +149
   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +325
   System.Web.UI.Page.LoadAllState() +456
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2236


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4654.0

 

 

I think it is the wizard. But it might be some othe stuff that is on the page.

I am not able to find what it is...

Any suggestion ?

 

Karl
Top achievements
Rank 1
Iron
 answered on 25 Aug 2023
0 answers
185 views

What is the event sequence of grid OnPreRender? Will it be fired only once or every time there is a postback?

When the grid is ajaxified, will OnPreRender be fired every time when there is a postback?

I'm asking this because when postback my breakpoint in Grid OnPreRender is not hit after Page_PreRender event when the grid is ajaxified.

Thanks.

yuki
Top achievements
Rank 2
Iron
Iron
Iron
 updated question on 25 Aug 2023
1 answer
82 views

Hi,

 

I am trying to implement form template demo here, https://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/form-template-update/defaultvb.aspx . The problem is that it is throwing error on 'Bind' that it is not declared. I am using .NET 4.6..1 . The only differences are is that with the sqldatasource, it's running stored procedures rather than a query and It's in a radajaxpanel.

 

 

Paul
Top achievements
Rank 1
Iron
 answered on 23 Aug 2023
0 answers
130 views

 

The RadMultiSelect implementation has one error that WCAG 4.1.1 parsing is catching. There is a duplicate span with the same id.

Found in the page source of the demo page (similar to how I implemented as well):

https://demos.telerik.com/aspnet-ajax/multiselect/virtualization/defaultcs.aspx

<select name="ctl00$ContentPlaceholder1$RadMultiSelect1" multiple="" id="ctl00_ContentPlaceholder1_RadMultiSelect1" class="RadMultiSelect RadMultiSelect_Silk" style="width:400px;">
<span id="ctl00_ContentPlaceholder1_RadMultiSelect1_WebServiceCDS" style="display:none;"></span><input id="ctl00_ContentPlaceholder1_RadMultiSelect1_ClientState" name="ctl00_ContentPlaceholder1_RadMultiSelect1_ClientState" type="hidden" />
</select><span id='ctl00_ContentPlaceholder1_RadMultiSelect1_WebServiceCDS' style='display:none'></span>

Hudson
Top achievements
Rank 1
 asked on 23 Aug 2023
1 answer
58 views

Hi Telerik team,

the "Contrast Security" tool we use shows us a "Untrusted Deserialization" Vulnerability found on one of the ASPX (webForms) page where we utilize RadMultiSelect control. (Our current version is 2021.1.119.45). 

Could you please suggest any options now to fix it, please?  

Details:

Tracked the following data from "ctl00_Main_content_ddlMSelectMultipleStaff_ClientState...:

POST /vosnet/communications/scheduler/default.aspx

ctl00_Main_content_ddlMSelectMultipleStaff_ClientState={"enabled":true,"selectedItems":[],"deselectedItems":[],"value":[2613],"selectedDataItems":[{"text":"Skaggs","value":"2613","Lastname":"Skaggs","Userid":2613,"attributes":{"FullName":"Skaggs Kari","Color":"background-color:rgb(89,20,195);","ColorARGB":"5838019"}}]}&ctl00$textsize=.......SNIP...........

...which was accessed within the following code:
Telerik.Web.UI.RadMultiSelect.LoadPostData()

...and ended up being deserialized with code that looks like this:
m = serializer.Deserialize<M>("{"enabled":true,"selectedItems":[],"deselectedI...")

 

Konstantin
Top achievements
Rank 1
Iron
 updated answer on 22 Aug 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?