PDA

View Full Version : [CLOSED] Things changed or removed between 1.3 and 2.0 and not found in Changelog



feanor91
Apr 18, 2012, 8:17 AM
Hello in this thread, I will list all thing I found in my 1.3 code that I upgrade to 2.0 beta and I did not find in the changelog.

1.3
NumericField allowNegative has disapeared


AllowNegative="False"

2.0


MinValue="0"


1.3
Combobox ListClass disapeared
2.0
Use ListConfig


<ext:ComboBox runat="server">
<ListConfig runat="server" Cls="my-list" />
</ext:ComboBox>

1.3
Store RestFull attribute
2.0
?

1.3
DesktopWindow disapeared
2.0
Change to Window (to confirm)

1.3
Column Editable attribute disapeared
2.0
?

1.3
DesktopWindow InitCenter disapeared
2.0
?

1.3
in this code :


<ext:Window
Title='Dashboard'
runat="server"
AutoDataBind="true"
Modal="false"
ID="wndDashboard"
Maximized="true"
TitleCollapse="true"
Hidden="false" Collapsible="True" MinWidth="800px" MinHeight="600px">
<AutoLoad Url="Dashboard.aspx" Mode="IFrame" PassParentSize="True" ShowMask="True" />
</ext:Window>

<autoload...> element is not allowed
2.0
?

1.3
Column Editable attribute has disapeared
2.0
?

1.3
Column AutoExpandMin attribute has disapeared
2.0
?

1.3
Column AutoExpandMax attribute has disapeared
2.0
?

1.3
In this code :


<Plugins>
<ext:RowEditing ID="RowEditingOSA" runat="server" SaveText="Update" ClicksToEdit="2" >
<DirectEvents>
<BeforeEdit OnEvent="ValidateEditRight">
<ExtraParams>
<ext:Parameter Name="data" Value="#{grdOSA}.store.getAt(rowIndex).data" Mode="raw" Encode="true" ></ext:Parameter>
</ExtraParams>
</BeforeEdit>
<AfterEdit OnEvent="AddData">
<ExtraParams>
<ext:Parameter Name="data" Value="r.data" Mode="raw" Encode="true" ></ext:Parameter>
</ExtraParams>
</AfterEdit>
</DirectEvents>
<Listeners>
<PreEdit Handler="#{grdOSA}.setDisabled(false);"/>
<CancelEdit Fn="cancelAddOSAData" />
</Listeners>
</ext:RowEditing>
</Plugins>

AfterEdit disapeared
2.0
change to ValidateEdit (to confirm)

1.3
gridPanel


<LoadMask ShowMask="true" />

2.0
?

1.3
Grid Gouping HideGroupedColumn disapeared
2.0
?

1.3
Grid Gouping GroupTextTpl disapeared
2.0
?

1.3
RowEditor SaveText="" disapeared
2.0
?

CODE BEHIND :

1.3

If Ext.Net.X.IsIE Then
2.0
IsIE is not a member of Ext.Net.X


1.3

Dim ColumnModel As Ext.Net.ColumnModel
2.0
Type not defined

1.3

grd.ColumnModel.Columns(7).Editor.Editor.Disabled= false
2.0
Editor is not a member of Ext.Net.EditorCollection

1.3

combobox.SelectedIndex = i
2.0
SelectIndex is not a mamber of Ext.Net.ComboBox

1.3

Dim RwEdit As RowEditor
2.0
RowEditor undefined.

For now, I think I have noticed all the problem I encounter. Anout Editor in code behind, I think it is due too he fact it was not anymor a roweditor but a rowediting, I will search in that direction. For the rest, I have no idea.

...To be continued

Daniil
Apr 18, 2012, 12:31 PM
Hi,



1.3
Store RestFull attribute
2.0
?


Please use RestProxy.
http://examples2.ext.net/#/GridPanel/Restful/Overview/

Daniil
Apr 18, 2012, 12:56 PM
1.3
DesktopWindow disapeared
2.0
Change to Window (to confirm)


Confirmed.

Some more details.

In Ext.NET v1.x you should set up DesktopModule WindowID.

DesktopModule WindowID has been removed in Ext.NET v2. Please use the inner Window property.

Example

<ext:DesktopModule ModuleID="Hello" AutoRun="true">
<Window>
<ext:Window
runat="server"
Title="Greeting">
<Content>
Welcome to Ext.Net desktop!
</Content>
</ext:Window>
</Window>
</ext:DesktopModule>

Also you might be interested to investigate this example.
http://examples2.ext.net/#/Desktop/Introduction/Overview/

Daniil
Apr 18, 2012, 1:29 PM
1.3
Column Editable attribute disapeared
2.0
?


Yes, it has been removed.

