Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Treeview image

Reply
Thread Tools

Treeview image

 
 
enak
Guest
Posts: n/a
 
      10-06-2003
I have a treeview on an aspx that I populate from a
database. Each node has one of two images that I assign
depending on the value of a field in the datareader. The
images are a Check or an X and they are .bmp.

When the image is displayed it is too big. How can I set
the size in the image tag since I do not build the tree at
design time?

Thanks
enak
 
Reply With Quote
 
 
 
 
Jeffrey Tan[MSFT]
Guest
Posts: n/a
 
      10-07-2003

Hi,

Is your TreeView web control downloaded and installed from Microsoft web?
And is its reference microsoft.web.ui.webcontrols.treeview?

I think may be you can use some image tools to adjust the size of the image
before use external.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| Content-Class: urn:content-classes:message
| From: "enak" <(E-Mail Removed)>
| Sender: "enak" <(E-Mail Removed)>
| Subject: Treeview image
| Date: Mon, 6 Oct 2003 12:07:08 -0700
| Lines: 11
| Message-ID: <064c01c38c3d$0a0613d0$(E-Mail Removed)>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcOMPQoGdmB5TORVQ1KSkrFBna1Qug==
| Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontro ls
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.aspnet.webcontro ls:15163
| NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontro ls
|
| I have a treeview on an aspx that I populate from a
| database. Each node has one of two images that I assign
| depending on the value of a field in the datareader. The
| images are a Check or an X and they are .bmp.
|
| When the image is displayed it is too big. How can I set
| the size in the image tag since I do not build the tree at
| design time?
|
| Thanks
| enak
|

 
Reply With Quote
 
 
 
 
enak
Guest
Posts: n/a
 
      10-07-2003
Yes, I am using the Microsoft control. I have used
Photoshop to make the image smaller but the control still
displays the image at the same large size. Also, I make
the image background transparent but it still shows as
white.

Any suggestions?

Thanks for your response.

enak

>-----Original Message-----
>
>Hi,
>
>Is your TreeView web control downloaded and installed

from Microsoft web?
>And is its reference

microsoft.web.ui.webcontrols.treeview?
>
>I think may be you can use some image tools to adjust the

size of the image
>before use external.
>
>Best regards,
>Jeffrey Tan
>Microsoft Online Partner Support
>Get Secure! - www.microsoft.com/security
>This posting is provided "as is" with no warranties and

confers no rights.
>
>--------------------
>| Content-Class: urn:content-classes:message
>| From: "enak" <(E-Mail Removed)>
>| Sender: "enak" <(E-Mail Removed)>
>| Subject: Treeview image
>| Date: Mon, 6 Oct 2003 12:07:08 -0700
>| Lines: 11
>| Message-ID: <064c01c38c3d$0a0613d0$(E-Mail Removed)>
>| MIME-Version: 1.0
>| Content-Type: text/plain;
>| charset="iso-8859-1"
>| Content-Transfer-Encoding: 7bit
>| X-Newsreader: Microsoft CDO for Windows 2000
>| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
>| Thread-Index: AcOMPQoGdmB5TORVQ1KSkrFBna1Qug==
>| Newsgroups:

microsoft.public.dotnet.framework.aspnet.webcontro ls
>| Path: cpmsftngxa06.phx.gbl
>| Xref: cpmsftngxa06.phx.gbl
>microsoft.public.dotnet.framework.aspnet.webcontr ols:15163
>| NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
>| X-Tomcat-NG:

microsoft.public.dotnet.framework.aspnet.webcontro ls
>|
>| I have a treeview on an aspx that I populate from a
>| database. Each node has one of two images that I assign
>| depending on the value of a field in the datareader.

The
>| images are a Check or an X and they are .bmp.
>|
>| When the image is displayed it is too big. How can I

set
>| the size in the image tag since I do not build the tree

at
>| design time?
>|
>| Thanks
>| enak
>|
>
>.
>

 
Reply With Quote
 
