Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > General Discussions > Sending complex object in window AjaxRequest

Not answered Sending complex object in window AjaxRequest

Feed from this thread
  • Kapil avatar

    Posted on Jun 22, 2012 (permalink)

    Hello,

    I want to refresh the content of window. In the documentation it shows to send data using the AjaxRequest call but how can you send complex objects?

    var model = { 
                                a: "EditPopupForm"
                                b: $('.quoteId').html(), 
                                c: data.CustomerId, 
                                d: 0, 
                                e: "customer",  
                                f: null
                };
      
      
    var window = $('#EditWindow).data('tWindow'); 
       
      
    window.ajaxRequest('/Edit/Editor', { model: model });

    and this is my controller:
    public ActionResult CustomerEditor(ComplextObject model)
            {
                .
                .
                .
             }

    when I recieve the object all the values are null. Is it possible to send complex object with the AjaxRequest as a parameter???

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > General Discussions > Sending complex object in window AjaxRequest