﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WebForms (How do I?)  » Can't get ListBox to work in designtime</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 10:13:00 GMT</lastBuildDate><ttl>20</ttl><item><title>Can't get ListBox to work in designtime</title><link>http://forum.strataframe.net/FindPost5715.aspx</link><description>In my web project, I can set the PopulationDataSource on a List&lt;STRONG&gt;View&lt;/STRONG&gt; control and have no problems. But using the same properties for a List&lt;STRONG&gt;Box&lt;/STRONG&gt; control, design view has an error box wher the list box should be with the following error:&lt;P&gt;&lt;STRONG&gt;[code]ListBox&lt;/STRONG&gt; - ListBox1&lt;/P&gt;&lt;P&gt;There was an error rendering the control.&lt;/P&gt;&lt;P&gt;'GroupBO|GetGroups;|Description,|{0}|GroupCode' could not be set on property 'PopulationDataSourceSettings'[/code]&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PopulationType&lt;/STRONG&gt; is set to BusinessObject and &lt;STRONG&gt;BusinessObjectName&lt;/STRONG&gt; is set to the web form's instance of the GroupBO, set correctlyi in ApplicationBasePage.cs.&lt;/P&gt;&lt;P&gt;Suggestions? I'm sure it's a beginner's mistake. This is my first attempt at a web app with the framework since last month.</description><pubDate>Mon, 19 Feb 2007 10:22:17 GMT</pubDate><dc:creator>Wil Cantrell</dc:creator></item><item><title>RE: Can't get ListBox to work in designtime</title><link>http://forum.strataframe.net/FindPost6953.aspx</link><description>Why would the property editor create source that used the pipe-delimited format then?&lt;br&gt;
&lt;br&gt;
And why does my text editor think that the element is not allowed there?  Is there any way to fix this?</description><pubDate>Mon, 19 Feb 2007 10:22:17 GMT</pubDate><dc:creator>Justin Buist</dc:creator></item><item><title>RE: Can't get ListBox to work in designtime</title><link>http://forum.strataframe.net/FindPost6933.aspx</link><description>Nope, the PopulationDataSourceSettings is an inner property, so you can set the properties as an XML node within the list itself.&amp;nbsp; The way you have it is probably the best way to do it.</description><pubDate>Mon, 19 Feb 2007 08:59:04 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Can't get ListBox to work in designtime</title><link>http://forum.strataframe.net/FindPost6932.aspx</link><description>I saw an identical error when trying to drop a SFWeb:RadioButtonList onto a page at design time.  I couldn't for figure it out for the life of me.&lt;br&gt;
&lt;br&gt;
When I pulled open the source I saw the pipe delimited list and thought, "That's a silly way of doing that!" thinking that it'd be better to do it in markup that a pipe delimited list.&lt;br&gt;
&lt;br&gt;
Which is about the time that I saw that the DropDownList control does exactly that.  So, I removed the attribute/pipe-delimited code from the RadioButtonList and reformatted the data so that it was in markup:&lt;br&gt;
[CodeSnippet]&lt;PopulationDataSourceSettings BusinessObjectType="BusinessObjects.EntityType" &lt;br&gt;
                                                      DisplayFieldNamesAlternate="name|"&lt;br&gt;
                                                      FormatString="{0}" &lt;br&gt;
                                                      MethodToExecute="FillAll;" &lt;br&gt;
                                                      ValueMember="EntityTypeiD" /&gt;[/CodeSnippet]&lt;br&gt;
&lt;br&gt;
The editor informs me that this isn't a valid tag to have there, but it actually renders properly at runtime.&lt;br&gt;
&lt;br&gt;
Is that a valid workaround to the problem right now, or should I be doing something else?&lt;br&gt;</description><pubDate>Mon, 19 Feb 2007 08:50:32 GMT</pubDate><dc:creator>Justin Buist</dc:creator></item><item><title>RE: Can't get ListBox to work in designtime</title><link>http://forum.strataframe.net/FindPost6152.aspx</link><description>OK, Will, looks like the TypeConverter is working properly.&amp;nbsp; Is this on a web server, or on your development machine?&amp;nbsp; If it's on a web server, then you'll need to deploy the MicroFour StrataFrame Extensibility.dll assembly along with the other SF DLLs to the website in either the \bin folder of the web site or the GAC on the web server.&amp;nbsp; The TypeConverter that parses the markup string back into a WebListPopulationSettings object is stored within that assembly.</description><pubDate>Wed, 24 Jan 2007 09:49:45 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Can't get ListBox to work in designtime</title><link>http://forum.strataframe.net/FindPost5760.aspx</link><description>Thanks for looking into this. I am totally stuck.</description><pubDate>Thu, 11 Jan 2007 12:58:15 GMT</pubDate><dc:creator>Wil Cantrell</dc:creator></item><item><title>RE: Can't get ListBox to work in designtime</title><link>http://forum.strataframe.net/FindPost5740.aspx</link><description>Doesn't sound like a beginners mistake... it sounds more like a TypeConverter or TypeEditor issue... I'll check it and let you know.</description><pubDate>Thu, 11 Jan 2007 11:23:13 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>