ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Display empty grid group, without child items on search result
Title:
B
I
{code}
?
similar example http://demo.aspnetawesome.com/GridDemo/Grouping Now I create searching app and I have feautre batch search such as batch search is thailand,germany , japan And thailand --- result 2 rows germany --- result 0 japan result 3 rows I'd like to show grid row group -- thailand (2) row data--------XX row data--------XX row group -- germany(0) <----- not child not collapse row group -- japan (3) row data--------XX row data--------XX row data--------XX
Save Changes
Cancel
nutfergie
asked at 05 Jan 2018
you'll need to add 1 item for the empty group in the controller, the item needs to have the CountryName and CountryId, so that the group with name will be generated, after that you can remove that row on `$grid.on('awerender'`, you can identify it by the key you gave it or a css class that you can set using `RowClassClientFormat` another solution would be to use TreeGrid, where you can have root items without children
at 05 Jan 2018
Omu
Now I can show empty group row and remove child's its via JS but I want to unblind onclick of empty group row (awe-ce-ico change) and change hover icon from hand to arrow I try var rowHide = grid.find(".hideRow"); var rowGroup = rowHide.prev(); rowGroup.addClass("awe-collapsed"); rowGroup.off(); <---- unbind not work rowHide.remove(); It not work
at 06 Jan 2018
nutfergie
prev().on('click', function(e){ return false; })
at 06 Jan 2018
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK