﻿<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://developers.de/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Implementing Custom UserControl with ListItem collection</title><link />http://developers.de/blogs/damir_dobric/archive/2007/03/30/Implementing-Custom-UserControl-with-ListItem-collection.aspx<description>Sometimes you will have a trivial requirement to create just simple ASP.NET user control (control derived from UserControl), which should have a property of a collection type. Following example illustrates such control: public partial class ComboBoxControl</description><dc:language>en</dc:language><generator>CommunityServer 2008 SP1 (Build: 30619.63)</generator><item><title>Add ListItems to RadioButtonList via markup within a UserControl - Programmers Goodies</title><link />http://developers.de/blogs/damir_dobric/archive/2007/03/30/Implementing-Custom-UserControl-with-ListItem-collection.aspx#221060<pubdate>Thu, 24 Nov 2011 05:20:52 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:221060</guid><dc:creator>Add ListItems to RadioButtonList via markup within a UserControl - Programmers Goodies</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Add ListItems to RadioButtonList via markup within a UserControl - Programmers Goodies&lt;/p&gt;
&lt;img src="http://developers.de/aggbug.aspx?PostID=221060" width="1" height="1"&gt;</description></item><item><title>Add ListItems to RadioButtonList via markup within a UserControl - Programmers Goodies</title><link />http://developers.de/blogs/damir_dobric/archive/2007/03/30/Implementing-Custom-UserControl-with-ListItem-collection.aspx#221061<pubdate>Thu, 24 Nov 2011 05:20:50 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:221061</guid><dc:creator>Add ListItems to RadioButtonList via markup within a UserControl - Programmers Goodies</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Add ListItems to RadioButtonList via markup within a UserControl - Programmers Goodies&lt;/p&gt;
&lt;img src="http://developers.de/aggbug.aspx?PostID=221061" width="1" height="1"&gt;</description></item><item><title>re: Implementing Custom UserControl with ListItem collection</title><link />http://developers.de/blogs/damir_dobric/archive/2007/03/30/Implementing-Custom-UserControl-with-ListItem-collection.aspx#5266<pubdate>Wed, 06 May 2009 11:40:03 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:5266</guid><dc:creator>shuihd</dc:creator><description>&lt;p&gt;does it work&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=5266" width="1" height="1"&gt;</description></item><item><title>re: Implementing Custom UserControl with ListItem collection</title><link />http://developers.de/blogs/damir_dobric/archive/2007/03/30/Implementing-Custom-UserControl-with-ListItem-collection.aspx#5265<pubdate>Wed, 06 May 2009 11:34:04 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:5265</guid><dc:creator>shuihd</dc:creator><description>&lt;p&gt;i have tested the code in vs 2008,but i &amp;nbsp;can not see it works even without the &amp;#39;items&amp;#39; propety in the property window ,or in other case ,some message prompt that items can not be initialed ,could someone tells me why?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=5265" width="1" height="1"&gt;</description></item><item><title>re: Implementing Custom UserControl with ListItem collection</title><link />http://developers.de/blogs/damir_dobric/archive/2007/03/30/Implementing-Custom-UserControl-with-ListItem-collection.aspx#1863<pubdate>Sat, 05 Apr 2008 21:23:21 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1863</guid><dc:creator>Damir Dobric</dc:creator><description>&lt;p&gt;Thanks for your support :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1863" width="1" height="1"&gt;</description></item><item><title>re: Implementing Custom UserControl with ListItem collection</title><link />http://developers.de/blogs/damir_dobric/archive/2007/03/30/Implementing-Custom-UserControl-with-ListItem-collection.aspx#1862<pubdate>Fri, 04 Apr 2008 17:25:58 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1862</guid><dc:creator>Geoffrey Swenson</dc:creator><description>&lt;p&gt;This was very helpful, especially techron's version. However, I will add that the following C# references were left out of his version:&lt;/p&gt;
&lt;p&gt;using System.Text;&lt;/p&gt;
&lt;p&gt;using System.Collections.Generic;&lt;/p&gt;
&lt;p&gt;using System.ComponentModel;&lt;/p&gt;
&lt;p&gt;using System.ComponentModel.Design;&lt;/p&gt;
&lt;p&gt;using System.Drawing.Design;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1862" width="1" height="1"&gt;</description></item><item><title>re: Implementing Custom UserControl with ListItem collection</title><link />http://developers.de/blogs/damir_dobric/archive/2007/03/30/Implementing-Custom-UserControl-with-ListItem-collection.aspx#1794<pubdate>Sun, 10 Feb 2008 20:23:53 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1794</guid><dc:creator>techron</dc:creator><description>&lt;p&gt;Works great. Here's a link to my implementation: &lt;a rel="nofollow" target="_new" href="http://techron.blogspot.com/2008/02/creating-listitemcollection-template.html"&gt;techron.blogspot.com/.../creating-listitemcollection-template.html&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1794" width="1" height="1"&gt;</description></item><item><title>re: Implementing Custom UserControl with ListItem collection</title><link />http://developers.de/blogs/damir_dobric/archive/2007/03/30/Implementing-Custom-UserControl-with-ListItem-collection.aspx#1786<pubdate>Tue, 05 Feb 2008 06:21:10 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1786</guid><dc:creator>1</dc:creator><description>&lt;p&gt;1&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1786" width="1" height="1"&gt;</description></item><item><title>re: Implementing Custom UserControl with ListItem collection</title><link />http://developers.de/blogs/damir_dobric/archive/2007/03/30/Implementing-Custom-UserControl-with-ListItem-collection.aspx#1753<pubdate>Thu, 17 Jan 2008 11:00:24 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1753</guid><dc:creator>Sleza4e</dc:creator><description>&lt;p&gt;Took 1 to 1 as codesample, doesn't work too&lt;/p&gt;
&lt;p&gt;vs2008&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1753" width="1" height="1"&gt;</description></item><item><title>re: Implementing Custom UserControl with ListItem collection</title><link />http://developers.de/blogs/damir_dobric/archive/2007/03/30/Implementing-Custom-UserControl-with-ListItem-collection.aspx#1582<pubdate>Fri, 28 Sep 2007 19:15:05 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1582</guid><dc:creator>eric</dc:creator><description>&lt;p&gt;this sample does not work as shown. i'm still getting the design time error ''Type 'ASP.comboboxcontrol_ascx' does not have a public property named 'ListItem&lt;/p&gt;
&lt;p&gt;any suggestions?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1582" width="1" height="1"&gt;</description></item><item><title>re: Implementing Custom UserControl with ListItem collection</title><link />http://developers.de/blogs/damir_dobric/archive/2007/03/30/Implementing-Custom-UserControl-with-ListItem-collection.aspx#1398<pubdate>Sun, 24 Jun 2007 21:22:00 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1398</guid><dc:creator>Damir Dobric</dc:creator><description>&lt;p&gt;But, how the list know what type of item should be parsed? The similar pattern can be found in the configuration system of .NET2.0&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1398" width="1" height="1"&gt;</description></item><item><title>re: Implementing Custom UserControl with ListItem collection</title><link />http://developers.de/blogs/damir_dobric/archive/2007/03/30/Implementing-Custom-UserControl-with-ListItem-collection.aspx#1397<pubdate>Fri, 22 Jun 2007 11:56:26 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1397</guid><dc:creator>Pedram</dc:creator><description>&lt;p&gt;As far as I know, all you need to solve this is to add the ParseChildren(true, &amp;quot;Items&amp;quot;) attribute on the class.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1397" width="1" height="1"&gt;</description></item></channel></rss>