Actually I want to add some dynamic data fields to DataForm from C# code and the given link suggesting that need to add from XAML file Can you please suggest me a way to do this.
I am creating dynamic class file (Entity) which will be going to assign to Dataform which is act as dynamic data so for that data (class file) I need to add user defined controls for each field instead of autogenerated controls to it...
For that I need to Apply dataTemplate to DataForm programmitically.
I too am interested in adding custom fields to the dataform. For instance, I'd like to exempt registered users from answering questions but have new users answer them. Also, I'd like to route clients to different webpages (ex. FAQ) based on the "reason for
contact" box selected. Could someone point me in the right direction on how to add code for this?
Data Binding control Dataform itemsource columntemplate
abhinayabhi
Member
183 Points
77 Posts
How to Dynamically add Datatemplate in DataForms?
Jul 29, 2009 05:26 AM | LINK
Hi,
I want to add dynamic datatemplates in to Dataform through C# code, does any one know how to acheive this.?
Thanks
Abhinay.
varshavmane
Star
13219 Points
2753 Posts
Re: How to Dynamically add Datatemplate in DataForms?
Jul 29, 2009 06:00 AM | LINK
Hi,
Did you check this : http://tozon.info/blog/post/2009/03/15/Dynamic-Data-Forms-for-Silverlight-with-a-Data-Template-Selector-Control.aspx OR
http://tozon.info/blog/post/2009/04/07/Dynamic-Data-Forms-for-Silverlight-revisited.aspx ?
Visit my Blog
abhinayabhi
Member
183 Points
77 Posts
Re: How to Dynamically add Datatemplate in DataForms?
Jul 29, 2009 08:39 AM | LINK
Hi Varsha,
Actually I want to add some dynamic data fields to DataForm from C# code and the given link suggesting that need to add from XAML file Can you please suggest me a way to do this.
Thanks,
Abhinay.
lee_sl
Contributor
4222 Points
864 Posts
Re: Re: How to Dynamically add Datatemplate in DataForms?
Jul 29, 2009 08:46 AM | LINK
could you give some more details?
Available for consulting in Dallas, TX
http://leeontech.wordpress.com/
abhinayabhi
Member
183 Points
77 Posts
Re: Re: How to Dynamically add Datatemplate in DataForms?
Jul 29, 2009 10:16 AM | LINK
Hi,
I am creating dynamic class file (Entity) which will be going to assign to Dataform which is act as dynamic data so for that data (class file) I need to add user defined controls for each field instead of autogenerated controls to it...
For that I need to Apply dataTemplate to DataForm programmitically.
Thanks,
Abhinay.
abhinayabhi
Member
183 Points
77 Posts
Re: How to Dynamically add Datatemplate in DataForms?
Jul 30, 2009 09:36 AM | LINK
Thanks for great help [:)],
I found the solution for my problem.
I for that I used following code..
befree22
Member
2 Points
1 Post
Re: How to Dynamically add Datatemplate in DataForms?
Feb 17, 2010 03:00 AM | LINK
I too am interested in adding custom fields to the dataform. For instance, I'd like to exempt registered users from answering questions but have new users answer them. Also, I'd like to route clients to different webpages (ex. FAQ) based on the "reason for contact" box selected. Could someone point me in the right direction on how to add code for this?
Data Binding control Dataform itemsource columntemplate