Home - Forums-.NET - FlyTreeView (ASP.NET) - CheckBox issue

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

CheckBox issue
Link Posted: 28-Mar-2006 01:16
Hi
for some reason, i cant change checkboxes' state from the server side.
I have an aspx page, writtent in c# with a flyingnodeset. I'm adding a treenode to the nodeset and setting its IsChecked property to true
however the node appears as unchecked on the page.
i get no errors, and everything seem to be just fine
so if anyone of you ever encoutered this issue please help me
thanks and have a nice day,
BitterProgrammer
Link Posted: 28-Mar-2006 08:06
I've just checked the case, modifed the FileSystem.aspx.cs file that uses FlyNodeSet and get the correct behavior.
See the image:
Link Posted: 28-Mar-2006 19:11
Hi
my code looks just like yours, but for some reason
it wont work.
anything else i can check \ try?
Link Posted: 29-Mar-2006 09:25
Do you get the correct behavior when you modify FileSystem.aspx.cs at your place? If yes, then you should probably look for the difference of the sample and your own pages.
Link Posted: 08-Apr-2006 23:15
Ok it seems that i found the problem:
I set the checkboxes' checked value as true
but then on the client side, i catch the onchildrenloadfinished event
and set nodes checked value according to their father value.
I have to do this , because if a user checks a node its children still dont exist, and i want them to be checked when they are created.
so it seems to me, theres no way i can tell between the situations
unless there's a client event im not aware of
Link Posted: 08-Apr-2006 23:20
Probably you should create handler for the onInitLoadFinished client-side event where you can set some flag to true. And then use it in another handler to skip or process your actions.
Link Posted: 09-Apr-2006 01:26
The name of the even is \"ONINITLOADFINISHED\"?
it doesnt work for me.
when should it jump?
Link Posted: 09-Apr-2006 02:40
Hey
one last question
can i somehow make the tree genereate nodes children from the client's side?
Link Posted: 09-Apr-2006 19:58
[quote="BitterProgrammer"]The name of the even is "ONINITLOADFINISHED"?
it doesnt work for me.
when should it jump?

You may set the onInitLoadFinished  attribute of flytreeview. It should work
Link Posted: 09-Apr-2006 20:02
[quote="BitterProgrammer"]Hey
one last question
can i somehow make the tree genereate nodes children from the client's side?

Client-side Node.AddNodes(nodes_xml_text) is available for such purposes.