Jeffrey Tan[MSFT]
Guest
Posts: n/a
 
      10-08-2003

Hi Enak,

I am too busy today and I have not installed the TreeView IE Web control
yet.
I will install this control and do some research. Once I have found that
problem, I will reply to you.
Thanks for your understanding.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| Content-Class: urn:content-classes:message
| From: "enak" <(E-Mail Removed)>
| Sender: "enak" <(E-Mail Removed)>
| References: <064c01c38c3d$0a0613d0$(E-Mail Removed)>
<(E-Mail Removed)>
| Subject: RE: Treeview image
| Date: Tue, 7 Oct 2003 05:53:16 -0700
| Lines: 74
| Message-ID: <120c01c38cd1$f9d95810$(E-Mail Removed)>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcOM0fnXokFqlPMFSI20keWwCWHHXA==
| Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontro ls
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.aspnet.webcontro ls:15185
| NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontro ls
|
| Yes, I am using the Microsoft control. I have used
| Photoshop to make the image smaller but the control still
| displays the image at the same large size. Also, I make
| the image background transparent but it still shows as
| white.
|
| Any suggestions?
|
| Thanks for your response.
|
| enak
|
| >-----Original Message-----
| >
| >Hi,
| >
| >Is your TreeView web control downloaded and installed
| from Microsoft web?
| >And is its reference
| microsoft.web.ui.webcontrols.treeview?
| >
| >I think may be you can use some image tools to adjust the
| size of the image
| >before use external.
| >
| >Best regards,
| >Jeffrey Tan
| >Microsoft Online Partner Support
| >Get Secure! - www.microsoft.com/security
| >This posting is provided "as is" with no warranties and
| confers no rights.
| >
| >--------------------
| >| Content-Class: urn:content-classes:message
| >| From: "enak" <(E-Mail Removed)>
| >| Sender: "enak" <(E-Mail Removed)>
| >| Subject: Treeview image
| >| Date: Mon, 6 Oct 2003 12:07:08 -0700
| >| Lines: 11
| >| Message-ID: <064c01c38c3d$0a0613d0$(E-Mail Removed)>
| >| MIME-Version: 1.0
| >| Content-Type: text/plain;
| >| charset="iso-8859-1"
| >| Content-Transfer-Encoding: 7bit
| >| X-Newsreader: Microsoft CDO for Windows 2000
| >| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| >| Thread-Index: AcOMPQoGdmB5TORVQ1KSkrFBna1Qug==
| >| Newsgroups:
| microsoft.public.dotnet.framework.aspnet.webcontro ls
| >| Path: cpmsftngxa06.phx.gbl
| >| Xref: cpmsftngxa06.phx.gbl
| >microsoft.public.dotnet.framework.aspnet.webcontr ols:15163
| >| NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
| >| X-Tomcat-NG:
| microsoft.public.dotnet.framework.aspnet.webcontro ls
| >|
| >| I have a treeview on an aspx that I populate from a
| >| database. Each node has one of two images that I assign
| >| depending on the value of a field in the datareader.
| The
| >| images are a Check or an X and they are .bmp.
| >|
| >| When the image is displayed it is too big. How can I
| set
| >| the size in the image tag since I do not build the tree
| at
| >| design time?
| >|
| >| Thanks
| >| enak
| >|
| >
| >.
| >
|

 
Reply With Quote
 
Jeffrey Tan[MSFT]
Guest
Posts: n/a
 
      10-09-2003

Hi,

I have installed the IE Web Control, and I found that there is no problem
about using the image.
Which image property do you set?
I set one node's SelectedImageUrl and ExpandedImageUrl both to a big
image(bmp file), then I set another node's SelectedImageUrl and
ExpandedImageUrl both to another bmp image which was scaled more smaller
from the first image.

