Send more data with the ImageBrowser read/thumbnail...

4 posts, 1 answers
  1. Dekel
    Dekel avatar
    25 posts
    Member since:
    Jan 2015

    Posted 14 May 2015 Link to this post

    Hi,

    I'm trying to implement an imagebrowser and I want to have one controller for several editors with imageBrowser. but I want to use different root in each one.

    how can I make the "path" send a prefix with the file name?

    or how can I send more data with the read request (or any other request the imageBrowser allow)?

    Thanks

  2. Answer
    Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 18 May 2015 Link to this post

    Hello Dekel,

    This functionality is not supported by our server-side implementation out of the box. However, you can pass parameters to the read method, so that it distinguishes between the images:

        .Read(r => r.Action("Read", "ImageBrowser", new { foo = "bar" }))

    Alas, you would need to modify the image browser implementation on the server, so that it takes this parameter into account.

    Regards,
    Alex Gyoshev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Dekel
    Dekel avatar
    25 posts
    Member since:
    Jan 2015

    Posted 18 May 2015 in reply to Alex Gyoshev Link to this post

    Hi,

    I've already tried that with no luck.

    I also looked at the request the the imagebrowser is generating but didn't see my custom parameter :(

     

  5. Dekel
    Dekel avatar
    25 posts
    Member since:
    Jan 2015

    Posted 18 May 2015 in reply to Dekel Link to this post

    Sorry. My mistake. it does work.

    I tried without the r.Action...

     Thanks

Back to Top
UI for ASP.NET MVC is VS 2017 Ready