Now you can use BeforeEdit listener of the CellEditing plugin. Returning false prevents editing.

Example

<%@ Page Language="C#" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
if (!X.IsAjaxRequest)
{
Store store = this.GridPanel1.GetStore();
store.DataSource = new object[]
{
new object[] { "test1" },
new object[] { "test2" },
new object[] { "test3" }
};
store.DataBind();
}
}
</script>

<!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 runat="server">
<title>Ext.NET v2 Example</title>
</head>
<body>
<ext:ResourceManager runat="server" />
<ext:GridPanel ID="GridPanel1" runat="server" AutoHeight="true">
<Store>
<ext:Store runat="server">
<Model>
<ext:Model runat="server">
<Fields>
<ext:ModelField Name="test" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<ColumnModel runat="server">
<Columns>
<ext:Column runat="server" Text="Test" DataIndex="test">
<CustomConfig>
<ext:ConfigItem Name="editable" Value="false" Mode="Raw" />
</CustomConfig>
<Editor>
<ext:TextField runat="server" />
</Editor>
</ext:Column>
</Columns>
</ColumnModel>
<Plugins>
<ext:CellEditing runat="server">
<Listeners>
<BeforeEdit Handler="return e.column.editable;" />
</Listeners>
</ext:CellEditing>
</Plugins>
</ext:GridPanel>

<ext:Button runat="server" Text="Enable editing">
<Listeners>
<Click Handler="#{GridPanel1}.columns[0].editable = true;" />
</Listeners>
</ext:Button>
</body>
</html>

feanor91
Apr 18, 2012, 1:48 PM
Yes, it has been removed.

Now you can use BeforeEdit listener of the CellEditing plugin. Returning false prevents editing.



Or have no editor in the collumn?

I explain : i have 11 Grid with 80 collumns in all, so implementing your method will take a little time. For now, only editable cells have an editor configured.

Daniil
Apr 18, 2012, 2:05 PM
Or have no editor in the collumn?

I explain : i have 11 Grid with 80 collumns in all, so implementing your method will take a little time. For now, only editable cells have an editor configured.

Yes, if some Column has no Editor, this Column is not editable.

feanor91
Apr 18, 2012, 2:16 PM
Perfecto :)

feanor91
Apr 18, 2012, 2:20 PM
Hi,



Please use RestProxy.
http://examples2.ext.net/#/GridPanel/Restful/Overview/

Please could you explain what is the Restfull or RestProxy goal? By the way when interacting with th grid in the demo, it conduct to a HTML Error 405

Daniil
Apr 18, 2012, 2:48 PM
1.3
DesktopWindow InitCenter disapeared
2.0
?


This property was redundant and has been removed.

If you need to center an initially maximized Window after restoring you can set up the following Restore listener.

Example

<ext:Window runat="server" Maximized="true" Maximizable="true">
<Listeners>
<Restore Handler="this.center();" Single="true" />
</Listeners>
</ext:Window>

We will also consider a possibility to center it by default.

Daniil
Apr 18, 2012, 7:54 PM
1.3
in this code :


<ext:Window
Title='Dashboard'
runat="server"
AutoDataBind="true"
Modal="false"
ID="wndDashboard"
Maximized="true"
TitleCollapse="true"
Hidden="false" Collapsible="True" MinWidth="800px" MinHeight="600px">
<AutoLoad Url="Dashboard.aspx" Mode="IFrame" PassParentSize="True" ShowMask="True" />
</ext:Window>

<autoload...> element is not allowed
2.0
?


Please see the item #71:
http://examples2.ext.net/#/Getting_Started/Release_Documents/CHANGELOG/

Daniil
Apr 18, 2012, 8:00 PM
1.3
Column AutoExpandMin attribute has disapeared
2.0
?

1.3
Column AutoExpandMax attribute has disapeared
2.0
?


They have been removed.

Please use MaxWidth and MinWidth of Column.

Daniil
Apr 18, 2012, 8:03 PM
1.3
In this code :


<Plugins>
<ext:RowEditing ID="RowEditingOSA" runat="server" SaveText="Update" ClicksToEdit="2" >
<DirectEvents>
<BeforeEdit OnEvent="ValidateEditRight">
<ExtraParams>
<ext:Parameter Name="data" Value="#{grdOSA}.store.getAt(rowIndex).data" Mode="raw" Encode="true" ></ext:Parameter>
</ExtraParams>
</BeforeEdit>
<AfterEdit OnEvent="AddData">
<ExtraParams>
<ext:Parameter Name="data" Value="r.data" Mode="raw" Encode="true" ></ext:Parameter>
</ExtraParams>
</AfterEdit>
</DirectEvents>
<Listeners>
<PreEdit Handler="#{grdOSA}.setDisabled(false);"/>
<CancelEdit Fn="cancelAddOSAData" />
</Listeners>
</ext:RowEditing>
</Plugins>

