make datagrid compatible with ngInit
fix template cache mechanism