﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebCombo - Programmatically created WebCombo issues after upgrading</title><link>http://www.intersoftsolutions.com/Community/WebCombo/p/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Programmatically created WebCombo issues after upgrading</title><link>http://www.intersoftsolutions.com/Community/WebCombo/p/</link><pubDate>Thu, 06 Apr 2017 15:00:15 GMT</pubDate><dc:creator>dbar@diasfalisis.gr</dc:creator><description>&lt;p&gt;Adding the following line in InitializeLayout event handler seems to solve the problem:&lt;/p&gt;&lt;pre&gt;combo.LayoutSettings.AutoColumnOrdering = False&lt;/pre&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Many thanks to Jolis from Live Chat!&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Programmatically created WebCombo issues after upgrading</title><link>http://www.intersoftsolutions.com/Community/WebCombo/p/</link><pubDate>Wed, 05 Apr 2017 03:21:36 GMT</pubDate><dc:creator>dbar@diasfalisis.gr</dc:creator><description>&lt;p class="MsoNormal"&gt;Hello,&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;In our project we use WebCombo 6.0 integrated in a WebGrid
9. Data source and columns are assigned at runtime based on the current setup
for both WebGrid and WebCombos. &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;The scenario we used for many years and worked fine assigns
the datasource to a web combo at the InitializeDatasource event. In there, a
data table is assigned to the .datasource property of WebCombo. After this,
WebComboColumn objects are created programmatically and added to WebCombo
columns property since not all datasource's columns need to be displayed.
Additionally at this step, captions are assigned.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;A few days ago, we upgraded to WebGrid 10 and WebCombo 7
(Premier studio 2016 R1) in order to deal with the problem in the latest
version of Firefox where editing was not working on WebGrid. We applied
successfully the patch you mention in another thread and everything worked
almost ok.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;The aforementioned scenario does not work anymore. Whenever
a WebGrid page is loaded that contains one or more WebCombos, we get the
following error:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;
font-family:Consolas"&gt;An item with the same key has already been added.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;
font-family:Consolas"&gt;&amp;nbsp;&amp;nbsp; at
System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;
font-family:Consolas"&gt;&amp;nbsp;&amp;nbsp; at
System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean
add)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;
font-family:Consolas"&gt;&amp;nbsp;&amp;nbsp; at ISNet.WebUI.ISCollectionBase.IntInsert(Int32
index, INamedObject value)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;
font-family:Consolas"&gt;&amp;nbsp;&amp;nbsp; at
?.?.(DataView ??)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;
font-family:Consolas"&gt;&amp;nbsp;&amp;nbsp; at
?.?.??(DataView &lt;!--[if !supportFootnotes]--&gt;

&lt;/span&gt;&lt;/p&gt;&lt;hr align="left" size="1" width="33%"&gt;&lt;p&gt;





















&lt;!--[endif]--&gt;, String ?)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;
font-family:Consolas"&gt;&amp;nbsp;&amp;nbsp; at
ISNet.WebUI.WebCombo.WebCombo.DataBind()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;
font-family:Consolas"&gt;&amp;nbsp;&amp;nbsp; at
ISNet.WebUI.WebCombo.WebCombo.OnInitializeDataSource(Object dataSource, Boolean
isFlyRequest, String queryText, Int32 startRow, Int32 endRow, Int32 rowCount,
String additionalFilters, Boolean isDDClicked)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;
font-family:Consolas"&gt;&amp;nbsp;&amp;nbsp; at
ISNet.WebUI.WebCombo.WebCombo.OnLoad(EventArgs e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;
font-family:Consolas"&gt;&amp;nbsp;&amp;nbsp; at
System.Web.UI.Control.LoadRecursive()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;
font-family:Consolas"&gt;&amp;nbsp;&amp;nbsp; at System.Web.UI.Control.LoadRecursive()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;
font-family:Consolas"&gt;&amp;nbsp;&amp;nbsp; at
System.Web.UI.Control.LoadRecursive()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;
font-family:Consolas"&gt;&amp;nbsp;&amp;nbsp; at
System.Web.UI.Control.LoadRecursive()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;
font-family:Consolas"&gt;&amp;nbsp;&amp;nbsp; at
System.Web.UI.Control.LoadRecursive()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;
font-family:Consolas"&gt;&amp;nbsp;&amp;nbsp; at
System.Web.UI.Control.LoadRecursive()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;
font-family:Consolas"&gt;&amp;nbsp;&amp;nbsp; at
System.Web.UI.Control.LoadRecursive()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size:10.0pt;mso-bidi-font-size:11.0pt;
font-family:Consolas"&gt;&amp;nbsp;&amp;nbsp; at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;I assume that after the call of our InitializeDatasource
handler, combo columns are created by the framework itself resulting to
duplicates.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;Apparently we need to adapt our way of dealing with the
component's events but we haven't come up with something up to now.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;This is a quite urgent problem so any help would be
appreciated,&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&amp;nbsp;Regards,&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p&gt;

































&lt;/p&gt;&lt;p class="MsoNormal"&gt;&amp;nbsp;Dimitris&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;</description></item></channel></rss>