AfterEdit disapeared
2.0
change to ValidateEdit (to confirm)


The AfterEdit event has been renamed to Edit.

Daniil
Apr 18, 2012, 8:10 PM
1.3
gridPanel


<LoadMask ShowMask="true" />

2.0
?


Please use the GridView LoadMask. Defaults to true.

Example

<ext:GridPanel runat="server">
...
<View>
<ext:GridView runat="server" LoadMask="false" />
</View>
</ext:GridPanel>

Daniil
Apr 18, 2012, 8:13 PM
1.3
Grid Gouping HideGroupedColumn disapeared
2.0
?




1.3
Grid Gouping GroupTextTpl disapeared
2.0
?


Please see the item #23.
http://examples2.ext.net/#/Getting_Started/Release_Documents/CHANGELOG/

Daniil
Apr 18, 2012, 8:16 PM
1.3
RowEditor SaveText="" disapeared
2.0
?


Please use the RowEditing plugin and its SaveBtnText property.

Example

<ext:GridPanel runat="server">
...
<Plugins>
<ext:RowEditing runat="server" SaveBtnText="My Save Txt" />
</Plugins>
</ext:GridPanel>

Daniil
Apr 18, 2012, 8:23 PM
1.3

If Ext.Net.X.IsIE Then
2.0
IsIE is not a member of Ext.Net.X


Please use:

Ext.Net.RequestManager.IsIE

Daniil
Apr 18, 2012, 8:23 PM
1.3

Dim ColumnModel As Ext.Net.ColumnModel
2.0
Type not defined


Please use the GridHeaderContainer class instead.

Daniil
Apr 18, 2012, 8:26 PM
1.3

grd.ColumnModel.Columns(7).Editor.Editor.Disabled= false
2.0
Editor is not a member of Ext.Net.EditorCollection


Please use:

C#

GridPanel1.ColumnModel.Columns[0].Editor[0]
or

GridPanel1.ColumnModel.Columns[0].Editor.Primary

VB

GridPanel1.ColumnModel.Columns(0).Editor(0)
or

GridPanel1.ColumnModel.Columns(0).Editor.Primary

Daniil
Apr 18, 2012, 8:29 PM
1.3

combobox.SelectedIndex = i
2.0
SelectIndex is not a mamber of Ext.Net.ComboBox


It has been removed. Please use the SelectedItems.

Example

<ext:ComboBox runat="server">
<SelectedItems>
<ext:ListItem Index="0" />
</SelectedItems>
</ext:ComboBox>

Daniil
Apr 18, 2012, 8:30 PM
1.3

Dim RwEdit As RowEditor
2.0
RowEditor undefined.


Please use the RowEditing plugin instead. It should be added into the GridPanel Plugins.

Daniil
Apr 18, 2012, 8:34 PM
Please could you explain what is the Restfull or RestProxy goal? By the way when interacting with th grid in the demo, it conduct to a HTML Error 405

Generally, it is the reason I've requested earlier to post a new thread for every issue. The reason is the fact that any issue can produce any amount of related questions. You can see how big the current thread. It's difficult to find a required info here and support it.

So, please start a new forum thread for this issue.

feanor91
Apr 19, 2012, 9:41 AM
Thanks a lot

No problem on that point. Meanwhile we still do some search with forum tools to find stuff to work on.

For now, I'm fighting with Desktop. So much things have changed that I have nearly to build from scratch all my application...2 months works in trashcan. I hope that V2 will solve a lot of problem I have with Charts and open new solution for the construction of my main data grid. But it is another story I have to deal with...Let's work now.

Daniil
Apr 19, 2012, 10:42 AM
Yes, there were many changes in Desktop. At the same time Desktop API was incredibly extended and improved.

Please clarify can we mark the thread as closed?

feanor91
Apr 19, 2012, 10:52 AM
Yes you can.

By the way, I wait for answer in the 2 posts I made about desktop, and yes Desktop seems to be more powerfull, but I think I will have a lot of questions about that. Don't worry, I will open new thread for each :o).

And just for information (sorry, I'm an hevealy desktop user, because I found it's a bright new way to develop Web 2.0 applications for enterprises) :
I think your desktop exemple will need to be enhanced to see all we could do with a desktop or desktop functionality needs to be documented. As, for example, how to render desktop like old one with black toolbar, how to change Icon in start button (things easy with old one)...But now, I just want to have mys start menu working.

Daniil
Apr 19, 2012, 10:56 AM
Agreed, some Desktop tutorial would be helpful for all.

We hope to find time to create it.