[CLOSED] Simple task example in MVC

  1. #1

    [CLOSED] Simple task example in MVC

    Good.

    I'm using the example "simple task", but I want to use in mvc.

    I changed this

    this.RemoteAppend += TasksTree_RemoteAppend;
    By this.

    this.RemoteAppendUrl = "/Mycontroller/RemoteAppend";


    But then the driver would not accept a method with

    
    public void RemoteAppend(object sender, RemoteAppendEventArgs e)
    {
    
    }
    But if, without any parameters

    
    public void RemoteAppend()
    {
    
    }
    As I have to do?

    Thank you very much.
    Last edited by Daniil; May 06, 2014 at 6:52 AM. Reason: [CLOSED]
  2. #2
    Please see the following sample
    https://examples2.ext.net/#/TreePane..._with_Service/

    RemoteAppend controller action can look like
    public JsonResult RemoteAppend(string parentId, string text)
    {
      return new JsonResult(new { actionSuccess = true, response = new { id = "newId", attributes = new { text = text + "_new" } } });
    }
  3. #3
    Thank you very much. Works OK

Similar Threads

  1. Replies: 2
    Last Post: Feb 18, 2014, 4:33 AM
  2. [CLOSED] Task Manager
    By Oliver in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Apr 12, 2013, 4:36 AM
  3. [CLOSED] Task error
    By majestic in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Oct 27, 2010, 7:52 AM
  4. task
    By wdjlover in forum 1.x Help
    Replies: 8
    Last Post: Jun 17, 2009, 11:56 PM

Posting Permissions