But in the treeview control, I found that the big image will display big
and the small image will display small just as their actual size.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| Content-Class: urn:content-classes:message
| From: "enak" <(E-Mail Removed)>
| Sender: "enak" <(E-Mail Removed)>
| References: <064c01c38c3d$0a0613d0$(E-Mail Removed)>
<(E-Mail Removed)>
| Subject: RE: Treeview image
| Date: Tue, 7 Oct 2003 05:53:16 -0700
| Lines: 74
| Message-ID: <120c01c38cd1$f9d95810$(E-Mail Removed)>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcOM0fnXokFqlPMFSI20keWwCWHHXA==
| Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontro ls
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.aspnet.webcontro ls:15185
| NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontro ls
|
| Yes, I am using the Microsoft control. I have used
| Photoshop to make the image smaller but the control still
| displays the image at the same large size. Also, I make
| the image background transparent but it still shows as
| white.
|
| Any suggestions?
|
| Thanks for your response.
|
| enak
|
| >-----Original Message-----
| >
| >Hi,
| >
| >Is your TreeView web control downloaded and installed
| from Microsoft web?
| >And is its reference
| microsoft.web.ui.webcontrols.treeview?
| >
| >I think may be you can use some image tools to adjust the
| size of the image
| >before use external.
| >
| >Best regards,
| >Jeffrey Tan
| >Microsoft Online Partner Support
| >Get Secure! - www.microsoft.com/security
| >This posting is provided "as is" with no warranties and
| confers no rights.
| >
| >--------------------
| >| Content-Class: urn:content-classes:message
| >| From: "enak" <(E-Mail Removed)>
| >| Sender: "enak" <(E-Mail Removed)>
| >| Subject: Treeview image
| >| Date: Mon, 6 Oct 2003 12:07:08 -0700
| >| Lines: 11
| >| Message-ID: <064c01c38c3d$0a0613d0$(E-Mail Removed)>
| >| MIME-Version: 1.0
| >| Content-Type: text/plain;
| >| charset="iso-8859-1"
| >| Content-Transfer-Encoding: 7bit
| >| X-Newsreader: Microsoft CDO for Windows 2000
| >| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| >| Thread-Index: AcOMPQoGdmB5TORVQ1KSkrFBna1Qug==
| >| Newsgroups:
| microsoft.public.dotnet.framework.aspnet.webcontro ls
| >| Path: cpmsftngxa06.phx.gbl
| >| Xref: cpmsftngxa06.phx.gbl
| >microsoft.public.dotnet.framework.aspnet.webcontr ols:15163
| >| NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
| >| X-Tomcat-NG:
| microsoft.public.dotnet.framework.aspnet.webcontro ls
| >|
| >| I have a treeview on an aspx that I populate from a
| >| database. Each node has one of two images that I assign
| >| depending on the value of a field in the datareader.
| The
| >| images are a Check or an X and they are .bmp.
| >|
| >| When the image is displayed it is too big. How can I
| set
| >| the size in the image tag since I do not build the tree
| at
| >| design time?
| >|
| >| Thanks
| >| enak
| >|
| >
| >.
| >
|

 
Reply With Quote
 
joycey8
Guest
Posts: n/a
 
      10-14-2003
It happens when;

set the imageurl of a node to an image. Build + run project.

Resize original image and then repeat above. It seems that the
treeview has a 'memory' of the original size of the image.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to access the Page from a TreeNode (treeview 's element) : addinga context menu to a treeview abargaddon ASP .Net Building Controls 0 01-17-2008 11:05 AM
Microsoft Treeview vs System Treeview stepkurt ASP .Net Web Controls 1 09-02-2007 11:32 AM
ASP.NET 2.0 TreeView - Programatically Selecting A TreeView Node =?Utf-8?B?VHltYm93?= ASP .Net 2 01-10-2006 03:51 AM
Issue with a custom TreeView derived from the TreeView control Ionutz ASP .Net Web Controls 2 10-23-2005 03:23 PM
TreeView not rendering nodes? Cacheing of a TreeView Per Salmi ASP .Net Web Controls 1 10-15-2003 01:15 PM



Advertisments