A
Andrew Jocelyn
Hi
I need to be able to edit and render dynamic html from a custom data source.
The rendered output is going to be html form elements for collecting survey
style data.
The main problem I´m facing is that the data which requires binding has a
different structure for each item in the list, i.e. I need to loop through a
list of objects which contain varied data and then render different html
accordingly. For example, the first item in the list may require a label and
textbox to be rendered, the second may require a label and populated
CheckboxList.
The ReorderList would be ideal I think if I can work out how to render
different html depending on the data of each item in the list. I need the
form creator to be able to sort the order of items. I also need to be able
to render the html items as a static form so need to know if the ReorderList
supports this. Can I create custom templates to use with the ReorderList,
i.e. one for each type of data item (row)? Is this the best approach or
should I consider a more custom approach e.g. overriding the
BaseDataBoundControl in some way? I guess this is more work but may be
necessary?
I hope this makes sense but please let me know if you need more information.
Many thanks
Andrew
I need to be able to edit and render dynamic html from a custom data source.
The rendered output is going to be html form elements for collecting survey
style data.
The main problem I´m facing is that the data which requires binding has a
different structure for each item in the list, i.e. I need to loop through a
list of objects which contain varied data and then render different html
accordingly. For example, the first item in the list may require a label and
textbox to be rendered, the second may require a label and populated
CheckboxList.
The ReorderList would be ideal I think if I can work out how to render
different html depending on the data of each item in the list. I need the
form creator to be able to sort the order of items. I also need to be able
to render the html items as a static form so need to know if the ReorderList
supports this. Can I create custom templates to use with the ReorderList,
i.e. one for each type of data item (row)? Is this the best approach or
should I consider a more custom approach e.g. overriding the
BaseDataBoundControl in some way? I guess this is more work but may be
necessary?
I hope this makes sense but please let me know if you need more information.
Many thanks
Andrew