RowEditor bug

Page 2 of 4 FirstFirst 1234 LastLast
  1. #11
    k Daniil, Im preparing and posting it soon as im back home (wtihin 5/6 hours). Thanks a lot.
  2. #12
    Quote Originally Posted by reezvi View Post
    k Daniil, Im preparing and posting it soon as im back home (wtihin 5/6 hours). Thanks a lot.
    Hi Daniil,

    Sorry for this late response. I been busy a lot lately. Well, I follwed your guidelines on simplifying the sample code to it's minimal required extent. While doing that I found out, the RowEditor overlapping problem with window is occuring only when Im using my page with masterpage reference in it! If I remove the masterpage reference and take the codes out of content placeholders, they are just working fine!

    Im really puzzled. Any suggestion or idea?
  3. #13
    Not sure what can be wrong. Maybe it's a layout issue.

    Any chance to get a sample to reproduce?
  4. #14
    Quote Originally Posted by Daniil View Post
    Not sure what can be wrong. Maybe it's a layout issue.

    Any chance to get a sample to reproduce?
    Well I can give you the reduced sample. But without masterpage page reference and putting the codes inside content palece holder, the bug won't showup. What should I do? Shall I send you the reduced code with masterpage and css?
  5. #15
    Yes, please post a master page and a content page with all required css to reproduce the problem.
  6. #16
    Quote Originally Posted by Daniil View Post
    Yes, please post a master page and a content page with all required css to reproduce the problem.
    Hi Daniil,

    Im really sorry for this late response. I was away to vacation. Here are the least required codes to reproduce the issue. Please follow the problem repro steps I had mentioned in my previous post. Thanks and regards.

    CSS -

    .page
    {
        width: 960px;
        background-color: #fff;
        margin: 20px auto 0px auto;
        border: 1px solid #496077;
    }
    MasterPage -

    <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="TestExtApp.SiteMaster" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head runat="server">
        <title></title>
        <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
        <asp:ContentPlaceHolder ID="HeadContent" runat="server">
        </asp:ContentPlaceHolder>
    </head>
    <body>
        <form runat="server">
        <div class="page">
            <div class="header">
            </div>
            <div class="main">
                <asp:ContentPlaceHolder ID="MainContent" runat="server"/>
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="footer">
            
        </div>
        </form>
    </body>
    </html>
    Test Page -

    <%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="GridTest.aspx.cs" Inherits="TestExtApp.GridTest" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
      
    <script runat="server"> 
          
    #region Event Handlers and Listeners 
      
        protected void Page_Load(object sender, EventArgs e) 
        { 
            if (!X.IsAjaxRequest) 
            { 
                BindGridCountry(); 
            } 
        } 
      
        #endregion 
      
        #region Private Methods 
      
        /// <summary> 
        /// Private method to bind grid data 
        /// </summary> 
        private void BindGridCountry() 
        { 
            var store = this.grdCountry.GetStore(); 
      
            store.DataSource = LoadGridData(); 
            store.DataBind(); 
        } 
      
        private IList<Object> LoadGridData() 
        { 
            return new List<object> 
                { 
                    new {  
                        CountryCode = "AA",  
                        CountryName = "Country A",  
                        CountryCode_BN = "AA bn",  
                        CountryName_BN = "Country A bn",  
                    }, 
                    new {  
                        CountryCode = "AA",  
                        CountryName = "Country A",  
                        CountryCode_BN = "AA bn",  
                        CountryName_BN = "Country A bn",  
                    }, 
                    new {  
                        CountryCode = "AA",  
                        CountryName = "Country A",  
                        CountryCode_BN = "AA bn",  
                        CountryName_BN = "Country A bn",  
                    }, 
                    new {  
                        CountryCode = "AA",  
                        CountryName = "Country A",  
                        CountryCode_BN = "AA bn",  
                        CountryName_BN = "Country A bn",  
                    }, 
                    new {  
                        CountryCode = "AA",  
                        CountryName = "Country A",  
                        CountryCode_BN = "AA bn",  
                        CountryName_BN = "Country A bn",  
                    }, 
                    new {  
                        CountryCode = "AA",  
                        CountryName = "Country A",  
                        CountryCode_BN = "AA bn",  
                        CountryName_BN = "Country A bn",  
                    }, 
                    new {  
                        CountryCode = "AA",  
                        CountryName = "Country A",  
                        CountryCode_BN = "AA bn",  
                        CountryName_BN = "Country A bn",  
                    }, 
                    new {  
                        CountryCode = "AA",  
                        CountryName = "Country A",  
                        CountryCode_BN = "AA bn",  
                        CountryName_BN = "Country A bn",  
                    }, 
                    new {  
                        CountryCode = "AA",  
                        CountryName = "Country A",  
                        CountryCode_BN = "AA bn",  
                        CountryName_BN = "Country A bn",  
                    }, 
                    
                    new {  
                        CountryCode = "BB",  
                        CountryName = "Country B",  
                        CountryCode_BN = "BB bn",  
                        CountryName_BN = "Country B bn",  
                    } 
                }; 
        } 
      
        #endregion 
          
    </script> 
      
    <asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server"> 
    </asp:Content> 
    
    <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 
        <ext:ResourceManager ID="ResourceManager1" runat="server"/> 
    
            <ext:Window ID="wndCountryEntry" runat="server" Title="Add New Country" Icon="BulletAdd"
                Modal="True" Hidden="True" Draggable="False" AutoHeight="True" MinWidth="500px"
                MinHeight="200px" Plain="True" Padding="5" ButtonAlign="Center" LabelWidth="55"
                Layout="Form" Height="200px" Width="500px"> 
                <buttons> 
                    <ext:Button runat="server" Text="Save" Icon="Disk" /> 
                    <ext:Button runat="server" Text="Cancel" Icon="Decline" > 
                        <Listeners> 
                            <Click Handler="#{wndCountryEntry}.hide();" />                                                 
                        </Listeners>                                                 
                    </ext:Button> 
                </buttons> 
                <LoadMask ShowMask="True" /> 
                <Items> 
                    <ext:Panel ID="pnlCountryEntryEN" runat="server" Title="Country Entry (English)"
                        AutoWidth="True" Layout="Form" AutoHeight="True" AnchorHorizontal="100%" Padding="5"> 
                        <Items> 
                            <ext:TextField ID="txtCountryCodeEN" runat="server" FieldLabel="Country Code " AnchorHorizontal="50%"/> 
                            <ext:TextField ID="txtCountryNameEN" runat="server" FieldLabel="Country Name " AnchorHorizontal="100%"/> 
                        </Items> 
                    </ext:Panel> 
                    <ext:Panel ID="pnlCountryEntryBN" runat="server" Title="Country Entry (Bangla)" AutoWidth="True"
                        Layout="Form" AutoHeight="True" AnchorHorizontal="100%" Padding="5"> 
                        <Items> 
                            <ext:TextField ID="txtCountryCodeBN" runat="server" FieldLabel="Country Code " AnchorHorizontal="50%"/> 
                            <ext:TextField ID="txtCountryNameBN" runat="server" FieldLabel="Country Name " AnchorHorizontal="100%"/> 
                        </Items> 
                    </ext:Panel> 
                </Items> 
            </ext:Window> 
      
            <ext:Panel ID="pnlCountry" runat="server" Title="Country Info" Height="600px" Layout="BorderLayout"
                Header="False" DefaultPadding="5" DefaultCollapsible="false" DefaultSplit="true"> 
                <Items> 
                    <ext:GridPanel ID="grdCountry" runat="server" AnchorHorizontal="100%" Height="400px"
                        Title="Country Info" Region="Center"> 
                        <loadmask showmask="True" /> 
                        <savemask showmask="True" /> 
                        <Store> 
                            <ext:Store ID="storeGrdCountry" runat="server" AutoSave="true" SerializationMode="Simple"> 
                                <Reader> 
                                    <ext:JsonReader IDProperty="OID"> 
                                        <Fields> 
                                            <ext:RecordField Name="CountryCode" Mapping="CountryCode" Type="String" /> 
                                            <ext:RecordField Name="CountryName" Mapping="CountryName" Type="String" /> 
                                            <ext:RecordField Name="CountryCode_BN" Mapping="CountryCode_BN" Type="String" /> 
                                            <ext:RecordField Name="CountryName_BN" Mapping="CountryName_BN" Type="String" /> 
                                            <ext:RecordField Name="CreatedBy" Mapping="CreatedBy" /> 
                                            <ext:RecordField Name="CreatedDate" Mapping="CreatedDate" Type="Date" DateFormat="yyyy-MM-ddThh:mm:ss" /> 
                                            <ext:RecordField Name="ModifiedBy" Mapping="ModifiedBy" /> 
                                            <ext:RecordField Name="ModifiedDate" Mapping="ModifiedDate" Type="Date" DateFormat="yyyy-MM-ddThh:mm:ss" /> 
                                        </Fields> 
                                    </ext:JsonReader> 
                                </Reader> 
                            </ext:Store> 
                        </Store> 
                        <View> 
                            <ext:GridView ID="GridView1" runat="server" MarkDirty="False"/>
                        </View> 
                        <columnmodel> 
                                    <Columns> 
                                        <ext:RowNumbererColumn /> 
                                        <ext:Column ColumnID="CountryCode" Header="Country Code (English)" 
                                            DataIndex="CountryCode" Width="135px"> 
                                            <Editor> 
                                                <ext:TextField runat="server" AllowBlank="true"/> 
                                            </Editor> 
                                        </ext:Column> 
                                        <ext:Column Header="Name (English)" DataIndex="CountryName" 
                                            Width="250px" > 
                                            <Editor> 
                                                <ext:TextField runat="server" AllowBlank="true"/> 
                                            </Editor> 
                                        </ext:Column> 
                                        <ext:Column Header="Country Code (Bengali)" DataIndex="CountryCode_BN" Width="135px"> 
                                            <Editor> 
                                                <ext:TextField runat="server" AllowBlank="true"/> 
                                            </Editor> 
                                        </ext:Column> 
                                        <ext:Column Header="Name (Bengali)" DataIndex="CountryName_BN" 
                                            Width="250px" > 
                                            <Editor> 
                                                <ext:TextField runat="server" AllowBlank="true"/> 
                                            </Editor> 
                                        </ext:Column> 
                                    </Columns> 
                                </columnmodel> 
                        <DirectEvents> 
                        </DirectEvents> 
                        <bottombar> 
                                    <ext:PagingToolbar runat="server" PageSize="10"  
                                         DisplayInfo="True"/> 
                                </bottombar> 
                        <topbar> 
                                    <ext:Toolbar runat="server" > 
                                        <Items> 
                                            <ext:Button runat="server" Text="Add New Country" Icon="Add" > 
                                                <Listeners> 
                                                    <Click Handler="#{wndCountryEntry}.show();"></Click> 
                                                </Listeners> 
                                            </ext:Button> 
                                        </Items> 
                                    </ext:Toolbar> 
                                </topbar> 
                        <plugins> 
                                <ext:RowEditor runat="server" SaveText="Update" Floating="true"/> 
                            </plugins> 
                    </ext:GridPanel> 
                </Items> 
            </ext:Panel> 
    </asp:Content>
  7. #17
    Hi. Any update on this?
  8. #18
    Quote Originally Posted by reezvi View Post
    Please follow the problem repro steps I had mentioned in my previous post.
    I'm afraid I can't see the steps to reproduce in your previous post #14.

    Please post the steps.
  9. #19
    Quote Originally Posted by Daniil View Post
    I'm afraid I can't see the steps to reproduce in your previous post #14.

    Please post the steps.
    Hi Daniil, welcome back. Sorry, those steps were in previous page. Im posting them below

    Scenerio A:

    Step 1 - run the given sample as it is without any modification.
    Step 2 - double click on a row to edit then click 'Cancel' in row editor.
    Step 3 - double click on a row (preferably some other row) to edit again. The bug will show up.
    Step 4 - 'Cancel' and follow step 3 to see it again.
    Step 5 - Once the RowEditor is placed upon selected row (click 2+ times on a row to have the placement), keep it there and click 'Add New Country' button in toolbar. You will see the RowEditor's position is behind the Window. This is why I set Floating="false" in RowEditor.

    Scenerio B:

    Step 1 - remove Floating="false" from RowEditor.
    Step 2 - follow steps 2-5 as outlined there in scenerio A. You should see the RowEditor is overlapping modal window for 'Add New Country'.
    Step 3 - you can add Floating="true" in modal window ('wndCountryEntry'), but it's of no use.


    Best regards
    Last edited by reezvi; Sep 18, 2011 at 11:57 AM.
  10. #20
    Hi, could you test? Any update?
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. RowEditor and AfterEdit
    By alexrodi82 in forum 1.x Help
    Replies: 3
    Last Post: Oct 17, 2011, 6:09 PM
  2. RowEditor Visible
    By threewonders in forum 1.x Help
    Replies: 0
    Last Post: Oct 11, 2011, 3:58 PM
  3. using triggerfield with roweditor
    By jayagupta in forum 1.x Help
    Replies: 1
    Last Post: Sep 20, 2011, 12:42 PM
  4. RowEditor validation
    By reezvi in forum 1.x Help
    Replies: 0
    Last Post: Aug 12, 2011, 6:36 PM
  5. Disable Roweditor
    By jhohan25 in forum 1.x Help
    Replies: 0
    Last Post: Aug 08, 2011, 9:01 PM

Posting Permissions