Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bo Jacobsen 610 posts 2409 karma points
    Aug 12, 2020 @ 14:20
    Bo Jacobsen
    0

    What is the doctypegrideditorsurfacecontroller routing

    Hi all.

    Using Umbraco 8 and wanted to know the routing for DocTypeGridEditorSurfaceController since i wanna be able to call a method inside from AJAX.

    What would this routing be?

    public class TestDocTypeSurfaceController: DocTypeGridEditorSurfaceController
    {
        public ActionResult TestDocType()
        {
            // Do your thing...
            return CurrentPartialView();
        }
    }
    

    Like /Umbraco/DocTypeGridEditor/TestDocType/TestDocType ?

  • Bo Jacobsen 610 posts 2409 karma points
    Aug 13, 2020 @ 09:30
    Bo Jacobsen
    100

    I found out.

    Its simply /umbraco/surface/TestDocTypeSurface/TestDocType as standard Umbraco.

    Kick'in my self in the head now! :D

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies