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. Advertisements

  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. Advertisements

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. Jurjen de Groot

    IE Webcontrols, different images for TreeView

    Jurjen de Groot, Jul 8, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    446
    Yan-Hong Huang[MSFT]
    Jul 9, 2003
  2. =?Utf-8?B?VHltYm93?=
    Replies:
    2
    Views:
    25,245
    =?Utf-8?B?VHltYm93?=
    Jan 10, 2006
  3. abargaddon
    Replies:
    0
    Views:
    1,253
    abargaddon
    Jan 17, 2008
  4. Per Salmi

    TreeView not rendering nodes? Cacheing of a TreeView

    Per Salmi, Oct 15, 2003, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    665
    Steve Drake
    Oct 15, 2003
  5. Mark

    Preload TreeView images

    Mark, Feb 13, 2004, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    298
    Teemu Keiski
    Feb 14, 2004
  6. Simon Gammon

    Treeview missing images

    Simon Gammon, Dec 19, 2004, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    203
    Simon Gammon
    Dec 19, 2004
  7. Ionutz
    Replies:
    2
    Views:
    817
    Ionutz
    Oct 23, 2005
  8. stepkurt

    Microsoft Treeview vs System Treeview

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