The text of this article is not in this database — only its details are. Read it on the old site: Adding Custom Control Dynamically in LightSwitch
13 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Adding Custom Control Dynamically in LightSwitch
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Jaganathan BantheswaranPosted Sep 4, 2013, 1:19 AM
I will update the article with source code. THanks
Rakesh GargPosted Sep 3, 2013, 6:29 AM
Also for avoiding Radio Buttons not to added , I have add one condition "if (genderPanel.Children.Count() == 0)" which works for me, but I saw that Activated function calls as many times as user clicks
Rakesh GargPosted Sep 3, 2013, 6:27 AM
Hi Jaganathan, Thanks for providing this article but this code has one loophole , Every time when user click on Create New Person , Radio Buttons added in StackPanel,
Matthias MertensPosted Sep 4, 2012, 5:53 AM
In my case i changed the standard checkboxes of a boolean value to the stackpanel with radio Buttons "yes", "no" on it. I also had Validations on these checkboxes. So i add sometimes Warnings with "results.AddPropertyResult(message, ValidationSeverity.Warning)" in the *_Validate(EntityValidationResultsBuilder results) i my *Item.cs code. Now with this Custom Control (Stackpanel) these warnings are not shown anymore. I think I have to do something like explained on http://msdn.microsoft.com/en-us/library/hh290141 --> "Your Silverlight control must contain a reference to the LightSwitch.Presentation.Framework namespace, which provides some common building-block controls. For example, LightSwitch provides a StatesControl that you can use to display loading information and validation errors." Right?
Jaganathan BantheswaranPosted Aug 29, 2012, 12:32 PM
What you meant by Warnings? Can you explain bit more ?
Matthias MertensPosted Aug 29, 2012, 10:27 AM
Hey Jaganathan, great work. But i have a Problem with my Validation now, because the warnings are not shown at the Element anymore. Maybe the Validation only works with Lightswitch controls?
Urs GloorPosted Jan 19, 2012, 8:51 AM
Hi Jaganathan Thank you for your article. You give me good advice on how I can implement radio buttons with LightSwitch. Urs
naresh kamisettiPosted Dec 22, 2011, 11:57 AM
Hi....Jagan I downloaded your Source code..but i didnt see any code there
shreedhar DeshwalPosted Oct 4, 2011, 1:31 AM
This app contain error.If you click on "create person detail " and then "Pepole list detail" and again "Crete person detail" you cant RADIO BUTTON GENERATED AGAIN.