Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
365
ImageDirectory can not be set to string empty
posted
Cannot set property ImageDirectory to empty string. If I would like to use images for the WebGrid control from the root of my app I have to set ImageDirectory to "" but the control ignores my setting ImageDirectory="" and adds some "default" dir (see View Source when page will come up in the browser). Or, I cannot use httpHandler to load images from the embedded resources , it also requires to set ImageDirectory to string empty -  the WebGrid control adds some "defaullt" ImageDirectory. The problem is the same for all controls (WebTree, WebDateChoores, ...) except ToolBar(!?). In the 6.3 (the ver we migrated from ) everything worked perfectly and the new 8.1 version screws up the whole app
Parents
  • 10880
    posted

    If you want to load your images from the root directory of your application, you wil want to set the grid.DisplayLayout.Images.ImageDirectory to ~/

    The '~' will tell the control to navigate to the root directory.  You could also makes use of other symbols such as '..' for the parent folder depending on your needs.

    In addition to this option you also can also use a web.config redirect to tell all Infragistics controls to look for the images in a specific folder.  In this scenario you can make use of the '~' as well.  Here is a Knowledge Base article that explains how you could modify the web.config:

    http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=6158

Reply Children
No Data