This is a migrated thread and some comments may be shown as answers.

Input fields not available after postback

10 Answers 164 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Suzy
Top achievements
Rank 2
Suzy asked on 22 Jan 2015, 09:35 AM
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

10 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 26 Jan 2015, 01:11 PM
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.

 
0
Suzy
Top achievements
Rank 2
answered on 28 Jan 2015, 08:19 AM
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
      
0
Maria Ilieva
Telerik team
answered on 30 Jan 2015, 09:05 AM
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.

 
0
Suzy
Top achievements
Rank 2
answered on 30 Jan 2015, 09:41 AM
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>

​
0
Suzy
Top achievements
Rank 2
answered on 30 Jan 2015, 09:44 AM
also tried it with a RadDropDownList and still the same problem
0
Maria Ilieva
Telerik team
answered on 04 Feb 2015, 07:38 AM
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.

 
0
Suzy
Top achievements
Rank 2
answered on 04 Feb 2015, 08:09 AM
I just tried it but still the same problem
0
Maria Ilieva
Telerik team
answered on 05 Feb 2015, 03:13 PM
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.

 
0
Suzy
Top achievements
Rank 2
answered on 06 Feb 2015, 01:04 PM
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!


0
Maria Ilieva
Telerik team
answered on 10 Feb 2015, 03:54 PM
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.

 
Tags
Ajax
Asked by
Suzy
Top achievements
Rank 2
Answers by
Maria Ilieva
Telerik team
Suzy
Top achievements
Rank 2
Share this question
or