﻿<?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 - WebGrid Enterprise - Webcombo textvalue not shown when onselecting set in linqdatasource</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webcombo-textvalue-not-shown-when-onselecting-set-in-linqdatasource/</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>Webcombo textvalue not shown when onselecting set in linqdatasource</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webcombo-textvalue-not-shown-when-onselecting-set-in-linqdatasource/</link><pubDate>Thu, 05 Apr 2012 04:57:08 GMT</pubDate><dc:creator>beyti77</dc:creator><category>WebCombo</category><category>LinqDataSource</category><category>onselecting</category><category>lookup</category><category>textvaluefield</category><category>webcombo onselecting linqdatasource</category><description>&lt;p&gt;Sorry for the disturbance I've given; thanks to you, I could easily understood the problem that I've been ignoring from the beginning assuming that the control had a fault, not mine.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I was applying the where condition after a if (!IsPostback) condition so the initial binding was not included in the webcombo.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Once I removed this (extremely fool attempt of me) condition, everything worked file.&lt;/p&gt;
&lt;p&gt;Seems like, all I need was somebody saying that "control is not the problem" afterall. &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Webcombo textvalue not shown when onselecting set in linqdatasource</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webcombo-textvalue-not-shown-when-onselecting-set-in-linqdatasource/</link><pubDate>Thu, 05 Apr 2012 03:16:12 GMT</pubDate><dc:creator>Hans</dc:creator><category>WebCombo</category><category>LinqDataSource</category><category>onselecting</category><category>lookup</category><category>textvaluefield</category><category>webcombo onselecting linqdatasource</category><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;I apologize for any inconvenience this problem may have caused you.&lt;br /&gt;&lt;br /&gt;I have made a simple sample that maybe similar with your application scenario.&lt;br /&gt;I use LinqDataSource with Northwind.mdf database and Shippers table. Then I bind to WebCombo. &lt;br /&gt;In WebCombo, I set DataTextField property to "Phone" &amp; DataValueField to " CompanyName ".&lt;br /&gt;&lt;br /&gt;In Selecting() server side event, I add query code like you did. Here’s the snippet code below:&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;protected void LinqDataSource1_Selecting(object sender, LinqDataSourceSelectEventArgs e){
   LinqDataSource1.Where = @"ShipperID=1";
}&lt;/pre&gt;
&lt;p&gt;But unfortunately, I can’t replicate your issue on my end. I attached the screenshot of my sample’s result (wcLinqDataSource.jpg file). &lt;br /&gt; &lt;br /&gt;Actually, to filter another field that is not the value or text, simply use “AdditionalSeacrhProperty”. By using this property, you would no longer to requery manually.&lt;br /&gt;For further information about AdditionalSearchField feature, you could in WebCombo’s documentation. You also could see in WebCombo’s sample (AdditionalSearchField.aspx)&lt;br /&gt;&lt;br /&gt;But if that feature doesn’t suit with your scenario, would you mind to telling me step-by-step How can I reproduce your issue.&lt;br /&gt;Or if you don’t mind, could you attach your simple sample that indicate your issue? So I can analyze your issue.&lt;br /&gt;&lt;br /&gt;Thank you.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Hans&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Webcombo textvalue not shown when onselecting set in linqdatasource</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webcombo-textvalue-not-shown-when-onselecting-set-in-linqdatasource/</link><pubDate>Wed, 04 Apr 2012 11:05:04 GMT</pubDate><dc:creator>beyti77</dc:creator><category>WebCombo</category><category>LinqDataSource</category><category>onselecting</category><category>lookup</category><category>textvaluefield</category><category>webcombo onselecting linqdatasource</category><description>&lt;p&gt;I set a linqdatasource to a webcombo and set its value field to "Id" and text value field to "Name" and when no onselecting event is set to linqdatasource; all of the text values are shown as expected. &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;But when I set a onselecting event to the linqdatasource just to filter the values to only get the values when "Type" column is "1"; webcombo shows the Id values instead of the text values "Name".&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;onselecting event is like:&lt;/p&gt;
&lt;p&gt;dataSource1.Where = @"Type = 1"&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;</description></item></channel></rss>