Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3627
Are there any examples of how to create a template for a GroupByRecordPresenter?
posted

I want to change the default appearance of GroupByRecordPresenter, that by default says "xxxxxx (1 item)". I can't find an example of this. I can live with the appearance... I just want to change the content and eliminate the item count.

Does anyone know of a simple code example of this?

Thank you.

Parents
  • 4850
    Verified Answer
    Offline posted

    You can wire up the InitializeRecord event and set tge GroupByRecord's Description property, e.g.:

    void OnInitializeRecord(object sender, InitializeRecordEventArgs e)

    {

    GroupByRecord gbr = e.Record as GroupByRecord;if (gbr != null)

    {

    if (gbr.Value == null)

    gbr.Description = "{null]";

    else

    gbr.Description = gbr.Value.ToString();

    }

    }

     

Reply Children