Forum Xamarin Xamarin.Forms

Grouped ListView - Custom GroupHeaderTemplate

N_BauaN_Baua INMember ✭✭✭✭✭
edited October 2017 in Xamarin.Forms

Hi guys,

Looking for some specific style of grouping in ListView, seeking your thoughts/ideas on the same.

I've a requirement to implement the following view and the current implementation only provided me with standard GroupDisplayBinding and GroupShortNameBinding with the GroupHeaderTemplate. and believe me none of the online example go beyond the "A", "B", "C" ... group headers.

  • I want to have Group Title and Total Sum (count of items) and small icon for expand/collapse state.
  • I want to have my list view to respond to a bottom control (for expand all /collapse all feature) as well.

Please pour some ideas. Lead me to some examples (if any).

N Baua

Best Answer


  • Dinesh4693Dinesh4693 INMember ✭✭

    Hi Baua,

    You can achieve the reported requirement using SfListView control. Please refer the following articles

    Load items count in the group header:
    Add expand/collapse icon in the group header:

    Syncfusion controls is available for free through the community license program if you qualify (less than 1 million USD in revenue).
    Note: I work for Syncfusion.

    Dinesh Babu Yadav

  • N_BauaN_Baua INMember ✭✭✭✭✭

    Hi @Dinesh4693 ,

    Sync Fusion ListView controls increased my APK by at least another 9 Mb, so trying to avoid the SF controls.
    (Actually refraining myself from using the 3rd party controls for now( only exception is AsNum controls for RadioButtons and CheckBoxes and removed all additional code to remain light on my apps APK size.)

    Thanks for your inputs though.

    -- N Baua

  • N_BauaN_Baua INMember ✭✭✭✭✭

    Hi @DirkWilhelm,
    Actually I did tried using same logic, what I was missing is the ViewCell, resulting is some error, I could not figure out. sometimes I get too numb to sort this kind of stuff on own. silly me. :).
    Thanks for your show.

    --- N Baua

Sign In or Register to comment.