Form Panel in Modal Window TabPanel Problem

Page 1 of 2 12 LastLast
  1. #1

    Form Panel in Modal Window TabPanel Problem

    hi ext.net team,

    explain the problem a little difficult.

    this is code: All values are loaded when button1 clicked

    not click tab2, just press the ButtonEditSave button.

    TextField3.Text and TextField4.Text (tab2 items) value are empty.

    <%@ Page Language="C#" %>
    
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
    
        }
        protected void ButtonEditSave_Click(object sender, DirectEventArgs e)
        {
            label1.Text = "textfield3 value:" + TextField3.Text;
        }
        protected void ShowModalWindow1_Click(object sender, DirectEventArgs e)
        {
            TextField1.Text = "value1";
            TextField2.Text = "value2";
            TextField3.Text = "value3";
            TextField4.Text = "value4";
            ModalWindow1.Show();
        }
    </script>
    <!DOCTYPE html>
    <html>
    <head runat="server">
        <title>Ext.NET v3 Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:Button ID="Button1" runat="server" Icon="ApplicationEdit" Text="Load Modal Form" Scale="Medium">
                <DirectEvents>
                    <Click OnEvent="ShowModalWindow1_Click" />
                </DirectEvents>
            </ext:Button>
            <ext:Window ID="ModalWindow1" runat="server" Modal="true" Height="400" Width="500" Hidden="true">
                <Items>
                    <ext:FormPanel ID="FormPanel_Main" runat="server" Layout="FitLayout">
                        <Items>
                            <ext:TabPanel ID="TabPanelMain" runat="server" Plain="true" Frame="false" Margin="5" Layout="FitLayout">
                                <Items>
                                    <ext:Panel ID="Panel1" runat="server" Title="tab1">
                                        <Items>
                                            <ext:TextField ID="TextField1" runat="server" />
                                            <ext:TextField ID="TextField2" runat="server" />
                                        </Items>
                                    </ext:Panel>
                                    <ext:Panel ID="Panel2" runat="server" Title="tab2">
                                        <Items>
                                            <ext:TextField ID="TextField3" runat="server" />
                                            <ext:TextField ID="TextField4" runat="server" />
                                        </Items>
                                    </ext:Panel>
                                </Items>
                            </ext:TabPanel>
                        </Items>
                        <Buttons>
                            <ext:Button ID="ButtonEditSave" runat="server" Icon="Disk" FormBind="true" Text=" Save Change " Scale="Medium">
                                <DirectEvents>
                                    <Click OnEvent="ButtonEditSave_Click" />
                                </DirectEvents>
                            </ext:Button>
                        </Buttons>
                    </ext:FormPanel>
                    <ext:StatusBar ID="StatusBar1" runat="server">
                        <Items>
                            <ext:Label ID="label1" runat="server" />
                        </Items>
                    </ext:StatusBar>
                </Items>
            </ext:Window>
        </form>
    </body>
    </html>
  2. #2
    Set TabPanel's DeferredRender to false.

    Let me know if you need further assistance.
  3. #3

    Form Panel in Modal Window TabPanel Problem

    hi RCN

    Thanks for the help.
    This was good. But I can not predict it

    I wish success to you.
  4. #4

    Form Panel in Modal Window TabPanel Problem

  5. #5
    It's due PasswordMask.

    Do you really need to se the value of txtWebLoginPwd? if user type it, the problem is gone.
  6. #6

    Form Panel in Modal Window TabPanel Problem

    Yes, I need to value. using mssql read and write.
    There are many fields. I had to do so TabPanel. grouping

    You can propose another method.
    Last edited by hakandonmez; Mar 06, 2015 at 4:41 PM.
  7. #7
    Are you gonna "download" password? It' not good to do that, even if you are using ssl/https.

    Please, better explain your needs (about password field) and i may be able to suggest something.
  8. #8
    yes I know. but this is a local user. not out in the open. therefore I have to do that.
  9. #9
    Ttherefore I have to do that.
    Expand on that.

    Explain your needs.
  10. #10
    Hi RCN
    My english is not enough. only technical english well.

    Thank you so much for everything
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] Problem with modal window and focus
    By josegarcia in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Jun 13, 2014, 1:50 PM
  2. [CLOSED] Modal window and form tag
    By sbg in forum 2.x Legacy Premium Help
    Replies: 8
    Last Post: Oct 28, 2013, 6:39 AM
  3. Replies: 4
    Last Post: Oct 25, 2012, 2:02 PM
  4. Replies: 5
    Last Post: Apr 20, 2012, 6:20 AM
  5. Modal window escape key problem
    By dbassett74 in forum 1.x Help
    Replies: 0
    Last Post: Apr 20, 2009, 1:00 PM

Posting Permissions