[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.webcontrols

Problem with IE Webcontrols - TreeView

Ivan

1/16/2003 5:20:00 AM

Hi All,

Does anyone know how to control the AutoPostBack function of TreeView..?
I mean how can i set the TreeView webcontrols only postback when selecting
on the Childnodes rather than the root nodes and expand (plus sign image)
and collapse (minus sign image)..??

Thanks for you great help....

urgently need your help,
Ivan


3 Answers

Jesse Ezell

1/20/2003 6:28:00 PM

0

You can't. This is because the guy who wrote the control
didn't take the time to implement client side state
management, so it requires a postback to syncronize the
state of the treeview with the server.

The only workaround is to create your own custom treeview
control from the IE behavior or to use a different
treeview control. Creating your own control isn't too
difficult, but if you want really good functionality, you
might save a lot of time by just getting the a third
party control, such as software artisan's free treeview
control.

--Jesse


>-----Original Message-----
>Hi All,
>
>Does anyone know how to control the AutoPostBack
function of TreeView..?
>I mean how can i set the TreeView webcontrols only
postback when selecting
>on the Childnodes rather than the root nodes and expand
(plus sign image)
>and collapse (minus sign image)..??
>
>Thanks for you great help....
>
>urgently need your help,
>Ivan
>
>
>.
>

Ivan

1/22/2003 2:35:00 AM

0

Thanks Jesse...

but I saw some samples on MSDN which regarding to the client-side script
implementation on the ie webcontrols.. however, the samples don't seem work
properly...

Ivan

"Jesse Ezell" <jesse@activehead.com> wrote in message
news:06b101c2c0a9$5b1b7f90$d6f82ecf@TK2MSFTNGXA13...
> You can't. This is because the guy who wrote the control
> didn't take the time to implement client side state
> management, so it requires a postback to syncronize the
> state of the treeview with the server.
>
> The only workaround is to create your own custom treeview
> control from the IE behavior or to use a different
> treeview control. Creating your own control isn't too
> difficult, but if you want really good functionality, you
> might save a lot of time by just getting the a third
> party control, such as software artisan's free treeview
> control.
>
> --Jesse
>
>
> >-----Original Message-----
> >Hi All,
> >
> >Does anyone know how to control the AutoPostBack
> function of TreeView..?
> >I mean how can i set the TreeView webcontrols only
> postback when selecting
> >on the Childnodes rather than the root nodes and expand
> (plus sign image)
> >and collapse (minus sign image)..??
> >
> >Thanks for you great help....
> >
> >urgently need your help,
> >Ivan
> >
> >
> >.
> >


Ivan

1/23/2003 5:31:00 AM

0

here is the page about client-side script on ie webcontrols...
http://msdn.microsoft.com/library/default.asp?url=/workshop/author...
/library/treeview/treeview_client_ovw.asp