Search results





Specifies the array of the template names where the state value updates need to be ignored.

<TreeViewComponent fields={fields} statelessTemplates={['nodeTemplate']} nodeTemplate={nodeTemplate} />

If the templates are defined in nested directives of the component, then pass the statelessTemplates property array value as “directiveTemplates” instead of the template names.

<GridComponent  dataSource={siteCedarData} statelessTemplates={['directiveTemplates']}>
        <ColumnDirective field="name" headerText="asset" textAlign="Left" />
        <ColumnDirective field="status" headerText="status" textAlign="Center" template={renderStatusCell} />

This support will prevent the re-rendering of the component template during state updates. It will increase the performance of the components if you prevent state updates for the templates that are not required.