How to call a WebMethod in KendoUI Editor Web

2 posts, 0 answers
  1. Santosh
    Santosh avatar
    3 posts
    Member since:
    Nov 2012

    Posted 30 Jul 2015 Link to this post


    I am trying to implement ImageBrowser feature of editor of KendoUI web but not able to make a webmethod call. Since I found sample code for MVC implementation and taken reference  of the same but unfortunately not working for me. Below is my code.


     <textarea id="editor" rows="10" cols="15" style="height:200px">Test</textarea>



      $(document).ready(function () {
                    imageBrowser: {
                        transport: {
                            read: {
                                type: "POST",
                                contentType: "application/json; charset=utf-8",
                                url: "ManageNotes.aspx/Read",
                                dataType: "json"
                            //destroy: {
                            //    url: "http://localhost/editor/service/ImageBrowser/Destroy",
                            //    type: "POST",
                            //    dataType: "json",
                            //    contentType: "application/json"
                            create: {
                                url: "ManageNotes.aspx/Create",
                                type: "POST",
                                dataType: "json",
                                contentType: "application/json"
                            //thumbnailUrl: "http://localhost/editor/service/ImageBrowser/Thumbnail",
                            uploadUrl: {
                                url: "ManageNotes.aspx/Upload",
                                //data: "{'type':''}",
                                type: "POST",
                                dataType: "json",
                                contentType: "application/json"
                            imageUrl: "ManageNotes.aspx/Image?path={0}"


           // [ScriptMethod(UseHttpGet = true, ResponseFormat = ResponseFormat.Json)]
            public static void Read(string path)

    Attaching same sample code...  Is there anything I'm missing?





  2. Alexander Popov
    Alexander Popov avatar
    1436 posts

    Posted 03 Aug 2015 Link to this post

    Hello Santosh,

    I am afraid that we do not have an example of WebMethods server-side solution for the Editor's ImageBrowser, as we do not  support for that technology out of the box. I would however, recommend checking the this article, which might be of use.

    Alexander Popov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top