[SOLVED] How to show itemtemplate when combine DataRepeater with other controls as a new component?

Answered Closed
0
0

Hi Wisej,

I’d like to combine DataRepeater with other buttons as a new component, trying to make it reusable since this is a very common case for me. With ‘Add’, ‘Delete’, ‘Up’ and ‘Down’ buttons, users can easily modify items inside DataRepeater control.

However after I made this controls as a component, itemtemplate doesn’t work so that I could not add controls into it. Would like to know how to solve this or other approach to do this.

Thank you.

Frank

  • You must to post comments
Best Answer
0
0

You can build a reusable component by deriving from the DataRepeater class or putting it into a UserControl. But you cannot change the internals of a precompiled component using the designer, just like the UserControl. You can provide your own properties and events, similar to the RibbonBar or NavigationBar (see source code in GitHub).

 

  • You must to post comments
Showing 1 result