Hello ,

Have U achive this feature because I want to try the same but I didn't...

Thanks,
Bhumi

On Thursday, 19 April 2012 14:24:20 UTC+5:30, manu wrote:
>
> Hi All, 
>
> I have a requirement to add a gwt celltree inside of a celltable 
> column.I was successful in adding the celltree inside the celltable 
> column by creating a custom cell. But the problem I am facing is that 
> the celltree is not recognizing events once it is inside the 
> celltable.When I click on the expand or collapse icons of 
> the celltree it is not responding. Can you please help me? 
>
> Please find below the code for my custom cell which renders the cell 
> tree inside of my cell table: 
>
>     public class TreeCellRenderer extends AbstractCell<CellTree> { 
>           @Override 
>            public void render(com.google.gwt.cell.client.Cell.Context 
> context, 
>                            CellTree value, SafeHtmlBuilder sb) { 
>
>   
> sb.append(SafeHtmlUtils.fromTrustedString(value.getElement().getInnerHTML()));
>  
>
>           } 
>     } 
>
>
> //To add the cell tree inside celltable column 
>     Column<XYZ, CellTree> column = new Column<XYZ, CellTree>(new 
>     TreeCellRenderer ()) { 
>                            @Override 
>                            public CellTree getValue(XYZ object) { 
>                                   CellTree tree = new 
> CellTree(model,null, res); 
>                                    return cellTree; 
>                            } 
>                    }; 
>      } 
>     celltable.addColumn(column); 
>
> Please let me know whether this is correct and what code should I need 
> to add to make the cell tree respond to expand/collapse events inside 
> the celltable. 
>
> Appreciate your help in this. 
>
> Thanks in advance, 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/KPD3v3Ky2sIJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to