Hi Isanka,
With the above mentioned code, the listview should be automatically adjusted its with based on the content while using template and the
colorpicker should be on the second line. If doesn't work, then it could be due to older version of the listview where the
CSS templating features aren't implemeted.
Could be please update us the package details of the EJ2 components you are using in your project? or you can try updating
the EJ2 components to the latet versions and get it working. Also we have attached a live version of sample for your
reference.
Thanks,
Christo