Window autorender problem Is a bug?

  1. #1

    Window autorender problem Is a bug?

    Friends,
    I have a window with a textfield, when a press the save button, i can get the textfield content. but, when i set de autorender property to false and i press de save button the content textfield is blank. I have the window in an user control.

    Could you help me, sorry my english.

    .ASCX

    <%@ Register assembly="Coolite.Ext.Web" namespace="Coolite.Ext.Web" tagprefix="ext" %>
    <ext:Window ID="winData" runat="server" Collapsible="false" Closable="true" 
        Icon="Application" Title="InformaciĆ³n Perfiles" Width="560px" 
        Height="452px" AutoRender="false" >
        <body>
            <ext:FormPanel ID="FormPanel1" runat="server" BodyStyle="padding:5px;" ButtonAlign="Right"
                        Frame="true" Height="370"  Width="535" AutoScroll="false" AutoRender="true">
                <Body>
                    <ext:FormLayout ID="FormLayout1" runat="server">
                        <ext:Anchor Horizontal="100%">
                            <ext:TextField ID="txtData" runat="server" FieldLabel="Nombre Perfil">
                            </ext:TextField>
                        </ext:Anchor>
                    </ext:FormLayout>
                </Body>
            </ext:FormPanel>
        </body>
         <Buttons>
                    <ext:Button ID="bSave" runat="server" Icon="Disk" Text="save" >
                    <AjaxEvents>
                    <Click OnEvent="SaveData" ></Click>
                    </AjaxEvents>
                    </ext:Button>
                </Buttons>
    </ext:Window>
    .ASCX.CS

    using System;
    ...
    public partial class UserControls_wucDataWindow : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }
        public void Show()
        {
            winCompanyProfile.Show();
        }
        [AjaxMethod]
        public void SaveData(object sender, AjaxEventArgs e)
        {
            string Data = txtData.Text;
            Ext.Msg.Alert("title", Data).Show();
        }
    }

    Thank.
  2. #2

    RE: Window autorender problem Is a bug?

    Although I can verify that what you say is corrct, my first question is why would you do that?

    With AutoRender="false", the ExtJs framework would not register the Window controls as form elements (renderFormElement:false), and hence their value would not be submitted to the server on a regular or Ajax Post back.

Similar Threads

  1. [CLOSED] Fileupload and AutoRender bug
    By petlun in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 30, 2011, 11:01 AM
  2. [CLOSED] Window Autorender
    By Hari_CSC in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: May 21, 2010, 3:35 PM
  3. autorender window problem
    By [WP]joju in forum Bugs
    Replies: 5
    Last Post: Nov 09, 2009, 1:42 AM
  4. window autoRender false with grid panel
    By [WP]joju in forum 1.x Help
    Replies: 0
    Last Post: Nov 06, 2009, 5:24 AM
  5. window autoRender
    By [WP]joju in forum 1.x Help
    Replies: 34
    Last Post: Nov 04, 2009, 6:06 AM

Posting Permissions