Skip to content

Issue using header template with group template #1330

Open
@codytooker

Description

@codytooker

Please, provide the details below:

Tell us about the problem

With a RadListView when Using a header template and group template the header template does not show on IOS

Which platform(s) does your issue occur on?

iOS

RadListView "nativescript-ui-listview": "^8.0.1",

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

<template>
    <RadListView
      for="item in categoryArticles"
      :groupingFunction="articleGrouping"
    >
      <v-template name="header">
        <FlexboxLayout alignItems="center">
          <Icon  icon="book"  />
          <H1  horizontalAlignment="stretch"  :text="categoryTitle" />
        </FlexboxLayout>
      </v-template>
      <v-template name="group">
        <ListHeader :title="item.category"  />
      </v-template>
      <v-template>
        <Article :article="item" />
      </v-template>
    </RadListView>
</template>

<script>
export default {
  methods: {
    articleGrouping(item) {
      return item.typeLabel
    },
  },
}
</script>

Above is a code snippet to show what I am doing. Removing the group template causes the header template to show. This seems very similar to #1072 which says the problem has been fixed

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions