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
450
Show Image only in Explorer Bar
posted

I ran into this issue with a current project I was working on.

We wanted to use the WebExplorerBar but only wanted it to show Images, no text.

Everything we tried usually ended up with the headings of the explorer bar showing the image and default text of "Infragistics.Web.UI.Framework.Data.DataSetNode".

The work around we found and Infragistics has agreed with, is to create a new column in your datatable and leaving it blank.  Set the TextField to this new column.  This now shows only the image we want without any text.

Parents
No Data
Reply
  • 15979
    posted

    Hello mts176,

    I have created a simple example that includes “WebExplorerBar” control with the following markup:

    <ig:WebExplorerBar ID="WebExplorerBar1" runat="server" Width="250px"          GroupContentsHeight="">

    <Groups>

    <ig:ExplorerBarGroup GroupContentsHeight="" ImageUrl="~/ig_res/Default/images/addnewrow_image.gif">

    <Items>

      <ig:ExplorerBarItem ImageUrl="~/ig_res/Default/images/addnewrow_image.gif" Text="">

      </ig:ExplorerBarItem>

      <ig:ExplorerBarItem ImageUrl="~/ig_res/Default/images/addnewrow_image.gif">

      </ig:ExplorerBarItem>

      <ig:ExplorerBarItem ImageUrl="~/ig_res/Default/images/addnewrow_image.gif">

      </ig:ExplorerBarItem>

    </Items>

    </ig:ExplorerBarGroup>

    </Groups>

    </ig:WebExplorerBar>

     

    The text property of the group and items are leaved blank and image URL is specified.

    When “WebExplorerBar” is loaded only the images are shown for the groups and items and no default text is displayed.

    This is true when text property is not specified and if the text property is set as empty string.

    You approach is possible solution for this behavior too. When text property is set to empty field in the Data Source, the text of the item is assigned to it and nothing is displayed.

    Let me know if you need further information about this question.

Children