[CLOSED] Migration version from Ext.Net v1 to v2 changes

  1. #1

    [CLOSED] Migration version from Ext.Net v1 to v2 changes

    Hi,

    In breaking changes I doesn't found some properties in Ext.NET controls so here it go:

    question marks - would present places I'm not sure about change or double question marks - I do not found it out.

    v1 | v2
    1.LinkButton.NavigateUrl | LinkButton.DirectClickUrl ?
    2.CompositeField.ReadOnly | FieldContainer. ??
    3.ComboBox.Mode | ComboBox.QueryMode?
    4.ComboBox.AutoPostBack | ComboBox. ??
    5.Window.AutoLoad.Mode | Window.Loader.Mode?
    6.Window.AutoLoad.Url | Window.Loader.Url?
    7.CheckBox.DirectEvents.Check.Event | CheckBox.DirectEvents.DirtyChange.Event?
    8.TextField.Truncate | TexField. ??
    9.FileUploadField.Truncate | FileUploadField. ??
    10.Component.FieldLabel | Component. ??
    11.Component.LabelStyle | Component. ??
    12.Component.LabelWidth | Component. ??
    13.Store.AddRecord | Store. ??
    14.ComboBox.AutoWidth | How to use http://docs.sencha.com/ext-js/4-1/#!...cfg-shrinkWrap here?
    15.MultiCombo.UpdateSelection() | MultiCombo.UpdateSelectedItems() ?
    16.What type now are all Ext.Net conrols I mean in v1 this type was Ext.NET.Component?
    17.TapStringItem | ??

    This would be it for now;)

    If you could provide link to breaking changes from v1.5 to v2.0 it would be really helpfull (I just saw that there are breaking changes from v2.0 beta to 2.1):)

    Thanks in advanced:)
    ViDom
    Last edited by Daniil; Apr 25, 2013 at 12:31 PM. Reason: [CLOSED]
  2. #2
    Hi ViDom,

    All the BREAKING_CHANGES since v1 that we were able to catch are placed here:
    https://examples2.ext.net/#/Getting_...AKING_CHANGES/

    Though, certainly, we missed some. Thank you for your list.

    Quote Originally Posted by ViDom View Post
    1.LinkButton.NavigateUrl | LinkButton.DirectClickUrl ?
    Added a new item.

    162. The ButtonBase's NavigateUrl and Target properties have been replaced with the Href and HrefTarget ones.

    Quote Originally Posted by ViDom View Post
    2.CompositeField.ReadOnly | FieldContainer. ??
    Added a new Item.

    163. The CompositeField has the ReadOnly property in v1. The FieldContainer doesn't have such a property.

    Please set up the following for a FieldContainer:
    <FieldDefaults ReadOnly="true" />
    Quote Originally Posted by ViDom View Post
    3.ComboBox.Mode | ComboBox.QueryMode?
    Correct. The existing item #66.

    66. ComboBox Mode has need renamed to QueryMode.

    Quote Originally Posted by ViDom View Post
    4.ComboBox.AutoPostBack | ComboBox. ??
    As far as I can see the ComboBox class does still have the AutoPostBack property. It inherits this property from the Field class.

    Quote Originally Posted by ViDom View Post
    5.Window.AutoLoad.Mode | Window.Loader.Mode?
    6.Window.AutoLoad.Url | Window.Loader.Url?
    Correct. The existing item #71.

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

    Quote Originally Posted by ViDom View Post
    7.CheckBox.DirectEvents.Check.Event | CheckBox.DirectEvents.DirtyChange.Event?
    Please use the Change event instead.

    There is the item #126.

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

    Corrected to:

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

    Quote Originally Posted by ViDom View Post
    8.TextField.Truncate | TexField. ??
    Added a new item.

    164. The TextFieldBase's Truncate property has been removed. Please use the EnforceMaxLength one instead.
    It is also false by default. If Truncate is explicitly set up to true, then you should also set EnforceMaxLength to true.


    Quote Originally Posted by ViDom View Post
    9.FileUploadField.Truncate | FileUploadField. ??
    I don't think Truncate="true" for a FileUploadField can really truncates its text. Could you clarify how you used this property for a FileUploadField?

    Quote Originally Posted by ViDom View Post
    10.Image.FieldLabel | Image. ??
    11.Image.LabelStyle | Image. ??
    12.Image.LabelWidth | Image. ??
    Added a new item.

    165. The Image class doesn't have field-related properties anymore like FieldLabel, LabelStyle, LabelWidth, etc.

    You can wrap an Image in a FieldContainer control and set up those properties for the FieldContainer.


    Quote Originally Posted by ViDom View Post
    13.Store.AddRecord | Store. ??
    Added a new item.

    166. The StoreBase's AddRecord and InsertRecord method have been removed. Please use the Add and Insert methods.

    Quote Originally Posted by ViDom View Post
    I would try to set up ShrinkWrap="Width" for a ComboBox.

    Quote Originally Posted by ViDom View Post
    15.MultiCombo.UpdateSelection() | MultiCombo.UpdateSelectedItems() ?
    Correct. Added a new item.

    167. The MultiCombo's UpdateSelection method has been removed. Please use the UpdateSelectedItems instead.

    Quote Originally Posted by ViDom View Post
    16.What type now are all Ext.Net conrols I mean in v1 this type was Ext.NET.Component?
    I think you can still use the Ext.Net.Component class.

    Quote Originally Posted by ViDom View Post
    17.TapStringItem | ??
    Do you mean TabStripItem?

    Added a new item.

    168. The TabStripItem class has been renamed to Tab. Its Title property has been renamed to Text.
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi ViDom,

    All the BREAKING_CHANGES since v1 that we were able to catch are placed here:
    https://examples2.ext.net/#/Getting_...AKING_CHANGES/

    Though, certainly, we missed some. Thank you for your list.



    Added a new item.

    162. The ButtonBase's NavigateUrl and Target properties have been replaced with the Href and HrefTarget ones.



    Added a new Item.

    163. The CompositeField has the ReadOnly property in v1. The FieldContainer doesn't have such a property.

    Please set up the following for a FieldContainer:
    <FieldDefaults ReadOnly="true" />


    Correct. The existing item #66.

    66. ComboBox Mode has need renamed to QueryMode.



    As far as I can see the ComboBox class does still have the AutoPostBack property. It inherits this property from the Field class.



    Correct. The existing item #71.

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



    Please use the Change event instead.

    There is the item #126.

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

    Corrected to:

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



    Added a new item.

    164. The TextFieldBase's Truncate property has been removed. Please use the EnforceMaxLength one instead.
    It is also false by default. If Truncate is explicitly set up to true, then you should also set EnforceMaxLength to true.




    I don't think Truncate="true" for a FileUploadField can really truncates its text. Could you clarify how you used this property for a FileUploadField?



    Added a new item.

    165. The Image class doesn't have field-related properties anymore like FieldLabel, LabelStyle, LabelWidth, etc.

    You can wrap an Image in a FieldContainer control and set up those properties for the FieldContainer.




    Added a new item.

    166. The StoreBase's AddRecord and InsertRecord method have been removed. Please use the Add and Insert methods.



    I would try to set up ShrinkWrap="Width" for a ComboBox.



    Correct. Added a new item.

    167. The MultiCombo's UpdateSelection method has been removed. Please use the UpdateSelectedItems instead.



    I think you can still use the Ext.Net.Component class.



    Do you mean TabStripItem?

    Added a new item.

    168. The TabStripItem class has been renamed to Tab. Its Title property has been renamed to Text.
    Ok. It's helps a lot:)
    What about Ext.Net.Cell control is it deleted as well as TableLayout #34. ?
  4. #4
    Quote Originally Posted by ViDom View Post
    What about Ext.Net.Cell control is it deleted as well as TableLayout #34. ?
    Yes, correct. Each an item which you add to an Items collection of a Container with a TableLayout will represent a cell.
  5. #5
    Quote Originally Posted by Daniil View Post
    Yes, correct. Each an item which you add to an Items collection of a Container with a TableLayout will represent a cell.
    Could you please add this to breakingchanges as well:)

    This thread can be closed I will make another one and relate it to this if found something else;)

    Thanks @Daniil again:)
  6. #6
    Quote Originally Posted by ViDom View Post
    Could you please add this to breakingchanges as well:)
    Thank you for the suggestion. I have update the item #34. Do you think it is good enough?

    34. "Layout" type controls and its satellites have been removed.
    Use the Layout and LayoutConfig properties of a container.

    This change affects all the following Layout classes and its satellites:

    - <ext:AbsoluteLayout>
    - <ext:Anchor>
    - <ext:AccordionLayout>
    - <ext:AnchorLayout>
    - <ext:BorderLayout>
    - <ext:BoxLayout>
    - <ext:CardLayout>
    - <ext:CenterLayout> <-- see item #73
    - <ext:ColumnLayout>
    - <ext:LayoutColumn>
    - <ext:FitLayout>
    - <ext:FormLayout>
    - <ext:HBoxLayout>
    - <ext:BoxItem>
    - <ext:RowLayout>
    - <ext:LayoutRow>
    - <ext:TableLayout>
    - <ext:Cell>
    - <ext:VBoxLayout>
  7. #7
    Quote Originally Posted by Daniil View Post
    Thank you for the suggestion. I have update the item #34. Do you think it is good enough?

    34. "Layout" type controls and its satellites have been removed.
    Use the Layout and LayoutConfig properties of a container.

    This change affects all the following Layout classes and its satellites:

    - <ext:AbsoluteLayout>
    - <ext:Anchor>
    - <ext:AccordionLayout>
    - <ext:AnchorLayout>
    - <ext:BorderLayout>
    - <ext:BoxLayout>
    - <ext:CardLayout>
    - <ext:CenterLayout> <-- see item #73
    - <ext:ColumnLayout>
    - <ext:LayoutColumn>
    - <ext:FitLayout>
    - <ext:FormLayout>
    - <ext:HBoxLayout>
    - <ext:BoxItem>
    - <ext:RowLayout>
    - <ext:LayoutRow>
    - <ext:TableLayout>
    - <ext:Cell>
    - <ext:VBoxLayout>

    In my opinion it's great:)
    Great job @Daniil :)
  8. #8
    Thank you for the kind words.

Similar Threads

  1. [CLOSED] Migration from version v1 to v2
    By mmmartins in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 22, 2013, 2:41 PM
  2. [CLOSED] Migration From 1.x to 2.1 issues
    By imaa in forum 2.x Legacy Premium Help
    Replies: 9
    Last Post: Jan 21, 2013, 3:51 PM
  3. [CLOSED] Migration from 1.5 to 2
    By IanPearce in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 29, 2012, 12:40 PM
  4. Migration guidelines
    By drgw74 in forum Open Discussions
    Replies: 1
    Last Post: Jul 13, 2010, 4:35 PM
  5. Forum Migration
    By r_honey in forum Open Discussions
    Replies: 4
    Last Post: Jul 07, 2010, 8:00 AM

Tags for this Thread

Posting Permissions