1. #331
    Sencha User
    Join Date
    Jan 2008
    Location
    Toronto, Canada
    Posts
    480
    Vote Rating
    4
    elishnevsky is on a distinguished road

      0  

    Default


    I've been slowly working on updating it for Ext JS 4.x and ASP.NET MVC 3. I made a lot of changes to how you configure and use the library. For example, by default no configuration is required at all, unless you want to customize something.

    I've been pretty busy at my real work lately, but I will try to release something soon. Maybe within a week or two. Stand by

  2. #332
    Sencha User
    Join Date
    Mar 2011
    Location
    Betelgeuse VII
    Posts
    86
    Vote Rating
    3
    fordprefect is on a distinguished road

      0  

    Thumbs up


    Just came across this today - looks amazing! Definitely looking forward to the update!

  3. #333
    Sencha User
    Join Date
    Aug 2009
    Posts
    12
    Vote Rating
    0
    gilcachaca is on a distinguished road

      0  

    Default


    Great news.Can not wait forthis update.

  4. #334
    Sencha User
    Join Date
    Jan 2008
    Location
    Toronto, Canada
    Posts
    480
    Vote Rating
    4
    elishnevsky is on a distinguished road

      0  

    Default


    Alright, guys. Just uploaded the new version of the library. It has been rewritten to make it easy to start a new project with it or to convert existing one from using regular AJAX requests to Ext Direct.

    No backward compatibility with earlier versions!

    Go to the first post for more info and all the links.

    Make sure to read the documentation! Especially the Quick Start section if you're just starting.

    Let me know what you think. Questions are welcome.

  5. #335
    Sencha User
    Join Date
    Nov 2010
    Posts
    2
    Vote Rating
    0
    ovidiu is on a distinguished road

      0  

    Default Changing Direct JSON serialization

    Changing Direct JSON serialization


    Hi all!
    I know that by default Direct use Newtonsoft library for JSON serialization. I wonder if there is any posibility to replace the serialization implementation with a custom one? (e.g. with DataContractJsonSerializer from Microsft)

    Thanks,
    Ovidiu

  6. #336
    Sencha User
    Join Date
    Jan 2008
    Location
    Toronto, Canada
    Posts
    480
    Vote Rating
    4
    elishnevsky is on a distinguished road

      0  

    Default


    Quote Originally Posted by ovidiu View Post
    Hi all!
    I know that by default Direct use Newtonsoft library for JSON serialization. I wonder if there is any posibility to replace the serialization implementation with a custom one? (e.g. with DataContractJsonSerializer from Microsft)

    Thanks,
    Ovidiu
    No, and there's currently no plan to add this feature either.

  7. #337
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    5
    Vote Rating
    0
    rajaJs is on a distinguished road

      0  

    Default DataRow as a JSON result

    DataRow as a JSON result


    Thank you for this well written Ext.Direct. The demo is a great too. I am able to return DataTable as a "data" for Json result to bind it to a ExtJs Grid Panel.
    However, I had to use some generic object (in my case a DataRow) to bind to Ext JS Form Panel. When I send the JsonResult with the DataRow as data, the form panel is not binding. Here is the code snippet for the LoadData,

    Code:
      [ActionName("GetData")] // Action alias
            public ActionResult LoadData(int rowId)
            {
                DataRow dr = GridData.GetDataRow("Employee", rowId);
            return Json(new
                {
                    success = true,
                    data = dr
                });
            }
    I tried sending the data as Json string (by converting DataRow to Json string), no luck either, see the code below,

    Code:
      [ActionName("GetData")] // Action alias
            public ActionResult LoadData(int rowId)
            {
                DataRow dr = GridData.GetDataRow("Employee", rowId);
            return Json(new
                {
                    success = true,
                    data = GetJson(dr)
                });
            }
    
    public string GetJson(DataRow r)
            {
                int index = 0;
                StringBuilder json = new StringBuilder();
                foreach (DataColumn item in r.Table.Columns)
                {
                    json.Append(String.Format("\"{0}\" : \"{1}\"", item.ColumnName, r[item.ColumnName].ToString().Replace("\"", "\\\"")));
                    if (index < r.Table.Columns.Count - 1)
                    {
                        json.Append(", ");
                    }
                    index++;
                }
                return "{" + json.ToString() + "}";
            }
    Note: If I send data as any concrete POCO object to a ExtJs Form Panel it binds and shows data as expected. It is just the generic dynamic object that I am sending is not binding to ExtJs Form. I am sure I am missing something here to make it to work.

    I really appreciate any help to achieve this. THANKS!!!

  8. #338
    Touch Premium Member
    Join Date
    Nov 2011
    Posts
    124
    Vote Rating
    0
    JavascriptParrot is on a distinguished road

      0  

    Default


    I'm give a try to implement Ext.Direct but I'm stuck at:

    PHP Code:
    GET http://localhost:54323/directapi 404 (not found) 
    The example works fine, compare the configs but everything is the same.
    Do I forget something or what I'm doing wrong?

    Thanks!

  9. #339
    Ext JS Premium Member veenvliet.morion's Avatar
    Join Date
    Oct 2009
    Location
    Netherlands
    Posts
    24
    Vote Rating
    0
    veenvliet.morion is on a distinguished road

      0  

    Default


    Does this work?
    GET http://localhost:54323/Direct/Api

    Ext.Direct for ASP.Net MVC uses the Router mechanism MVC uses. (kinda ).
    Just check the example with Firebug or Webkit Dev tools to see what url is used to get the direct api.
    Good luck!



  10. #340
    Touch Premium Member
    Join Date
    Nov 2011
    Posts
    124
    Vote Rating
    0
    JavascriptParrot is on a distinguished road

      0  

    Default


    Nope doesn't work, the example uses
    Code:
    <scripttype="text/javascript"src="/directapi"></script>
    
    I think a need some

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."