Hi all,
Can anyone help me how to dispatch creation_complete event manually. 

In my project i am using a viewstack with three canvas under it.And for each 
canvas one datagrid is there. A vbox is holding this viewStack and vbox also 
has maximize functionality. When the user click on maximize button vbox will 
expand till the browser. And at the same time when the vbox is maximizing iam 
dynamically adding one column to all the datagrids. This is the actual 
functionality.

But here iam getting an error. With out clicking on the other two canvas's if i 
maximize the vbox iam getting an error like this:canvas2 and canvas3 are null. 
So cannot add a column to the respective datagrids.

So here what iam thinking to do is to manually call creationcomplete event for 
canvas 2 and 3 so that when user directly click on maximize with out clicking 
on canvas2 and 3 it should add a column to the datagrid 2 and 3.

For now my  program is adding a column to only datagrid1. ITs not adding to the 
other two datagrids.

Am I going in the right way or any one suggest me how can i solve this issue.

Thanks in Advance,
Poornima



      

Reply via email to