All issues require a minimal standalone test case with
an onModuleLoad() to be attached. You can modify an existing showcase
example if desired. Issues created without a standalone test case are
subject to being rejected after 7 days if no test case is present.
Please test any issue against the latest available code (from
smartclient.com/builds) before filing, and indicate any release versions
that you know are also affected.
What steps will reproduce the problem?
1.Check the Select All checkbox (without group by). All the records in the Grid
are selected.
2.Now Group By any field (here i chose "name").You can see all the records in
the ListGrid are group by. Specifically you can see two groups GROUP1 & GROUP2.
3.Uncheck the Select All checkbox.
What is the expected output? What do you see instead?
All the individual checkboxes in the records in the ListGrid should be
deselected.
But, i see following javascript exception,
Caused by: java.lang.ClassCastException:
com.smartgwt.client.widgets.grid.ListGridRecord cannot be cast to
com.smartgwt.client.widgets.tree.TreeNode
at com.smartgwt.client.util.ConvertTo.arrayOfTreeNode(ConvertTo.java:7037)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
What version of the product are you using? On what operating system?
SmartGWT 4.1p / SmartClient Version: v9.1p_2014-05-27/LGPL Development Only
(built 2014-05-27)
What browser(s) does this happen in? Are there any browsers where the
issue does not occur?
I tested in FireFox 26 & Chrome 34
Please provide any additional information below.
Instead of using inbuilt checkbox selection appearance ,we have a requirement
where by Select All checkbox will be placed on top of the ListGrid.
Now when the Select All checkbox is selected, all the rows in the ListGrid
should be selected. Attached ready-to-run testcase works fine when user has not
group by.
Now,after checking Select All checkbox, if user group by and then unchecks the
Select All checkbox the rows in the ListGrid should be unselected. However a
javascript error is thrown from
ListGrid#getGroupTree#getAllNodes is breaking up with ClassCastException.
Also following is the link of the same issue i posted in smartgwt forums...
http://forums.smartclient.com/showthread.php?t=30418
Original issue reported on code.google.com by nbk.stru...@gmail.com on 29 May 2014 at 7:30
Original issue reported on code.google.com by
nbk.stru...@gmail.com
on 29 May 2014 at 7:30Attachments: