[CLOSED] Other breaking changes not mentioned in the Breaking changes list

  1. #1

    [CLOSED] Other breaking changes not mentioned in the Breaking changes list

    1. The Column hierarchy changed. Before the other columns inherited the Column table and you could write code such as Column c= new BooleanColumn....
    Now all the columns inherit from ColumnBase.

    2. This event is gone: http://docs.sencha.com/ext-js/3-4/#!...ientvalidation. I am not too sure what was replaced with.

    3.The FormPanel Failure listener is not anymore among the FormPanel listeners.

    4. TextField.ValidationDelay is gone

    5.Some of the FilterCondition properties have changed: FilterType => Type, Name => Field (not 100% sure about this one), the ValueAs*** => Value<T>(), ValueList => List

    Thanks
    Last edited by Daniil; Dec 18, 2012 at 6:36 AM. Reason: [CLOSED]
  2. #2
    Hi @bogc,

    Thanks a lot for these items!

    Added to the BREAKING_CHANGES, #130-134.
    http://examples2.ext.net/#/Getting_S...AKING_CHANGES/
    Last edited by geoffrey.mcgill; Apr 30, 2013 at 1:43 PM.
  3. #3
    Hi:

    I am working on upgrading to Ext.Net 2 and I discovered more issues. I hope you don't mind, I think keeping the Breaking Changes list as accurate as possible is very useful:

    - The DropPoint enumeration members have been renamed
    - HeaderGroupColumn & HeaderGroupRow are gone. Use the Column.Columns collection to create header groups.
    - the TreeGrid is gone. Replace with TreePanel which now supports columns.
    - BodyBorder is now of int?. Before it was boolean.
    - The Ext.Net.Component.Ref property is gone
    - TreeGrid.AllowLeafDrop - is there an equivalent property in TreePanel or droping nodes on leaves is allowed by default? Answered myself to this one, use the TreeViewDragDrop.AllowLeafDrop.
    - TreeGrid used to have the EnableHdMenu property. What property can I use now instead?
    - ComponentMenuItem is gone. I believe now components can be added to a menu using the Menu Items collection.

    Thanks
    Last edited by bogc; Dec 05, 2012 at 3:04 AM.
  4. #4
    Yes, absolutely. Thank you very much.

    Quote Originally Posted by bogc View Post
    - The DropPoint enumeration members have been renamed
    Added a new item.

    135. The DropPoint enum's members have been renamed: Above => Before, Below => After.

    Quote Originally Posted by bogc View Post
    - HeaderGroupColumn & HeaderGroupRow are gone. Use the Column.Columns collection to create header groups.
    Added a new item.

    136. The GridView's HeaderGroupRows property has been removed.

    The HeaderGroupRow and HeaderGroupColumn classes have been removed.

    Now the Column class has the Columns collection property to organize grouping.
    http://examples2.ext.net/#/GridPanel...mnHeaderGroup/

    Quote Originally Posted by bogc View Post
    - the TreeGrid is gone. Replace with TreePanel which now supports columns.
    Added a new item.

    137. The TreeGrid class has been removed. Now a common TreePanel suppors columns.
    http://examples2.ext.net/#/TreePanel/Advanced/TreeGrid/

    Quote Originally Posted by bogc View Post
    - BodyBorder is now of int?. Before it was boolean.
    There is the item #5 to cover this one.

    5. The server Panel Border property type has been changed from bool to bool?.
    The server Panel BodyBorder property type has been changed from bool to int?.

    Quote Originally Posted by bogc View Post
    - The Ext.Net.Component.Ref property is gone
    Added a new item.

    138. The Component's Ref property has been removed.

    Please use the AbstractContainer's down method.
    http://docs.sencha.com/ext-js/4-1/#!...er-method-down

    Example

    //New
         <ext:Panel ID="Panel1" runat="server">
        <TopBar>
            <ext:Toolbar runat="server">
                <Items>
                    <ext:Button runat="server" ItemID="TestButton" Text="Test Button" />
                </Items>
            </ext:Toolbar>
        </TopBar>
    </ext:Panel>
    JavaScript code to access the Button can look:

          var btn = App.Panel1.down("#TestButton");
    Quote Originally Posted by bogc View Post
    - TreeGrid.AllowLeafDrop - is there an equivalent property in TreePanel or droping nodes on leaves is allowed by default?
    Answered myself to this one, use the TreeViewDragDrop.AllowLeafDrop.
    Updated the item #81.

    81. The TreePanel's drag@drop related properties have been removed: EnableDD, EnableDrag, EnableDrop, AllowLeafDrop, DDAppendOnly, DDGroup, DDScroll, ContainerScroll.

    Configure a TreeViewDragDrop plugin for a TreePanel's View.
    http://examples2.ext.net/#/TreePanel...Reorder_Nodes/
    http://docs.sencha.com/ext-js/4-1/#!...eeViewDragDrop

    Quote Originally Posted by bogc View Post
    - TreeGrid used to have the EnableHdMenu property. What property can I use now instead?
    Added a new item.

    82. The GridPanel's EnableHdMenu property has been removed.

    Configure the MenuDisabled property of its columns.

    Quote Originally Posted by bogc View Post
    - ComponentMenuItem is gone. I believe now components can be added to a menu using the Menu Items collection.
    Added a new item.

    139. The ComponentMenuItem class has been removed.

    Now any component can be added to directly to a Menu's Items collection.
    http://examples2.ext.net/#/Toolbar/M...trols_In_Menu/
    Last edited by Daniil; Dec 06, 2012 at 5:21 AM.
  5. #5
    Thank you.

    Others:

    - the checkbox check event (http://docs.sencha.com/ext-js/3-4/#!...ox-event-check) is gone. Use the change event instead (http://docs.sencha.com/ext-js/4-1/#!...x-event-change).

    - AjaxResult has been deprecated and some of its former constructors have been removed. Should we use DirectResult instead?

    - TreeNode.Disabled - there is no property Disabled in the Node class. Found this thread: http://www.sencha.com/forum/showthre...-not-available. It's a plugin. I was wondering if you actually have something similar.

    -TabPanel.EnableTabScroll is gone. I noticed that enableTabScroll is not available in ExtJs 4.1. Is it redundant?

    -the TreeLoader class is gone. If using .Net MVC see this: http://mvc.ext.net/#/TreePanel_Loaders/Proxy/.

    - the LoadConfig class used to have a ManuallyTriggered boolean property. The AutoLoad property has been replaced by the Loader (ComponentLoader) property but there is no corresponding ManuallyTriggered property in the ComponentLoader class.

    - the FormPanelBase.FileUpload property has been removed. Does it have to be replaced with anything? I noticed that the sample http://examples2.ext.net/#/Form/FileUploadField/Basic/ doesn't use it.

    - the ColumnModel.DefaultSortable has been removed. Use the GridHeaderContainer.Sortable property instead

    Thanks
    Last edited by bogc; Dec 06, 2012 at 12:10 AM.
  6. #6
    Thank you very much again!

    Quote Originally Posted by bogc View Post
    - the checkbox check event (http://docs.sencha.com/ext-js/3-4/#!...ox-event-check) is gone. Use the change event instead (http://docs.sencha.com/ext-js/4-1/#!...x-event-change).
    Added a new item.

    126.The Checkbox's Change event has been removed. Use the Change one.


    Quote Originally Posted by bogc View Post
    - AjaxResult has been deprecated and some of its former constructors have been removed. Should we use DirectResult instead?
    Yes, please use the DirectResult class. Or a controller's Direct extension method.

    Quote Originally Posted by bogc View Post

    - TreeNode.Disabled - there is no property Disabled in the Node class. Found this thread: http://www.sencha.com/forum/showthre...-not-available. It's a plugin. I was wondering if you actually have something similar.
    Added a new item.

    140. The TreeNode class has been removed. Please use the Node one.

    There is no Disabled property any more and no a direct substituion.

    You can set up a custom attribute for a Node and configure a View's GetRowClass handler. Here is a related discussion on Sencha forum.
    http://www.sencha.com/forum/showthread.php?138173

    We will consider a possibility to get this functionality back.


    Quote Originally Posted by bogc View Post

    -TabPanel.EnableTabScroll is gone. I noticed that enableTabScroll is not available in ExtJs 4.1. Is it redundant?
    Added a new item.

    141. The TabPanel's EnableTabScroll property has been removed. There is no need in this property anymore.

    Now the scroll tools will appear and disappear automatically regardless any property.

    Quote Originally Posted by bogc View Post
    -the TreeLoader class is gone. If using .Net MVC see this: http://mvc.ext.net/#/TreePanel_Loaders/Proxy/.
    Added a new item.

    142. The TreeLoader has been removed.

    See the TreePanel Loaders examples in the Examples Exmplorers.



    Quote Originally Posted by bogc View Post
    - the LoadConfig class used to have a ManuallyTriggered boolean property. The AutoLoad property has been replaced by the Loader (ComponentLoader) property but there is no corresponding ManuallyTriggered property in the ComponentLoader class.
    Updated the item #71.

    71. The Panel's AutoLoad property has been removed. Use the Loader one. It has the ComponentLoader type.

    The LoadConfig class hass been removed. Use the ComponentLoader one.

    71.1. Use DisableCaching instead of NoCache.
    71.2. Use Mode="Html" instead of Mode="Merge". It's by default.
    71.3. Use LoadMask.ShowMask instead of ShowMask.
    71.4. Use LoadMask.Msg instead of MaskMsg.
    71.5. Use Loader BeforeLoad and Load events instead of Panel BeforeUpdate and Update.
    71.6. Use AutoLoad instead of ManuallyTriggered. A replacement of ManuallyTriggered="true" is AutoLoad="false".



    Quote Originally Posted by bogc View Post
    - the FormPanelBase.FileUpload property has been removed. Does it have to be replaced with anything? I noticed that the sample http://examples2.ext.net/#/Form/FileUploadField/Basic/ doesn't use it.
    Added a new item.

    143. The FormPanelBase's FileUpload property has been removed. There is no need in this property anymore.

    Now a FormPanel checks itself it contains a FileUploadField or not. More details are here.
    http://docs.sencha.com/ext-js/4-1/#!...thod-hasUpload


    Quote Originally Posted by bogc View Post
    - the ColumnModel.DefaultSortable has been removed. Use the GridHeaderContainer.Sortable property instead
    Updated the item #114.

    114. The server ColumnModel class has been removed.

    Use the GridHeaderContainer class.

    Its Sortable property has the same meaning as the DefaultSortable one previously.
  7. #7
  8. #8
  9. #9
    I noticed that the parameters for the RemoveMove action (the server action that gets fired when a node in a tree is moved) have changed . In Ext.Net 1.x they used to be:
    public ActionResult RemoteMove(string id, string targetId, string point)
    Now it is:
            public ActionResult RemoteMove(string[] ids, string targetId, string[] parentIds, string point)
            {
                return this.RemoteTree();
            }
    There might be other changes for the other actions (insert, delete etc.).

    I couldn't find a clear documentation for the parameters of the remove move action...

    Thank you
  10. #10
    Yes, it has been reworked.

    Unfortunately, we have no article which would describe these things in details

    Just an example.
    http://mvc.ext.net/#/TreePanel_Advanced/Remote_Mode/

    We tried to name the arguments to get them intuitively understandable just by its names.

    The "ids" parameter became an array, because now it supports moving of several nodes at once.

    We also pass its parent nodes' ids via the "parentIds" parameter.

    The "targetId" and "point" parameters means the same it does in Ext.NET v1.

Similar Threads

  1. [CLOSED] v2 Changes (breaking or otherwise)
    By peter.campbell in forum 2.x Premium Help
    Replies: 3
    Last Post: Jan 11, 2012, 11:37 PM
  2. [1.0] Undocumented Breaking Changes
    By r_honey in forum Open Discussions
    Replies: 2
    Last Post: Dec 29, 2009, 2:33 PM
  3. Coolite 0.8 breaking changes
    By r_honey in forum Open Discussions
    Replies: 11
    Last Post: Jun 22, 2009, 6:16 AM

Posting Permissions