﻿<?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 - I am trying to do a client side bind on the WebGrid control problems</title><link>http://www.intersoftsolutions.com/Community/WebCombo/I-am-trying-to-do-a-client-side-bind-on-the-WebGrid-control-problems/</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>I am trying to do a client side bind on the WebGrid control problems</title><link>http://www.intersoftsolutions.com/Community/WebCombo/I-am-trying-to-do-a-client-side-bind-on-the-WebGrid-control-problems/</link><pubDate>Thu, 15 Nov 2012 21:57:00 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;Here, I attached my working sample and it works well. I am using both to WebGrid and GridView. Two combos are used. Each of them are integrated to WebGrid or GridView. I am able to bind not only in the first row. &lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>I am trying to do a client side bind on the WebGrid control problems</title><link>http://www.intersoftsolutions.com/Community/WebCombo/I-am-trying-to-do-a-client-side-bind-on-the-WebGrid-control-problems/</link><pubDate>Thu, 15 Nov 2012 17:10:48 GMT</pubDate><dc:creator>mberlin</dc:creator><description>&lt;p /&gt;&lt;pre&gt;		function CreateData()		{
			
			var dataTable = new ISDataTable();
			var idColumn = new ISDataColumn(dataTable);
			var textColumn = new ISDataColumn(dataTable);
			var checkColumn = new ISDataColumn(dataTable);
			var descColumn = new ISDataColumn(dataTable);
				   
			/* setup data columns */
			dataTable.Name = dataTable.TableName = "Courses";
			idColumn.Name = idColumn.ColumnName = "CourseNum";
			textColumn.Name = textColumn.ColumnName = "Text";
				   
			/* add columns to data table */
			dataTable.Columns.Add(idColumn);
			dataTable.Columns.Add(textColumn);
			
			var midTerm_Checked = '&amp;lt;%= cb_midterms.Checked %&amp;gt;';
			/* add rows to data table */
			for(i=0;i&amp;lt;document.getElementById("ctl00_ContentPlaceHolder_main_ddl_Course_Main").options.length;i&amp;#43;&amp;#43;)
			{
				var dataRow = dataTable.NewRow();
				dataRow.Cells.GetNamedItem("CourseNum").Value = document.getElementById("ctl00_ContentPlaceHolder_main_ddl_Course_Main").options[i].value;
				dataRow.Cells.GetNamedItem("Text").Value = document.getElementById("ctl00_ContentPlaceHolder_main_ddl_Course_Main").options[i].text;
				
				dataTable.Rows.Add(dataRow);
			}
			
			var combo = ISGetObject("wc_ddl_courses_Table");
					
			if(combo != null) {
				/* bind the data table to WebCombo */
				combo.SetDataSource(dataTable);
				combo.DataBind();
				combo.Render();
				combo.ShowDropDown();
				   
				event.cancelBubble = true;
				event.returnValue = false;
			}
}
&amp;lt;asp:DropDownList ID="ddl_Course_Main" CssClass="hidden" runat="server"&amp;gt;&amp;lt;/asp:DropDownList&amp;gt;
&amp;lt;asp:GridView ID="gv_main" runat="server"
							CssClass="gridview"
							GridLines="Both"
							AutoGenerateColumns="False"
						    OnRowDataBound="gv_main_OnRowDataBound"
						    AlternatingRowStyle-BackColor="LightGray"
							EmptyDataText="No Records Found"&amp;gt;
							&amp;lt;Columns&amp;gt;				&amp;lt;asp:TemplateField HeaderText="Course" ItemStyle-Wrap="false" HeaderStyle-ForeColor="Black" HeaderStyle-HorizontalAlign="Left"&amp;gt;
									&amp;lt;ItemTemplate&amp;gt;
										&amp;lt;asp:Label ID="lbl_course_number" CssClass="data" runat="server" Text='&amp;lt;%# Eval("CourseNum")%&amp;gt;'&amp;gt;&amp;lt;/asp:Label&amp;gt;
										&amp;lt;asp:Label ID="lbl_course_name" CssClass="data" runat="server" Text='&amp;lt;%# Eval("CourseName")%&amp;gt;'&amp;gt;&amp;lt;/asp:Label&amp;gt;										&amp;lt;div id="Wc_Course" runat="server"&amp;gt;
										&amp;lt;ISWebCombo:WebCombo ID="wc_ddl_courses_Table" runat="server" Height="20px" UseDefaultStyle="True"
											Width="150px" ViewStateStorage="None" DataTextField="Text" DataValueField="CourseNum"
											BindingOperationMode="ClientBinding"&amp;gt;
											
											&amp;lt;Columns&amp;gt;
												&amp;lt;ISWebCombo:WebComboColumn Name="CourseNum" BaseFieldName="CourseNum" HeaderText="Course Number" /&amp;gt;
												&amp;lt;ISWebCombo:WebComboColumn Name="Text" BaseFieldName="Text" HeaderText="Item Text" /&amp;gt;
												
											&amp;lt;/Columns&amp;gt;
											
											&amp;lt;LayoutSettings ComboMode="MultipleColumns" StatusBoxVisible="false" /&amp;gt;
											&amp;lt;FlyPostBackSettings PostHiddenFields="true" PostInputControls="true" /&amp;gt;
											
										&amp;lt;/ISWebCombo:WebCombo&amp;gt;
											&amp;lt;/div&amp;gt;
										
			
																&amp;lt;/ItemTemplate&amp;gt;
								&amp;lt;/asp:TemplateField&amp;gt;
		&amp;lt;/Columns&amp;gt;
						&amp;lt;/asp:GridView&amp;gt;&lt;/pre&gt;
