External filepath given in ClientRowTemplate

2 posts, 0 answers
  1. Rao
    Rao avatar
    2 posts
    Member since:
    May 2013

    Posted 23 Jul 2013 Link to this post

    Hi,

      I am using Kendo UI-  Grid  in my screen, but unfortunately I had some issue with it.

    In my Kendo().Grid , I am using the RowTemplate. It have a property  called ClientRowTemplate, on that  , we are using below line of code to show an image.

    “ "<img src='" + Url.Content("~/Content/Images/") +"#:data.ImageFileName#' alt='#: “data.ImageFileName #' style =width:50px; />" .

     But  I want to give another path like Url.Content("D:\Images\1")   , but it is not taking the path. Images were not shown  from these path.Why is it so?

  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 24 Jul 2013 Link to this post

    Hi Rao,

     
    Please note that Url.Content method is not directly related to KendoUI as it's build-in ASP.NET MVC method. I would suggest to check the MVC documentation and ask for support at ASP.NET MVC forums or StackOverflow.

    Kind Regards,
    Vladimir Iliev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
Back to Top