Originally Posted by
Vladimir
Yes, branch 2.1 is quite stable and will be released soon
Can you describe the issues? We will be glad to fix it asap
Okay I expected this answer so I am working on the migration to 2.1. Here are the issues I am currently working on:
1. Model datetime format
Using Ext.net 2.0 i used M$ as dateformat in my model for date field. In 2.1 are these send back as "\date\" format. This resulted in difficulties to process at the webservice.
Using
yyyy-MM-dd\\THH:mm:ss
as dateformat solved the issue. Looks like:
http://forums.ext.net/showthread.php...c-Date-Problem
During the debugging I saw the advantages of ISO 8601. It offers an ability to eliminate timezone issues by using an UTC time in the format 2011-01-01T00:00:00.0000000Z (
.ToString("O")
). For now I could not find an easy way to configure the model to use this format (especially the conversion to UTC).
2. Partial view is not completely destroyed
I have got a partial view in a tabpanel. When closing the tab the content is not destroyed when using
Ext.Net.RenderMode.RenderTo
during it's creation. However when using
Ext.Net.RenderMode.Auto
it works.
3. RESTProxy, JSONreader /writer and root setting
I have trouble reading and writing JSON when setting Root property in a REST proxy. When I removed the data level in store and JSON it works. When removing the data layer in JSON it looks as-well. So it looks like if the Root setting is ignored.
My store simplified:
.Store(store => store.Add(Html.X().Store()
.PageSize(100)
.ID("testStore")
.Proxy(proxy => proxy.Add(
Html.X().RestProxy()
.Url(Url.Action("API", "api"))
))
.Reader(reader =>
Html.X().JsonReader()
.IDProperty("row_id")
.Root("data")
.SuccessProperty("success")
.MessageProperty("message")
)
.Model(model => model.Add(Html.X().Model()
.Fields(fields =>
{
fields.Add(Html.X().ModelField().Name("test"));
})
))
))