&lt;p&gt; Only does the first one&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>I am trying to do a client side bind on the WebGrid control problems</title><link>http://www.intersoftsolutions.com/Community/WebCombo/I-am-trying-to-do-a-client-side-bind-on-the-WebGrid-control-problems/</link><pubDate>Tue, 13 Nov 2012 23:56:00 GMT</pubDate><dc:creator>mberlin</dc:creator><description>&lt;p&gt;The example again only works with a webcombo not in a webgrid or gridview. I have a colume in a webgrid that has combo boxes that I want to have all the same data that I am trying to do a client side bind but. But I can not apply all webcombo with it only does the first row webcomb&lt;/p&gt;&lt;p&gt;&lt;span style="background-color: rgb(255, 255, 255); color: rgb(63, 63, 63); font-family: 'lucida grande', 'segoe ui', arial, verdana, tahoma; font-size: 12px; line-height: 18px;"&gt;I need to do some thing like&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color: rgb(255, 255, 255); color: rgb(63, 63, 63); font-family: 'lucida grande', 'segoe ui', arial, verdana, tahoma; font-size: 12px; line-height: 18px;"&gt;for(var i=1; grid.rows.lenght; i&amp;#43;&amp;#43;) {&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color: rgb(255, 255, 255); color: rgb(63, 63, 63); font-family: 'lucida grande', 'segoe ui', arial, verdana, tahoma; font-size: 12px; line-height: 18px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;var combo =&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); color: rgb(63, 63, 63); font-family: 'lucida grande', 'segoe ui', arial, verdana, tahoma; font-size: 12px; line-height: 18px;"&gt;grid.rows[i].cells[0].&lt;/span&gt;&lt;span style="background-color: rgb(255, 255, 255); color: rgb(63, 63, 63); font-family: 'lucida grande', 'segoe ui', arial, verdana, tahoma; font-size: 12px; line-height: 18px;"&gt;ISGetObject("ddl_courses");&lt;/span&gt;&lt;/p&gt;
&lt;p style="font-family: 'lucida grande', 'segoe ui', arial, verdana, tahoma; line-height: 18px; margin-right: 0px; margin-left: 0px; padding: 0px; color: rgb(63, 63, 63); font-size: 12px; background-color: rgb(255, 255, 255);"&gt;     combo.SetDataSource(dataTable);&lt;/p&gt;
&lt;p style="font-family: 'lucida grande', 'segoe ui', arial, verdana, tahoma; line-height: 18px; margin-right: 0px; margin-left: 0px; padding: 0px; color: rgb(63, 63, 63); font-size: 12px; background-color: rgb(255, 255, 255);"&gt;}&lt;/p&gt;
&lt;p style="font-family: 'lucida grande', 'segoe ui', arial, verdana, tahoma; line-height: 18px; margin-right: 0px; margin-left: 0px; padding: 0px; color: rgb(63, 63, 63); font-size: 12px; background-color: rgb(255, 255, 255);"&gt;but is does not work any ideas.&lt;/p&gt;
&lt;p style="font-family: 'lucida grande', 'segoe ui', arial, verdana, tahoma; line-height: 18px; margin-right: 0px; margin-left: 0px; padding: 0px; color: rgb(63, 63, 63); font-size: 12px; background-color: rgb(255, 255, 255);"&gt;Matt&lt;/p&gt;
&lt;p style="font-family: 'lucida grande', 'segoe ui', arial, verdana, tahoma; line-height: 18px; margin-right: 0px; margin-left: 0px; padding: 0px; color: rgb(63, 63, 63); font-size: 12px; background-color: rgb(255, 255, 255);"&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>I am trying to do a client side bind on the WebGrid control problems</title><link>http://www.intersoftsolutions.com/Community/WebCombo/I-am-trying-to-do-a-client-side-bind-on-the-WebGrid-control-problems/</link><pubDate>Tue, 13 Nov 2012 22:53:53 GMT</pubDate><dc:creator>Hans</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I apologize for any inconvenience this problem may have caused you and please forgive me for lack of understanding about the reported problem.&lt;/p&gt;
&lt;p&gt;I made a simple sample that perhaps similar with your scenario requirement.&lt;br&gt;&lt;/br&gt;I bind WebGrid to access data source (Northwind.mdb database and Shippers table).&lt;br&gt;&lt;/br&gt;In WebGrid, I add one column and set the EditType to "WebComboNET".&lt;/p&gt;
&lt;p&gt;I also set the WebCombo to use client binding.&lt;/p&gt;
&lt;p&gt;However I can’t reproduce your issue on my end.&lt;/p&gt;
&lt;p&gt;Could you provide me the step by step how to reproduce your issue on my end?&lt;br&gt;&lt;/br&gt;Or could you provide me a simple sample that replicates your issue? So I can help you to investigate this issue further more.&lt;/p&gt;
&lt;p&gt;And if you don’t mind, please kindly have on my sample and let me know if there is configuration that I missed in my sample.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br&gt;&lt;/br&gt;Hans.&lt;/p&gt;</description></item><item><title>I am trying to do a client side bind on the WebGrid control problems</title><link>http://www.intersoftsolutions.com/Community/WebCombo/I-am-trying-to-do-a-client-side-bind-on-the-WebGrid-control-problems/</link><pubDate>Tue, 13 Nov 2012 15:48:00 GMT</pubDate><dc:creator>mberlin</dc:creator><description>&lt;p&gt;I have a Gridview that has a coloum of WebCombos that I want to do a Client side bind on.&lt;/p&gt;
&lt;p&gt;If I do te standard &lt;/p&gt;
&lt;p&gt;var combo = ISGetObject("ddl_courses");&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt; "&gt;/* bind the data table to WebCombo */&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;combo.SetDataSource(dataTable);&lt;/p&gt;
&lt;p&gt;combo.DataBind();&lt;/p&gt;
&lt;p&gt;combo.Render();&lt;/p&gt;
&lt;p&gt;combo.ShowDropDown();&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt; "&gt;event.cancelBubble = true;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;event.returnValue = false;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;It only binds to the first row I have tried to put this is a loop for each row but I can not get it to work with the ISGetObject&lt;/p&gt;
&lt;p&gt;Any help would be great.&lt;/p&gt;
&lt;p&gt;Matt &lt;/p&gt;</description></item></channel></rss>