Input fields not available after postback

12 posts, 0 answers
  1. Suzy
    Suzy avatar
    66 posts
    Member since:
    Nov 2014

    Posted 22 Jan 2015 Link to this post

    Hi,

    I have a strange issue.  I'm using masterpages and contentplaceholders.  I have a page where I have the RadAjaxManagerProxy with a LoadingPanel.
    On the page there are several object, input field, dropdown, RadDatePicker, RadEditor, DataGrid, buttons,...
    When I had a postback from for example pressing a button, I have a strange situation.
    Let's say I push a button to add data from fields to the datagrid, after postback I select another value in a dropdownlist and then want to input data in the RadEditor.  The RadEditor is not available at that moment, I cannot click in it with my cursor, also all the other input field are not available.  Dropdowns, buttons, lists are available and can be changed but no input or Editor field.

    Any Idea what the problem may be?

    I cannot provide a link to the site because it is on our intranet.Also cannot copy the aspx file and master file because it is too hugh...

    Kind regards

    Suzy
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 26 Jan 2015 Link to this post

    Hi Suzy,

    The described issue is rather strange a and based on the provided description it is rather difficult to directly isolate the root cause of the problem.
    I would suggests you to disable the Ajax in the whole application hierarchy and see what the result in this case is.
    I also suppose that the issue might be related to some error that appear on the page after posting to the server. Can you please inspect the request using the browser's console and see if any errors appear.

    Regards,
    Maria Ilieva
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Suzy
    Suzy avatar
    66 posts
    Member since:
    Nov 2014

    Posted 28 Jan 2015 in reply to Maria Ilieva Link to this post

    Hi Maria,

    I have tested some more but I don't get any errors. When you disable Ajax it works but I really need the ajax my application .

    I prepared a small aspx file where the problem occurs.
    You can test it by selecting a value in the drop down, but text in the editor, push the add button.  All goes well, but then when you again do the same, select a value in the drop down and try to put text in the editor, the editor is not available.

    Can you please test my code and see if you can find the problem? 

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestWithoutHomePage.aspx.cs" Inherits="cmWeb.Test.TestWithoutHomePage" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     
    <%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit"%>
     
    <head runat="server">
        <title></title>
        <%@ Register TagPrefix="cm" NameSpace="cmWeb.Controls" Assembly="CartaMundi.Presentation"%>
    </head>
    <body>
        <form id="form1" runat="server">
            <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnableScriptGlobalization = "true" EnableScriptLocalization="true" EnablePageMethods ="true" CombineScripts ="true" ></asp:ToolkitScriptManager>
     
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="updContent">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="updContent" LoadingPanelID="RadAjaxLoadingPanel" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel" runat="server" Skin="WebBlue" BackgroundPosition="Center"></telerik:RadAjaxLoadingPanel>
     
            <asp:Panel ID="updContent" runat="server" >
                <cm:cmDropDownList id="ddlActivity" runat="server" width="90%" TabIndex="6">
                    <asp:ListItem Value="0" Text="Analyse" Selected="True"></asp:ListItem>
                    <asp:ListItem Value="1" Text="Develop"></asp:ListItem>
                    <asp:ListItem value="2" Text="Test"></asp:ListItem>
                    <asp:ListItem value="3" Text="Debug"></asp:ListItem>
                    <asp:ListItem value="4" Text="Install"></asp:ListItem>
                </cm:cmDropDownList>
                <telerik:RadEditor runat="server" ID="txtLogText"  NewLineMode="Br" StripFormattingOnPaste="MSWord"></telerik:RadEditor>           
                <asp:Button id="btnAddLogging" runat="server" cssclass="XPButton" Text="ADD" onclick="btnAddLogging_Click"></asp:Button>
            </asp:Panel>
     
        </form>
    </body>
    </html>

    in code behind there is no functionallity

    protected void Page_Load(object sender, EventArgs e)
    {
     
    }
     
    protected void btnAddLogging_Click(object sender, EventArgs e)
    {
     
    }

    thanks you

    Suzy
          
  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 30 Jan 2015 Link to this post

    Hello Suzy,

    I revise the provided code, however it contains a custom control and references to a custom assembly(CartaMundi.Presentation),   which I obviously do not have. I suppose that the issue is namely in that custom control.
    Can you please try to use RadDropDownList instead of your custom drop down list control and see how it goes?

    Regards,
    Maria Ilieva
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Suzy
    Suzy avatar
    66 posts
    Member since:
    Nov 2014

    Posted 30 Jan 2015 Link to this post

    Sorry I changed the code to use a asp:dropdownlist, and still the same problem


    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestWithoutHomePage.aspx.cs" Inherits="TestWithoutHomePage" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
     
    <%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit"%>
     
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
            <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnableScriptGlobalization = "true" EnableScriptLocalization="true" EnablePageMethods ="true" CombineScripts ="true" ></asp:ToolkitScriptManager>
     
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="updContent">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="updContent" LoadingPanelID="RadAjaxLoadingPanel" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel" runat="server" Skin="WebBlue" BackgroundPosition="Center"></telerik:RadAjaxLoadingPanel>
     
            <asp:Panel ID="updContent" runat="server" >
                <asp:DropDownList id="ddlActivity" runat="server" width="90%" TabIndex="6">
                    <asp:ListItem Value="0" Text="Analyse" Selected="True"></asp:ListItem>
                    <asp:ListItem Value="1" Text="Develop"></asp:ListItem>
                    <asp:ListItem value="2" Text="Test"></asp:ListItem>
                    <asp:ListItem value="3" Text="Debug"></asp:ListItem>
                    <asp:ListItem value="4" Text="Install"></asp:ListItem>
                </asp:DropDownList>
                <telerik:RadEditor runat="server" ID="txtLogText"  NewLineMode="Br" StripFormattingOnPaste="MSWord"></telerik:RadEditor>           
                <asp:Button id="btnAddLogging" runat="server" cssclass="XPButton" Text="ADD" onclick="btnAddLogging_Click"></asp:Button>
            </asp:Panel>
     
        </form>
    </body>
    </html>

  7. Suzy
    Suzy avatar
    66 posts
    Member since:
    Nov 2014

    Posted 30 Jan 2015 in reply to Suzy Link to this post

    also tried it with a RadDropDownList and still the same problem
  8. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 04 Feb 2015 Link to this post

    Hi Suzy,

    Try changing the TolkitScriptManager with regular asp Script Manager like this:
    <asp:ScriptManager ID="ToolkitScriptManager1" runat="server" EnableScriptGlobalization = "true" EnableScriptLocalization="true" EnablePageMethods ="true"></asp:ScriptManager>
     and see how it goes.

    Regards,
    Maria Ilieva
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  9. Suzy
    Suzy avatar
    66 posts
    Member since:
    Nov 2014

    Posted 04 Feb 2015 Link to this post

    I just tried it but still the same problem
  10. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 05 Feb 2015 Link to this post

    Hi Suzy,

    Find attached a sample test page that presents the proper functionality of this scenario. Test it on your end and verify what the difference in your case is.

    Regards,
    Maria Ilieva
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  11. Suzy
    Suzy avatar
    66 posts
    Member since:
    Nov 2014

    Posted 06 Feb 2015 Link to this post

    Maria,
    you're code has the same problem.
    steps I do to test :
    1. select a value in the drop down
    2. add data in the editor
    3. Press add button
    4. Select value in the drop down
    5. try to add data in the editor : not possible!


  12. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 10 Feb 2015 Link to this post

    Hello Suzy,

    Thank you for getting back to us with the exact steps for replicating the issue.
    I was able to observe the problematic behavior and will need some additional time to further research on this case and isolate the root cause of the problem.
    As soon as I have any updates on this case I will get back to you with my findings.

    Thank you for your cooperation.

    Regards,
    Maria Ilieva
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  13. Suzy
    Suzy avatar
    66 posts
    Member since:
    Nov 2014

    Posted 25 Feb 2015 Link to this post

    Hi Maria Ilieva,

    Do you have a projected timeline about this issue?

    Kind regards

    Suzy
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017