Image doesn't show up.

4 posts, 0 answers
  1. Nick
    Nick avatar
    19 posts
    Member since:
    Oct 2011

    Posted 31 Jul 2012 Link to this post

    Hi, I'm pulling my hair out because I cannot get any image to actually display in the image editor.  I have verified that the handlers are in the web.config and that the link to the image is valid (in Firebug).  Still nothing.  I'm not sure if it's connected, but opening up an image from RadFileEditor brings up a blank window as well.

    <telerik:RadFileExplorer ID="RadFileExplorer1" runat="server"
        EnableCreateNewFolder="false" 
        VisibleControls="Toolbar, ContextMenus, FileList"
        Configuration-DeletePaths="~/Images/Advertising"
        Configuration-EnableAsyncUpload="true"
        Configuration-MaxUploadFileSize="9999999"
        Configuration-UploadPaths="~/Images/Advertising"
        Configuration-ViewPaths="~/Images/Advertising" ClientIDMode="Static">
                            </telerik:RadFileExplorer>

    Web.Config
    <system.webServer>
        <validation validateIntegratedModeConfiguration="false" />
        <modules runAllManagedModulesForAllRequests="true">
          <remove name="UrlRoutingModule" />
          <add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        </modules>
           
        <handlers>
          <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
          <add name="UrlRoutingHandler" preCondition="integratedMode" verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
          <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" />
          <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />
          <add name="ChartImage_axd" verb="*" preCondition="integratedMode" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" />
        </handlers>
      </system.webServer>
  2. Vessy
    Admin
    Vessy avatar
    1382 posts

    Posted 02 Aug 2012 Link to this post

    Hi Nick,

    I am not quite sure if I understand your scenario correctly - are you using the RadImageEditor in a collaboration with RadFileExplorer, like it is shown in this demo? And if that is not the case, could you please provide more detailed information on the specific scenario?

    About your second question, I review the code bellow and noticed that the ClientIdMode property is set to static. By design RadFileExplorer (and RadControls at all) supports only ClientIdMode="Auto" and it is highly recommended to configure it this way in order to generate correct client IDs.

    Greetings,
    Veselina
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Nick
    Nick avatar
    19 posts
    Member since:
    Oct 2011

    Posted 02 Aug 2012 Link to this post

    Veselina,

    Yes, I am trying to get it to work somewhat like the demo-- except I don't want a database involved for this.  Just image management and editing.  Unfortunately, the demo doesn't work either.  Also, the ClientIdMode property makes no difference.  I removed it and nothing changed.

    For example, I created a new, blank page and only put a RadFileExplorer on it.  The images show up in the directory list, but double-clicking them to open them in a RadWindow shows a blank window.

    The code can't get much simpler than this:

    <telerik:RadFileExplorer ID="RadFileExplorer1" runat="server" Width="100%"
        EnableCreateNewFolder="false" 
        VisibleControls="Toolbar, ContextMenus, FileList"
        Configuration-DeletePaths="~/Images/Advertising"
        Configuration-EnableAsyncUpload="true"
        Configuration-MaxUploadFileSize="9999999"
        Configuration-UploadPaths="~/Images/Advertising"
        Configuration-ViewPaths="~/Images/Advertising">
    </telerik:RadFileExplorer>


    Strangely enough, this works fine on another site that I am working on.  What can cause this?  Is it a url routing issue or??

  5. Nick
    Nick avatar
    19 posts
    Member since:
    Oct 2011

    Posted 02 Aug 2012 Link to this post

    Well.  This is embarrassing.  The reason the images wouldn't show up is because I am pulling from a folder called Advertising.  That's all well and good, but apparently since I have adblock installed, it flags that word and stops them from loading-- even in RadControls such as RadWindow, RadImageEditor, etc.   I disabled adblock and they immediately started to show up.  So, long story short... That's 6 hours of my life that I won't get back.  Hopefully this might help some poor soul in the future.
Back to Top