# Custom component within a template

**URL:** <https://forum.radzen.com/t/custom-component-within-a-template/5502>\
**Category:** Radzen.Blazor Components\
**Created:** [November 3, 2020, 9:13pm UTC](https://forum.radzen.com/t/custom-component-within-a-template/5502 "2020-11-03T21:13:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BillyBob](https://forum.radzen.com/letter_avatar_proxy/v4/letter/b/e79b87/32.png) [@BillyBob](https://forum.radzen.com/u/BillyBob)\
**Post date:** [November 3, 2020, 9:13pm UTC](https://forum.radzen.com/t/custom-component-within-a-template/5502/1 "2020-11-03T21:13:24Z")

</div>

Hi,

I have a datalist linked to a dataset. In the template of the datalist item, I add a custom component. As soon as I specify the source for the component (any existing page), I get "Error rendering component customComponent0".

Am I doing something wrong?

Tks

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [November 4, 2020, 5:23am UTC](https://forum.radzen.com/t/custom-component-within-a-template/5502/2 "2020-11-04T05:23:25Z")

</div>

Is it just in design time? Can you run the application normally?

---

<div class="post-metadata">

**Author:** ![BillyBob](https://forum.radzen.com/letter_avatar_proxy/v4/letter/b/e79b87/32.png) [@BillyBob](https://forum.radzen.com/u/BillyBob)\
**Post date:** [November 4, 2020, 12:39pm UTC](https://forum.radzen.com/t/custom-component-within-a-template/5502/3 "2020-11-04T12:39:37Z")

</div>

when I run the application, the component simply don't appear. If I look in the code (.razor), I see the component however.. strange.
