ie treeview images problem ...

Discussion in 'ASP .Net' started by Andrew, Nov 3, 2004.

  1. Andrew

    Andrew Guest

    hi,
    i try to use the i.e. treeview download from asp.net , but i have got
    a very huge problem ...
    i've some nodes that present text on two lines and so the size of the
    node is higher that the default 20px .... the result is that i have space
    between images of my tree ... for example between the t.gif images....
    i try to replace the t.gif with an image of 30 px height but the result
    is a stretched image ....
    what can i do ??? suggestion ? ideas ?
    thanks much
    andrew
    Andrew, Nov 3, 2004
    #1
    1. Advertising

  2. Andrew

    Andrew Guest

    i found a solution ...
    i need to modify the size of the element in the file treeview.htc ....
    like this

    //junctionNode = element.document.createElement("<IMG
    align='absmiddle' border='0' class='icon' name='junction'>");
    junctionNode = element.document.createElement("<IMG
    align='absmiddle' border='0' height='28px' name='junction'>");
    junctionNode.src = imageSrc;
    junctionNode.height = 28;

    then i've modified the iamges in the treeimages folder ...
    thanks
    andrew
    Andrew, Nov 3, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?VHltYm93?=
    Replies:
    2
    Views:
    24,411
    =?Utf-8?B?VHltYm93?=
    Jan 10, 2006
  2. abargaddon
    Replies:
    0
    Views:
    1,035
    abargaddon
    Jan 17, 2008
  3. Per Salmi

    TreeView not rendering nodes? Cacheing of a TreeView

    Per Salmi, Oct 15, 2003, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    440
    Steve Drake
    Oct 15, 2003
  4. Ionutz
    Replies:
    2
    Views:
    516
    Ionutz
    Oct 23, 2005
  5. stepkurt

    Microsoft Treeview vs System Treeview

    stepkurt, Aug 29, 2007, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    360
    Teemu Keiski
    Sep 2, 2007
Loading...

Share This Page