[CLOSED] Problem with 1.0 RC edition

  1. #1

    [CLOSED] Problem with 1.0 RC edition

    Hello , we have a problem with 1.0 rc edition . when we hide and show some controls on server side , some controls are disappearing.

    capture2.png which is attached shows the initial state. after clicking ctlKurumTipCheckBox , ctlKurumTipCheckBox is disappearing that shown in 1.png . my CheckBox_Checked method hides only comboboxes. same codes work with 0.86 edition perfectly.

    <ext:FitLayout ID="FitLayout1" runat="server">
        <Items>
            <tt:TTPanel Layout="form" runat="server" ID="ctlBaseFormPanel" BodyBorder="false"
                Border="false" AnchorHorizontal="100%" Padding="5" AutoHeight="true" Title="Kural Parametreleri">
                <Items>
                    <tt:TTCompositeField runat="server" ID="ctlKurumCompositeField" AnchorHorizontal="100%" LabelSource="UseFieldLabel">
                        <Items>
                            <tt:TTCheckBox runat="server" FieldLabel="" ID="ctlKurumCheckBox" Checked="true">
                                <DirectEvents>
                                    <Check OnEvent="CheckBox_Checked">
                                    </Check>
                                </DirectEvents>
                            </tt:TTCheckBox>
                            <ttd:TTEntityCombo runat="server" FieldLabel="Kurum" ID="ctlKurumCombo" TableDisplayField="Ad"
                                TableValueField="ID" TableName="Kurum" ForceSelection="true" TypeAhead="true">
                            </ttd:TTEntityCombo>
                        </Items>
                    </tt:TTCompositeField>
                    <tt:TTCompositeField runat="server" ID="ctlKurumTipCompositeField" AnchorHorizontal="100%" LabelSource="UseFieldLabel">
                        <Items>
                            <tt:TTCheckBox runat="server" FieldLabel="" ID="ctlKurumTipCheckBox">
                                <DirectEvents>
                                    <Check OnEvent="CheckBox_Checked">
                                    </Check>
                                </DirectEvents>
                            </tt:TTCheckBox>
                            <ttd:TTEntityCombo runat="server" FieldLabel="Kurum Tipi" ID="ctlKurumTipCombo" TableDisplayField="Ad"
                                TableValueField="ID" TableName="KurumTip" ForceSelection="true" TypeAhead="true" Hidden="true">
                            </ttd:TTEntityCombo>
                        </Items>
                    </tt:TTCompositeField>
                </Items>
            </tt:TTPanel>
        </Items>
    </ext:FitLayout>
        public partial class CorporationRuleControl : RuleUIBusiness<CorporationRuleParameter>
        {
            protected void Page_Load(object sender, EventArgs e)
            {
                ctlKurumCombo.DataBind();
                ctlKurumTipCombo.DataBind();
            }
    
            public void CheckBox_Checked(object sender, DirectEventArgs e)
            {
                TTCheckBox cbox = (TTCheckBox)sender;
                bool check = cbox.Checked;
                if (cbox.ID == "ctlKurumCheckBox")
                {
                    ctlKurumTipCheckBox.Checked = !check;
                    HideControls(!check);
                }
                else
                {
                    ctlKurumCheckBox.Checked = !check;
                    HideControls(check);
                }
    
            }
            private void HideControls(bool check)
            {
                ctlKurumCombo.Hidden = check;
                ctlKurumTipCombo.Hidden = !check;
            }
    
    
    
            public override void FillUI(CorporationRuleParameter entity)
            {
                ctlKurumCombo.Clear();
                ctlKurumTipCombo.Clear();
                ctlKurumCombo.SelectedAsNullableInt = entity.KurumID;
                ctlKurumTipCombo.SelectedAsNullableInt = entity.KurumTipID;
                base.FillUI(entity);
            }
            public override CorporationRuleParameter RetrieveFromUI()
            {
                if (ctlKurumCombo.SelectedAsInt < 1 && ctlKurumTipCombo.SelectedAsInt < 1)
                    throw new BusinessException("Bir Kurum veya Kurum Tip  Seçilmelidir");
                Current.KurumID = ctlKurumCombo.SelectedAsNullableInt;
                Current.KurumTipID = ctlKurumTipCombo.SelectedAsNullableInt;
                return Current;
    
            }
        }
    Regards.
    Attached Thumbnails Click image for larger version. 

Name:	Capture2.PNG 
Views:	72 
Size:	5.4 KB 
ID:	1998   Click image for larger version. 

Name:	1.PNG 
Views:	68 
Size:	5.3 KB 
ID:	1999  
    Last edited by Daniil; Dec 29, 2010 at 8:43 PM. Reason: Marked as [CLOSED]. No more information was provided.
  2. #2
    Hi,

    There are user controls in your code. The issue can depend on ones.

    So, please provide a full sample to reproduce.
  3. #3
    hi , no they are not usercontrols. they are only inherited ext.net controls.
    for example
    namespaceKalitte.TTVys.Framework.Web.Controls
    {
          publicclassTTCheckBox : Ext.Net.Checkbox
               { 
               }
    }
  4. #4
    Thank you for the update.

    But, unfortunately, this has not helped us. We have no idea what can be wrong without a full sample to reproduce.
  5. #5
    hey daniil.
    i sent the solution . try checking checkboxes.

    Regards.


    Assemblies

    Ext.Net.dll Fullname : Ext.Net, Version=1.0.3960.36328, Culture=neutral, PublicKeyToken=2e12ce3d0176cd87

    Ext.Net.Utilities.dll Fullname : Ext.Net.Utilities, Version=1.0.0.36286, Culture=neutral, PublicKeyToken=2c34ac34702a3c23
    Attached Files
  6. #6
    Hi,

    I cannot reproduce the issue with latest code
    I suggest to update from SVN or try to call 'DoLayout' method for CompositeField after show/hide any inner items

Similar Threads

  1. [CLOSED] GridPanel edition example questions
    By digitek in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 05, 2012, 12:10 PM
  2. Which edition is delivered via NuGet?
    By ivesoft in forum Licensing
    Replies: 1
    Last Post: Jan 06, 2012, 4:31 PM
  3. Community Edition and Professional Edition
    By lihl in forum Licensing
    Replies: 3
    Last Post: Sep 28, 2010, 2:45 AM
  4. about coolite's professional edition
    By [WP]joju in forum Licensing
    Replies: 8
    Last Post: Jan 22, 2010, 1:40 PM
  5. community edition license
    By fsinbad in forum Licensing
    Replies: 1
    Last Post: Jul 21, 2009, 12:00 AM

Posting Permissions