1. #91
    Sencha User Gunmen's Avatar
    Join Date
    Jul 2007
    Posts
    305
    Vote Rating
    0
    Gunmen is on a distinguished road

      0  

    Wink


    @Evant: Still monitoring this thread? I hope so.

    Can you tell me where do I find the most recent version of your example code? In the Ext.Direct Pack or in the first post of this thread?

    Thank you very much.

  2. #92
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,054
    Vote Rating
    659
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    The latest version of mine is in the first post.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #93
    Ext User Dave.Sanders's Avatar
    Join Date
    Mar 2008
    Posts
    131
    Vote Rating
    0
    Dave.Sanders is on a distinguished road

      0  

    Default


    Evan: any more thoughts of Google Coding this router so that we can merge your version and mine and make one stack that we can both update and keep up to date?

    Cheers
    D

  4. #94
    Ext User IHaveRead's Avatar
    Join Date
    Jun 2009
    Posts
    7
    Vote Rating
    0
    IHaveRead is on a distinguished road

      0  

    Default Server side date fix

    Server side date fix


    If anyone is interested i'm sharing my JsonResposeFilter, an IHttpModule which replaces invalid date strings on the server side, thus removing some load from the client.

    Thanks to OP for that great Router.
    Attached Files

  5. #95
    Ext User
    Join Date
    Nov 2009
    Posts
    1
    Vote Rating
    0
    Matt.Posgate is on a distinguished road

      0  

    Default Newbie question

    Newbie question


    Hi, this looks great to me. I'm new to Ext Js though and am struggling to get a Listview to work with this mechanism. Could anybody post an example?

  6. #96
    Ext JS Premium Member amorworx's Avatar
    Join Date
    Jun 2008
    Location
    The Netherlands
    Posts
    70
    Vote Rating
    0
    amorworx is on a distinguished road

      0  

    Default


    @evant

    Found a minor bug in ResultConverter.cs when using Json.NET 3.5r5

    Code:
    using System;
    using System.Collections.Generic;
    using Newtonsoft.Json;
    using Newtonsoft.Json.Linq;
    
    namespace Ext.Direct
    {
        internal class ResultConverter : JsonConverter
        {
    
            public override bool CanConvert(Type objectType)
            {
                //always return true
                return true;
            }
    
            public override object ReadJson(JsonReader reader, Type objectType, JsonSerializer serializer)
            {
                //no custom reading here
                throw new NotImplementedException();
            }
    
            public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
            {
                JContainer o = value as JContainer;
                if (o != null)
                {
                    writer.WriteRawValue(o.ToString(Formatting.None));
                }
                else
                {
                    writer.WriteValue(value);
                }
            }
    
        }
    }
    The ReadJson and WriteJson methods must include "JsonSerializer serializer" as a third parameter
    /Cheers,

    Bert Moorthaemer
    /(bb|[^b]{2})/ that is the question ...

  7. #97
    Ext User cgountanis's Avatar
    Join Date
    Sep 2009
    Location
    WI
    Posts
    41
    Vote Rating
    0
    cgountanis is on a distinguished road

      0  

    Default


    Is this the current .NET recommended method? I was using some code that included DirectHandler.ashx and you could write everything in classes. I tried updating the Ext.Direct.dll from this for debug and now I get 'Ext.Direct.DirectProvider' does not contain a constructor that takes '2' arguments. Can this be explained to me and can you point me to the stable version of the .NET Ext.Direct supported method?

  8. #98
    Ext User cgountanis's Avatar
    Join Date
    Sep 2009
    Location
    WI
    Posts
    41
    Vote Rating
    0
    cgountanis is on a distinguished road

      0  

    Default


    My issue was mixing the DLL from your post up with the application on the 3.0.3 downloads page. The Ext.Direct.Pack.... what is more current should we use that pack as a template or your router example which does not include the same layout. They are quite different and I want to use the more stable method as a base.

    Please let us all know as this is not the first time this question has come up.

  9. #99
    Ext User Dave.Sanders's Avatar
    Join Date
    Mar 2008
    Posts
    131
    Vote Rating
    0
    Dave.Sanders is on a distinguished road

      0  

    Default


    Which exact version are you trying to use? The one that is attached on the first post from evan, the one from the download page, or the one that I posted up later on in the thread with a bunch of additions that I'd like to see in the "official" version?

    D

  10. #100
    Ext User Dave.Sanders's Avatar
    Join Date
    Mar 2008
    Posts
    131
    Vote Rating
    0
    Dave.Sanders is on a distinguished road

      0  

    Default


    Oh, and as far as I know - the version that's in this thread is the latest - I don't know if anyone updated the zips for the example routers, they aren't really maintained the same way the rest of Ext is I don't think. There was talk at some point of putting the Ext.Direct router on Google Code so the community could manage it, but I don't know if that was ever resolved.