problem in DirectEvent of button for Run time loaded User Control.

Page 2 of 4 FirstFirst 1234 LastLast
  1. #11
    Hi Guys

    Any Updates???????????
    Pls help me out.

    Rupesh
  2. #12
    Hi Guys

    Any Updates?????????
    Pls Help me out.

    Thanks
    Rupesh
  3. #13
    Hi Guys

    Is there any solution?

    Thanks
    Rupesh
  4. #14
    Hi Rupesh,

    Could you clarify what exactly problems do you have with the code that you posted at the last time? Exceptions, errors?

    I was unable to run this code because there is wrong markup:
    <Items>
        <ext:GroupTabPanel ID="GroupTabPanel1" runat="server" ...>
            <Groups>
                <ext:GroupTab ID="grpJawClicking" runat="server" ...>
                    ...
                </ext:GroupTab>
            </Groups>
        </ext:GroupTabPanel>
        <ext:GroupTab ID="grpJawLocking" runat="server" ...>
            ...
        </ext:GroupTab>
    </Items>
    <ext:GroupTab> control must be within <Groups> of <ext:GroupTabPanel> control. So, it must look like:

    Example
    <Items>
        <ext:GroupTabPanel ID="GroupTabPanel1" runat="server" ...>
            <Groups>
                <ext:GroupTab ID="grpJawClicking" runat="server" ...>
                    ...
                </ext:GroupTab>
                <ext:GroupTab ID="grpJawLocking" runat="server" ...>
                     ...
                 </ext:GroupTab>
            </Groups>
        </ext:GroupTabPanel>
    </Items>
  5. #15
    Hi Daniil

    Sorry for inconvinient.
    This is the model code of real code. In real code there are lots of user controls.


    Code in main aspx file
    <%@ Page Title="" Language="C#" AutoEventWireup="true" CodeFile="forumpage.aspx.cs"
        Inherits="Demo" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!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 id="Head1" runat="server">
    
        <script type="text/javascript">
            var destroyFromCache = function(container) {
                container.controlsCache = container.controlsCache || [];
                Ext.each(container.controlsCache, function(controlId) {
                    var control = Ext.getCmp(controlId);
                    if (control && control.destroy) {
                        control.destroy();
                    }
                });
            };
    
            var putToCache = function(container, controls) {
                container.controlsCache = controls;
            };
        </script>
    
    </head>
    <body>
        <form id="Form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
        <ext:Viewport ID="Viewport1" runat="server" StyleSpec="background-color: transparent;">
            <items>
                <ext:BorderLayout ID="BorderLayout1" runat="server">  
                    <Center MarginsSummary="5 7 5 5">
                        <ext:TabPanel 
                            ID="TabPanel1" 
                            runat="server" 
                            Title="TabPanel" 
                            ActiveTabIndex="0" 
                            TabAlign="Left"                                                 
                            TabPosition="Top"
                            Border="false"                         
                            BodyStyle="border:1px solid #AABBCC; border-top: none;">
                            <Items>
                                <ext:Panel 
                                    ID="TabComplaints" 
                                    runat="server" 
                                    Title="Complaints" 
                                    Icon="GroupError"                                                                         
                                    BodyStyle="background-color:#DDEEFF;"
                                    Layout="Fit"
                                    ButtonAlign="Center"
                                    >                                
                                    <Items>                                
                                      <ext:GroupTabPanel ID="GroupTabPanel1" runat="server" TabWidth="180" Cls="vertical-tabs"   BodyStyle="border:1px solid #82ACCE;" >
                                          <Groups>  
                                             <ext:GroupTab ID="grpJawClicking" runat="server" Cls="topbottompadding">
                                                <Items>
                                                    <ext:Panel ID="Panel5" 
                                                        runat="server" 
                                                        Title="JAW CLICKING" 
                                                        TabTip="JAW CLICKING" 
                                                        StyleSpec="padding:5px;" > 
                                                        
                                                          
                                                        </ext:Panel>
                                                </Items>
                                                <DirectEvents>
                                                    <Show OnEvent="TempFunction"></Show>
                                                </DirectEvents>
                                            </ext:GroupTab>                                                                       
                                            <ext:GroupTab ID="grpJawLocking" runat="server" Cls="topbottompadding">
                                                <Items>
                                                    <ext:Panel ID="Panel8" 
                                                        runat="server" 
                                                        Title="JAW LOCKING" 
                                                        TabTip="JAW LOCKING" 
                                                        StyleSpec="padding:5px;">
                                                        
                                                        </ext:Panel>    
                                                </Items>
                                                
                                                <DirectEvents>
                                                    <Show OnEvent="TempFunction"></Show>
                                                </DirectEvents>
                                            </ext:GroupTab>   
                                            </Groups>
                                            </ext:GroupTabPanel>                                                           
                                    </Items>
                                    
                                </ext:Panel>
                                                             
                            </Items>
                        </ext:TabPanel> 
                    </Center>
                </ext:BorderLayout>
            </items>
        </ext:Viewport>
        </form>
    </body>
    </html>
    Thanks

    Rupesh
  6. #16
    Please describe the problem that you have with this code.
  7. #17
    Hi Daniil

    When page is loaded first user control is loaded (JawClicking). there is one combobox jawclickcboReason.
    I got the selected values of reason of visit combobox (jawclickcboReason), when I click on save button of first user control.
    After saving, second user control is loaded (JawLocking) runtime. there is also one combobox CboJawLockingcboReason.
    In this control when I click on save button, I am not getting selected value of reason of visit (CboJawLockingcboReason).

    the control which is loaded first is working fine.
    But the controls which are loaded on tab click of grouptabpanel. are not working fine.
    in those control I am not getting the selected values of combobox.

    Thanks
    Rupesh
  8. #18
    Hi Daniil

    You got my problem?
    It's Urgent..........

    Thanks
    Rupesh
  9. #19
    Please send us a test project with all required dlls on support@object.net

    Also please provide us with exact steps to reproduce the issue.
  10. #20
    Hi Daniil

    I send u full web site coding in rar file at support@object.net.

    Pls go through.


    Thanks
    Rupesh
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Replies: 2
    Last Post: Feb 06, 2012, 9:06 AM
  2. Replies: 2
    Last Post: Dec 08, 2011, 1:00 PM
  3. [CLOSED] [1.0] User Control loaded several times
    By FVNoel in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 07, 2011, 10:33 AM
  4. [CLOSED] Dynamic loaded user control height problem
    By Suntico in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Jun 27, 2011, 8:54 AM
  5. Replies: 2
    Last Post: Apr 15, 2010, 5:33 AM

Posting Permissions