View previous topic :: View next topic |
Author |
Message |
Murcia
Joined: 28 Jan 2008 Posts: 5
|
Posted: Mon Jan 28, 2008 2:01 pm Post subject: Expand tree does not show child data the first time |
|
|
Hello
in my application i have defined a dataset with two tables (One is the parent, one is the child). The tables are linked with a relation.
The parent is bind by bindingsource to the virtualtree.
During the form_load event I fill both tables with data.
When I start the application I see the parent table as a tree, but when I click the first time on the expand icon of a parent node, I see the child tree but without data. Only after I click on one row of this child tree I see the data for all childreen in that node.
After that for all parent nodes I see the correct child tree filled with data.
START APP
VIR TREE Step 1
+ parent1 <- I click on + (expand)
+ parent2
I get this
VIR TREE Step 2
+ parent1 # has 2 childreen
--- # no data
--- <- now I click on that row
+ parent2
VIR TREE Step 3
I get this
+ parent1
--- child1
--- child2 # that is what i want for step 2
Now I can click on parent2 and the child tree is shown correct as in Step3
What I am doing wrong?
Thanks in advance and sorry for my bad english
Murcia |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon Jan 28, 2008 9:38 pm Post subject: |
|
|
It's a little difficult to be sure without a sample project - but I think the problem may be that you have more than one column and have set the column ContextSensitive property for each column to true. Recheck how you have mapped the row fields to columns (in the VirtualTree editor Bindings tab) and turn off the ContextSensitive property. You should probably have just one column and ensure you map the field from each RowBinding to that column.
If you are still having issues then put together a small sample project that demonstrates your problem and email to support@infralution.com and we will be able to provide more assistance. _________________ Infralution Support |
|
Back to top |
|
|
|