Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Tree View

2 posts in Objects Last posting was on 2006-09-26 13:29:18.0Z
Smith Posted on 2006-09-25 13:04:25.0Z
Sender: 6105.4517d2b9.1804289383@sybase.com
From: Smith
Newsgroups: sybase.public.powerbuilder.objects
Subject: Tree View
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4517d341.610a.1681692777@sybase.com>
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 25 Sep 2006 06:01:53 -0700, 10.22.241.42
Lines: 14
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 25 Sep 2006 06:01:54 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 25 Sep 2006 06:04:25 -0700
X-Trace: forums-1-dub 1159189465 10.22.108.75 (25 Sep 2006 06:04:25 -0700)
X-Original-Trace: 25 Sep 2006 06:04:25 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9073
Article PK: 736258

Hi All,

I am using 10.2.1 Build 9004, I am using Tree view in my
application. When I add nodes with sub nodes it is showing
'+' sign whereas there are some nodes available inside the
node, it is fine. But PB shows the same '+' sign to the
final node also where there is nothing inside. PLease let me
know how can I remove that sign.

Please help me in this regard,

Thanks in advance for any help,

Smith


Jason 'Bug' Fenter [TeamSybase] Posted on 2006-09-26 13:29:18.0Z
From: "Jason 'Bug' Fenter [TeamSybase]" <fenterbug@gmail.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Tree View
Date: 26 Sep 2006 06:29:18 -0700
Organization: http://groups.google.com
Lines: 25
Message-ID: <1159277357.871637.275480@k70g2000cwa.googlegroups.com>
References: <4517d341.610a.1681692777@sybase.com>
NNTP-Posting-Host: 65.201.123.212
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1159277361 7658 127.0.0.1 (26 Sep 2006 13:29:21 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 26 Sep 2006 13:29:21 +0000 (UTC)
In-Reply-To: <4517d341.610a.1681692777@sybase.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: k70g2000cwa.googlegroups.com; posting-host=65.201.123.212; posting-account=vVR4zA0AAABcZVJgvtr18BEgLvY3d_Ls
Path: forums-1-dub!forums-master!newswest.sybase.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!k70g2000cwa.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9078
Article PK: 736265


Smith wrote:
> Hi All,
>
> I am using 10.2.1 Build 9004, I am using Tree view in my
> application. When I add nodes with sub nodes it is showing
> '+' sign whereas there are some nodes available inside the
> node, it is fine. But PB shows the same '+' sign to the
> final node also where there is nothing inside. PLease let me
> know how can I remove that sign.
>
> Please help me in this regard,
>
> Thanks in advance for any help,
>
> Smith

You must be using Syntax 6 of InsertItem() to get this behavior. With
that syntax, you build the TreeViewItem yourself. It would appear that
when you build the item, you're setting the Children property to TRUE.
In the case of your final node, it should be FALSE when you add it.

Alternatively, you can use GetItem() / SetItem() to change the property
after it has been added, but that would probably be more work.