<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>flexbox Discussions Rss Feed</title><link>http://www.codeplex.com/flexbox/Thread/List.aspx</link><description>flexbox Discussions Rss Description</description><item><title>New Post: Implement Parent/Child Cascading?</title><link>http://flexbox.codeplex.com/discussions/443180</link><description>&lt;div style="line-height: normal;"&gt;I solved this and fixed a &amp;quot;bug&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
I solved the parent/child issue by removing the Div in the OnClick() handler just before adding the new one back (with the filtered data).&lt;br /&gt;
&lt;br /&gt;
I also implemented &amp;quot;keep results&amp;quot;, which shows the full list when the arrow is clicked, even after a selection has been made. I used the information from this article:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://flexbox.codeplex.com/discussions/251643" rel="nofollow"&gt;https://flexbox.codeplex.com/discussions/251643&lt;/a&gt;  (I added the code posted by &amp;quot;Yoannr&amp;quot; AND &amp;quot;jimiscott&amp;quot;.)&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;bug&amp;quot; I ran in to is if you make a selection, keep the mouse on the drop down arrow and then click again, the delay for hiding the results is too long (200 milliseconds) and ends up firing after your mouse click, so the results get hidden. This &amp;quot;bug&amp;quot; is easily reproducible and happens (with or without the changes I mentioned above). There is an easy fix though. In the blur() handler for the input element, change the setTimeout(hideResults()) call from 200 milliseconds to 100 milliseconds. That seems to work perfectly.&lt;br /&gt;
&lt;/div&gt;</description><author>sjudkins</author><pubDate>Tue, 14 May 2013 14:47:50 GMT</pubDate><guid isPermaLink="false">New Post: Implement Parent/Child Cascading? 20130514024750P</guid></item><item><title>New Post: Implement Parent/Child Cascading?</title><link>http://flexbox.codeplex.com/discussions/443180</link><description>&lt;div style="line-height: normal;"&gt;How would you suggest I implement a &amp;quot;Parent/Child Cascading&amp;quot; situatoin on a page? I am using ASP.Net and I hacehave the flexbox code working. I have two flexbox controls on the page, each is populated with data. When the user selects an option from one of the drop downs, I need to filter the choices in the other dropdown (and probably unselect if there was something selected and return the control to the &amp;quot;watermark&amp;quot;). I have tried just adding another call to the flexbox function from the OnSelect even handler for the parent, but that adds another control to the page. Is there any way to dynamically remove (not hide, but remove) the child? (I could then call the flexbox function and let it add it...) Or, what other solution would you suggest?&lt;br /&gt;
&lt;br /&gt;
This is a great control. Thanks!&lt;br /&gt;
&lt;/div&gt;</description><author>sjudkins</author><pubDate>Thu, 09 May 2013 22:48:04 GMT</pubDate><guid isPermaLink="false">New Post: Implement Parent/Child Cascading? 20130509104804P</guid></item><item><title>New Post: Line/word wrap in the combo list placing vertical separator in the middle of the next line.</title><link>http://flexbox.codeplex.com/discussions/440381</link><description>&lt;div style="line-height: normal;"&gt;When entries in the combo list are wider than the list vbox, and line/word wrapping is enabled, the vertical separator that is supposed to separate the entries appears in the middle of the next line instead of below the second line of the wrapped entry. &lt;br /&gt;
For example:&lt;br /&gt;
|_________________|&lt;br /&gt;
| This is the first line. |&lt;br /&gt;
|_________________|&lt;br /&gt;
| This is the second.  |&lt;br /&gt;
| line.                            |&lt;br /&gt;
| This is the third line.|&lt;br /&gt;
|_________________|&lt;br /&gt;
| This is the forth line.|&lt;br /&gt;
&lt;/div&gt;</description><author>alexxmed</author><pubDate>Mon, 15 Apr 2013 23:09:08 GMT</pubDate><guid isPermaLink="false">New Post: Line/word wrap in the combo list placing vertical separator in the middle of the next line. 20130415110908P</guid></item><item><title>New Post: Integration with jqgrid</title><link>http://flexbox.codeplex.com/discussions/265550</link><description>&lt;div style="line-height: normal;"&gt;Please check this page: &lt;a href="http://techbrij.com/jqgrid-flexbox-jquery-autocomplete-edit" rel="nofollow"&gt;http://techbrij.com/jqgrid-flexbox-jquery-autocomplete-edit&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>johnny81</author><pubDate>Tue, 26 Feb 2013 11:25:58 GMT</pubDate><guid isPermaLink="false">New Post: Integration with jqgrid 20130226112558A</guid></item><item><title>New Post: Selected list Page index while click on Arrow</title><link>http://flexbox.codeplex.com/discussions/430413</link><description>&lt;div style="line-height: normal;"&gt;Hi &lt;span style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:12.800000190734863px; background-color:rgb(255,255,255)"&gt;
Noah,&lt;/span&gt;
&lt;div&gt;&lt;font color="#222222" face="arial, sans-serif"&gt;&lt;br&gt;
&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#222222" face="arial, sans-serif"&gt;First, Click on arrow and Show all records and Then i have moved to 2nd page index.(Screenshot Attached - Screen-1.png)&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#222222" face="arial, sans-serif"&gt;&lt;br&gt;
&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#222222" face="arial, sans-serif"&gt;Second, Then I have selected record (id - 9) which is on page index 2. Then click on Arrow as per Screenshot .Here i am showing whole record instead of Selected record only.&lt;/font&gt;&lt;span style="color:rgb(34,34,34); font-family:arial,sans-serif"&gt;(Screenshot
 Attached - Screen-2.png)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:rgb(34,34,34); font-family:arial,sans-serif"&gt;&lt;br&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:rgb(34,34,34); font-family:arial,sans-serif"&gt;Third, When i am clicking on Arrow then its showing me 1st Index Rather that 2nd index on which my Seleted record is there.So here i want to automatically select index 2.&lt;/span&gt;&lt;font color="#222222" face="arial, sans-serif"&gt;.&lt;/font&gt;&lt;span style="color:rgb(34,34,34); font-family:arial,sans-serif"&gt;(Screenshot
 Attached - Screen-3.png)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:rgb(34,34,34); font-family:arial,sans-serif"&gt;&lt;br&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:rgb(34,34,34); font-family:arial,sans-serif"&gt;Waiting for your response.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#222222" face="arial, sans-serif"&gt;&lt;br&gt;
&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#222222" face="arial, sans-serif"&gt;Thanks,&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font color="#222222" face="arial, sans-serif"&gt;Ravi.&lt;br&gt;
&lt;/font&gt;
&lt;div&gt;&lt;span style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:12.800000190734863px; background-color:rgb(255,255,255)"&gt;&lt;br&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:12.800000190734863px; background-color:rgb(255,255,255)"&gt;&lt;br&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><author>rsolucky</author><pubDate>Wed, 23 Jan 2013 07:28:22 GMT</pubDate><guid isPermaLink="false">New Post: Selected list Page index while click on Arrow 20130123072822A</guid></item><item><title>New Post: Selected list Page index while click on Arrow</title><link>http://flexbox.codeplex.com/discussions/430413</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;&lt;span style="font-size:10pt"&gt;Thank you for your reply Noah.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:10pt"&gt;But for that i need to show you screen shot but here i can't attach anything, So would you give me your email id where i can send you these.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:10pt"&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Ravi.&lt;/p&gt;
&lt;/div&gt;</description><author>rsolucky</author><pubDate>Wed, 23 Jan 2013 06:53:49 GMT</pubDate><guid isPermaLink="false">New Post: Selected list Page index while click on Arrow 20130123065349A</guid></item><item><title>New Post: Selected list Page index while click on Arrow</title><link>http://flexbox.codeplex.com/discussions/430413</link><description>&lt;div style="line-height: normal;"&gt;
&lt;div&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;I’m not quite sure what you’re trying to achieve. Can you describe in more detail, or provide an example with real data please?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;Noah&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in"&gt;
&lt;p&gt;&lt;b&gt;&lt;span style="font-size:10.0pt; font-family:"&gt;From:&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10.0pt; font-family:"&gt; rsolucky [email removed]
&lt;br&gt;
&lt;b&gt;Sent:&lt;/b&gt; Tuesday, January 22, 2013 4:28 AM&lt;br&gt;
&lt;b&gt;To:&lt;/b&gt; Noah Heldman&lt;br&gt;
&lt;b&gt;Subject:&lt;/b&gt; Selected list Page index while click on Arrow [flexbox:430413]&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;From: rsolucky&lt;/span&gt;&lt;/p&gt;
&lt;div id="ThreadNotificationPostBody" style="margin-bottom:24.0pt"&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;Hi,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;I am Using Flexbox for multiple Column grid in My Application. And When i have selected one record and Then by Clicking on Arrow i want all records and Page Index should be such that that current Selected Value
 should be Display.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:10.0pt; font-family:"&gt;thanks,&lt;/span&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;Ravi.&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><author>nheldman</author><pubDate>Tue, 22 Jan 2013 16:35:22 GMT</pubDate><guid isPermaLink="false">New Post: Selected list Page index while click on Arrow 20130122043522P</guid></item><item><title>New Post: Selected list Page index while click on Arrow</title><link>http://flexbox.codeplex.com/discussions/430413</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am Using Flexbox for multiple Column grid in My Application. And When i have selected one record and Then by Clicking on Arrow i want all records and Page Index should be such that that current Selected Value should be Display.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:10pt"&gt;thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Ravi.&lt;/p&gt;
&lt;/div&gt;</description><author>rsolucky</author><pubDate>Tue, 22 Jan 2013 12:27:33 GMT</pubDate><guid isPermaLink="false">New Post: Selected list Page index while click on Arrow 20130122122733P</guid></item><item><title>New Post: No results for callback()</title><link>http://flexbox.codeplex.com/discussions/403332</link><description>&lt;div style="line-height: normal;"&gt;
&lt;div&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;Thank you! Good catch on that one.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in"&gt;
&lt;p&gt;&lt;b&gt;&lt;span style="font-size:10.0pt; font-family:"&gt;From:&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10.0pt; font-family:"&gt; adeluca [email removed]
&lt;br&gt;
&lt;b&gt;Sent:&lt;/b&gt; Thursday, November 15, 2012 11:47 AM&lt;br&gt;
&lt;b&gt;To:&lt;/b&gt; Noah Heldman&lt;br&gt;
&lt;b&gt;Subject:&lt;/b&gt; No results for callback() [flexbox:403332]&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;From: adeluca&lt;/span&gt;&lt;/p&gt;
&lt;div id="ThreadNotificationPostBody" style="margin-bottom:24.0pt"&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;First off, amazing library. Thanks for all the work you've done. One small issue I encountered that I hope I have fixed below... In the unminified version, near line 260, there is a block that tests for totalResults
 being NaN and a paging object. Unfortunately, there is no logical operation within the block for returning a no results message. The modulo of 0/pageSize will never be greater than 0 and so the bit where pages gets incremented before
&lt;span style="color:silver"&gt;parseInt(&amp;#43;&amp;#43;pages)&lt;/span&gt; never fires off.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;To fix this, I changed this block:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;if (isNaN(totalResults) &amp;&amp; o.paging) {&lt;/pre&gt;
&lt;pre&gt;                ....&lt;/pre&gt;
&lt;pre&gt;                totalResults = data[o.resultsProperty].length;          &lt;/pre&gt;
&lt;pre&gt;                var pages = totalResults / pageSize;&lt;/pre&gt;
&lt;pre&gt;                if (totalResults % pageSize &amp;gt; 0) pages = parseInt(&amp;#43;&amp;#43;pages);&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;to the following:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;if (isNaN(totalResults) &amp;&amp; o.paging) {&lt;/pre&gt;
&lt;pre&gt;                ....&lt;/pre&gt;
&lt;pre&gt;                totalResults = data[o.resultsProperty].length;   &lt;/pre&gt;
&lt;pre&gt;&lt;span style="color:red"&gt;/*  added to correct no results fail - ajd 11/15/2012   */&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="color:red"&gt;                if(totalResults == 0) { &lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="color:red"&gt;                     data[o.totalProperty] = 0;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="color:red"&gt;                     displayItems(data,q); // I can haz no results?&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="color:red"&gt;                }&lt;/span&gt;       &lt;/pre&gt;
&lt;pre&gt;                var pages = totalResults / pageSize;&lt;/pre&gt;
&lt;pre&gt;                if (totalResults % pageSize &amp;gt; 0) {&lt;/pre&gt;
&lt;pre&gt;                     pages = parseInt(&amp;#43;&amp;#43;pages);&lt;/pre&gt;
&lt;pre&gt;                }&lt;/pre&gt;
&lt;pre&gt; &lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;HTH,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;al&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><author>nheldman</author><pubDate>Thu, 15 Nov 2012 22:44:11 GMT</pubDate><guid isPermaLink="false">New Post: No results for callback() 20121115104411P</guid></item><item><title>New Post: resetting and passing new data to flexbox</title><link>http://flexbox.codeplex.com/discussions/53653</link><description>&lt;div style="line-height: normal;"&gt;
&lt;div&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;Great example, thanks for posting!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in"&gt;
&lt;p&gt;&lt;b&gt;&lt;span style="font-size:10.0pt; font-family:"&gt;From:&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10.0pt; font-family:"&gt; adeluca [email removed]
&lt;br&gt;
&lt;b&gt;Sent:&lt;/b&gt; Thursday, November 15, 2012 11:49 AM&lt;br&gt;
&lt;b&gt;To:&lt;/b&gt; Noah Heldman&lt;br&gt;
&lt;b&gt;Subject:&lt;/b&gt; Re: resetting and passing new data to flexbox [flexbox:53653]&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;From: adeluca&lt;/span&gt;&lt;/p&gt;
&lt;div id="ThreadNotificationPostBody" style="margin-bottom:24.0pt"&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;I got this done by binding some code (in red below) to my reset event:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;br&gt;$(function() {&lt;/pre&gt;
&lt;pre&gt;   var fname= $('#partner_flexbox').closest(&amp;quot;form&amp;quot;).attr(&amp;quot;id&amp;quot;) &lt;/pre&gt;
&lt;pre&gt;   doPartner();&lt;/pre&gt;
&lt;pre&gt;&lt;span style="color:red"&gt;   $(&amp;quot;#&amp;quot;&amp;#43;fname).bind(&amp;quot;reset&amp;quot;, function() {&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="color:red"&gt;     emptyPartner();&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="color:red"&gt;    });&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;   function doPartner() {&lt;/pre&gt;
&lt;pre&gt;           $('#partner_flexbox').flexbox('partner_dropdown', {&lt;/pre&gt;
&lt;pre&gt;               width: 165, queryDelay: 350, &lt;/pre&gt;
&lt;pre&gt;               noResultsText: 'No partners by that name found', &lt;/pre&gt;
&lt;pre&gt;               watermark: 'Enter a partner name', &lt;/pre&gt;
&lt;pre&gt;               minChars: 2, &lt;/pre&gt;
&lt;pre&gt;               paging: { pageSize: 10}&lt;/pre&gt;
&lt;pre&gt;               });  &lt;/pre&gt;
&lt;pre&gt;   }&lt;/pre&gt;
&lt;pre&gt;   function emptyPartner() {&lt;/pre&gt;
&lt;pre&gt;           $('#partner_flexbox').empty();&lt;/pre&gt;
&lt;pre&gt;           doPartner();&lt;/pre&gt;
&lt;pre&gt;   }&lt;/pre&gt;
&lt;pre&gt;});&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;&lt;br&gt;
The OP wants this to happen when an item is selected. The docs mention that there is an onSelect event:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;onSelect: function() {  &lt;/pre&gt;
&lt;pre&gt;   $('#ffb7-result')  &lt;/pre&gt;
&lt;pre&gt;  .html('You selected' &amp;#43; this.value &amp;#43; ', ' &amp;#43;  &lt;/pre&gt;
&lt;pre&gt;  'which has a hidden value of ' &amp;#43;  &lt;/pre&gt;
&lt;pre&gt;  $('input[name=ffb7]').val());  &lt;/pre&gt;
&lt;pre&gt;}  &lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;Simply make a call to a function like emptyPartner() above only pass it the values in onSelect() as params:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;onSelect: function() {  &lt;/pre&gt;
&lt;pre&gt;   $('#ffb7-result')  &lt;/pre&gt;
&lt;pre&gt;  .html('You selected' &amp;#43; this.value &amp;#43; ', ' &amp;#43;  &lt;/pre&gt;
&lt;pre&gt;  'which has a hidden value of ' &amp;#43;  &lt;/pre&gt;
&lt;pre&gt;  $('input[name=ffb7]').val());&lt;/pre&gt;
&lt;pre&gt;  &lt;span style="color:red"&gt;emptyPartner( this.value, $('input[name=ffb7]').val() )&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;}&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><author>nheldman</author><pubDate>Thu, 15 Nov 2012 22:41:51 GMT</pubDate><guid isPermaLink="false">New Post: resetting and passing new data to flexbox 20121115104151P</guid></item><item><title>New Post: resetting and passing new data to flexbox</title><link>http://flexbox.codeplex.com/discussions/53653</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I got this done by binding some code (in red below) to my reset event:&lt;/p&gt;
&lt;pre&gt;&lt;br&gt;$(function() {
   var fname= $('#partner_flexbox').closest(&amp;quot;form&amp;quot;).attr(&amp;quot;id&amp;quot;) 
   doPartner();
&lt;span style="color:#ff0000"&gt;   $(&amp;quot;#&amp;quot;&amp;#43;fname).bind(&amp;quot;reset&amp;quot;, function() {
     emptyPartner();
    });&lt;/span&gt;
   function doPartner() {
	   $('#partner_flexbox').flexbox('partner_dropdown', {
	       width: 165, queryDelay: 350, 
	       noResultsText: 'No partners by that name found', 
	       watermark: 'Enter a partner name', 
	       minChars: 2, 
	       paging: { pageSize: 10}
	       });  
   }
   function emptyPartner() {
	   $('#partner_flexbox').empty();
	   doPartner();
   }
});&lt;br&gt;&lt;/pre&gt;
&lt;p&gt;&lt;br&gt;
The OP wants this to happen when an item is selected.&amp;nbsp; The docs mention that there is an onSelect event:&lt;/p&gt;
&lt;pre&gt;onSelect: function() {  
   $('#ffb7-result')  
  .html('You selected' &amp;#43; this.value &amp;#43; ', ' &amp;#43;  
  'which has a hidden value of ' &amp;#43;  
  $('input[name=ffb7]').val());  
}  
&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Simply make a call to a function like emptyPartner() above only pass it the values in onSelect() as params:&lt;/p&gt;
&lt;pre&gt;onSelect: function() {  
   $('#ffb7-result')  
  .html('You selected' &amp;#43; this.value &amp;#43; ', ' &amp;#43;  
  'which has a hidden value of ' &amp;#43;  
  $('input[name=ffb7]').val());
  &lt;span style="color:#ff0000"&gt;emptyPartner( this.value, $('input[name=ffb7]').val() )&lt;/span&gt;
}&lt;br&gt;&lt;/pre&gt;
&amp;nbsp;&lt;/div&gt;</description><author>adeluca</author><pubDate>Thu, 15 Nov 2012 17:59:01 GMT</pubDate><guid isPermaLink="false">New Post: resetting and passing new data to flexbox 20121115055901P</guid></item><item><title>New Post: No results for callback()</title><link>http://flexbox.codeplex.com/discussions/403332</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;First off, amazing library. Thanks for all the work you've done. One small issue I encountered that I hope I have fixed below... In the unminified version near line 260 there is a test for totalResults being NaN and there being a paging object. Unfortunately,
 there is no logical operation for returning a no results message.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I changed this block:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;pre&gt;if (isNaN(totalResults) &amp;&amp; o.paging) {
                ....
                totalResults = data[o.resultsProperty].length;          
                var pages = totalResults / pageSize;
                if (totalResults % pageSize &amp;gt; 0) {
                     pages = parseInt(&amp;#43;&amp;#43;pages);
                }&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;to the following:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;pre&gt;if (isNaN(totalResults) &amp;&amp; o.paging) {
                ....
                totalResults = data[o.resultsProperty].length;   
/*  added to correct no results fail - ajd 11/15/2012   */
                if(totalResults == 0) { 
                     data[o.totalProperty] = 0;
                     displayItems(data,q); // I can haz no results?
                }       
                var pages = totalResults / pageSize;
                if (totalResults % pageSize &amp;gt; 0) {
                     pages = parseInt(&amp;#43;&amp;#43;pages);
                }

&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;al&lt;/p&gt;
&lt;/div&gt;</description><author>adeluca</author><pubDate>Thu, 15 Nov 2012 14:43:46 GMT</pubDate><guid isPermaLink="false">New Post: No results for callback() 20121115024346P</guid></item><item><title>New Post: Duplicate/merged results in dropdown</title><link>http://flexbox.codeplex.com/discussions/389634</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi, got a conundrum that I can't seem to work out. Basically we have a typeahead box that starts querying after the 3rd character is entered. What's happening is the results of each search are being combined and I can't figure out how to stop it. I've tried
 forcing the PHP code building the JSON results to clear each time but it still happens.&lt;/p&gt;
&lt;p&gt;I can see each individual query fire in Firebug and each only returns it's designated 5 results but when the list finishes drawing there might be 10 items in it.&lt;/p&gt;
&lt;p&gt;Example.. Searching for Bill&lt;/p&gt;
&lt;p&gt;First query select top 5 where %bil%..&amp;nbsp;&amp;nbsp; json result is correct.&lt;/p&gt;
&lt;p&gt;Drop down displays results.&lt;/p&gt;
&lt;p&gt;Second query select top 5 where %bill%... json is also correct.&lt;/p&gt;
&lt;p&gt;Drop down &amp;quot;might&amp;quot; display all 10 results. Previous 5 plus this 5, but it doesn't do it every time.&lt;/p&gt;
&lt;p&gt;Any thoughts??????&lt;/p&gt;
&lt;/div&gt;</description><author>RustedBucket</author><pubDate>Tue, 31 Jul 2012 00:25:58 GMT</pubDate><guid isPermaLink="false">New Post: Duplicate/merged results in dropdown 20120731122558A</guid></item><item><title>New Post: Can not see the web service response in FlexBox</title><link>http://flexbox.codeplex.com/discussions/387782</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi Noah, thanks for answering.&lt;/p&gt;
&lt;p&gt;The web service call is executed when I click the flexbox arrow. Here is the response.&lt;/p&gt;
&lt;p&gt;
&lt;div style="color: black; background-color: white;"&gt;
&lt;pre&gt;&lt;span style="color: #a31515;"&gt;"{\"results\":[{\"id\":\"29\",\"name\":\"Andreani Logistica SA  \"},{\"id\":\"33\",\"name\":\"AstraZeneca SA. \"},{\"id\":\"34\",\"name\":\"FARMACITY SA \"}]}"&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;For the moment i've solved it by calling the web service with the jquery object, like this&lt;/p&gt;
&lt;p&gt;
&lt;div style="color: black; background-color: white;"&gt;
&lt;pre&gt;            $.ajax(
            {
              type: &lt;span style="color: #a31515;"&gt;"POST"&lt;/span&gt;,
              url: &lt;span style="color: #a31515;"&gt;'AgentService.asmx/GetAgents'&lt;/span&gt;,
              success: function(data)
              {
                &lt;span style="color: blue;"&gt;var&lt;/span&gt; json = $.parseJSON(data.text);
                $(&lt;span style="color: #a31515;"&gt;'#fb'&lt;/span&gt;).flexbox(json,
                {
                  resultTemplate: &lt;span style="color: #a31515;"&gt;'&amp;lt;div class="col1"&amp;gt;{id}&amp;lt;/div&amp;gt; &amp;lt;div class="col2"&amp;gt;{name}&amp;lt;/div&amp;gt;'&lt;/span&gt;,
                  watermark: &lt;span style="color: #a31515;"&gt;'Type to search...'&lt;/span&gt;,
                  width: 500,
                  onSelect: function()
                  {
                      alert(&lt;span style="color: #a31515;"&gt;'You selected "'&lt;/span&gt; + &lt;span style="color: blue;"&gt;this&lt;/span&gt;.value + &lt;span style="color: #a31515;"&gt;'", '&lt;/span&gt; +
                            &lt;span style="color: #a31515;"&gt;'which has a hidden value of '&lt;/span&gt; + &lt;span style="color: blue;"&gt;this&lt;/span&gt;.getAttribute(&lt;span style="color: #a31515;"&gt;'hiddenValue'&lt;/span&gt;));
                  }
                });
              }
            });
&lt;/pre&gt;
&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;Then I had to parse the response to JSON, assign it to flexbox and it worked just fine.&lt;/p&gt;
&lt;p&gt;Gabay.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;blockquote style="border: solid .1em #ccc; font-style: italic; margin: .25em 1em 0 1em; padding: 0 .25em 0 .25em;"&gt;&lt;strong&gt;nheldman wrote:&lt;/strong&gt;&lt;br /&gt;&lt;/blockquote&gt;
&lt;blockquote style="border: solid .1em #ccc; font-style: italic; margin: .25em 1em 0 1em; padding: 0 .25em 0 .25em;"&gt;
&lt;div&gt;
&lt;p&gt;&lt;span style="font-size: 11.0pt;"&gt;You mentioned that your code is being called. When you debug, does the result string contain what you expect it to?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 11.0pt;"&gt;I&amp;rsquo;m not seeing any code in your web method that grabs what the user typed in (which is available in query string parameter &amp;ldquo;q&amp;rdquo;), and searching based on that, but maybe you don&amp;rsquo;t need that.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 11.0pt;"&gt;Is your data getting serialized into a JavaScript array? Are the &amp;ldquo;id&amp;rdquo; and &amp;ldquo;name&amp;rdquo; properties being serialized to lowercase? They need to be&amp;hellip;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 11.0pt;"&gt;Noah&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div style="border: none; border-top: solid #B5C4DF 1.0pt; padding: 3.0pt 0in 0in 0in;"&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style="font-size: 10.0pt;"&gt;From:&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-size: 10.0pt;"&gt; gabay [email removed] &lt;br /&gt; &lt;strong&gt;Sent:&lt;/strong&gt; Monday, July 23, 2012 11:34 AM&lt;br /&gt; &lt;strong&gt;To:&lt;/strong&gt; Noah Heldman&lt;br /&gt; &lt;strong&gt;Subject:&lt;/strong&gt; Can not see the web service response in FlexBox [flexbox:387782]&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9.0pt;"&gt;From: gabay&lt;/span&gt;&lt;/p&gt;
&lt;div id="ThreadNotificationPostBody" style="margin-bottom: 24.0pt;"&gt;
&lt;p&gt;&lt;span style="font-size: 9.0pt;"&gt;Hi, i'm trying to fill my flexbox with a web service method from an aspx.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9.0pt;"&gt;Here is the call to the web service:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;        $(function() {&lt;/pre&gt;
&lt;pre&gt;            &lt;/pre&gt;
&lt;pre&gt;            $('#fb').flexbox('AgentService.asmx/GetAgents', {&lt;/pre&gt;
&lt;pre&gt;                  method : 'post',&lt;/pre&gt;
&lt;pre&gt;                  watermark: 'Type to search...',&lt;/pre&gt;
&lt;pre&gt;                  width: 400,&lt;/pre&gt;
&lt;pre&gt;                  onSelect: function() {&lt;/pre&gt;
&lt;pre&gt;                      alert('You selected "' + this.value + '", ' +&lt;/pre&gt;
&lt;pre&gt;                            'which has a hidden value of ' + this.getAttribute('hiddenValue'));&lt;/pre&gt;
&lt;pre&gt;                  }&lt;/pre&gt;
&lt;pre&gt;            });&lt;/pre&gt;
&lt;pre&gt;            &lt;/pre&gt;
&lt;pre&gt;        });&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size: 9.0pt;"&gt;When I type a letter in the box, the Web method is executed, but it seems that the results are not being returned to the webpage&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9.0pt;"&gt;Here is my web service code:&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;[WebService(Namespace = &lt;/span&gt;&lt;span style="color: #a31515;"&gt;"&lt;a href="http://tempuri.org/"&gt;http://tempuri.org/&lt;/a&gt;"&lt;/span&gt;&lt;span style="color: black;"&gt;)]&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt;&lt;span style="color: black;"&gt; &lt;/span&gt;&lt;span style="color: blue;"&gt;class&lt;/span&gt;&lt;span style="color: black;"&gt; AgentService : System.Web.Services.WebService&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;{&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt; &lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;  &lt;/span&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt;&lt;span style="color: black;"&gt; AgentService()&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;  {&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt; &lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;    &lt;/span&gt;&lt;span style="color: green;"&gt;//Uncomment the following line if using designed components &lt;/span&gt;&lt;span style="color: black;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;    &lt;/span&gt;&lt;span style="color: green;"&gt;//InitializeComponent(); &lt;/span&gt;&lt;span style="color: black;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;  }&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt; &lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;  [WebMethod]&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;  &lt;/span&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt;&lt;span style="color: black;"&gt; &lt;/span&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt;&lt;span style="color: black;"&gt; GetAgents()&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;  {&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;    &lt;/span&gt;&lt;span style="color: blue;"&gt;try&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;    {&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;      List&amp;lt;Agent&amp;gt; agents = &lt;/span&gt;&lt;span style="color: blue;"&gt;new&lt;/span&gt;&lt;span style="color: black;"&gt; List&amp;lt;Agent&amp;gt;(workSession.SessionUser.Agents);&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;      agents.Sort(&lt;/span&gt;&lt;span style="color: blue;"&gt;delegate&lt;/span&gt;&lt;span style="color: black;"&gt;(Agent a1, Agent a2)&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;                {&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;                  &lt;/span&gt;&lt;span style="color: blue;"&gt;return&lt;/span&gt;&lt;span style="color: black;"&gt; a1.Name.CompareTo(a2.Name);&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;                });&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt; &lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;      List&amp;lt;FlexboxItem&amp;gt; results = &lt;/span&gt;&lt;span style="color: blue;"&gt;new&lt;/span&gt;&lt;span style="color: black;"&gt; List&amp;lt;FlexboxItem&amp;gt;(agents.Count);&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;      &lt;/span&gt;&lt;span style="color: blue;"&gt;foreach&lt;/span&gt;&lt;span style="color: black;"&gt; (Agent agent &lt;/span&gt;&lt;span style="color: blue;"&gt;in&lt;/span&gt;&lt;span style="color: black;"&gt; agents)&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;      {&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;        results.Add(&lt;/span&gt;&lt;span style="color: blue;"&gt;new&lt;/span&gt;&lt;span style="color: black;"&gt; FlexboxItem(agent.Id.ToString(), agent.Name));&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;      }&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt; &lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;      JavaScriptSerializer serializer = &lt;/span&gt;&lt;span style="color: blue;"&gt;new&lt;/span&gt;&lt;span style="color: black;"&gt; JavaScriptSerializer();&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;      &lt;/span&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt;&lt;span style="color: black;"&gt; s = &lt;/span&gt;&lt;span style="color: #a31515;"&gt;"{\"results\": "&lt;/span&gt;&lt;span style="color: black;"&gt; + serializer.Serialize(results) + &lt;/span&gt;&lt;span style="color: #a31515;"&gt;"}"&lt;/span&gt;&lt;span style="color: black;"&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;      &lt;/span&gt;&lt;span style="color: blue;"&gt;return&lt;/span&gt;&lt;span style="color: black;"&gt; s;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;    } &lt;/span&gt;&lt;span style="color: green;"&gt;// try&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;    &lt;/span&gt;&lt;span style="color: blue;"&gt;catch&lt;/span&gt;&lt;span style="color: black;"&gt; (Exception)&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;    {&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;      &lt;/span&gt;&lt;span style="color: blue;"&gt;throw&lt;/span&gt;&lt;span style="color: black;"&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;    } &lt;/span&gt;&lt;span style="color: green;"&gt;// catch&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;  }&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background: white;"&gt;&lt;span style="color: black;"&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span style="font-size: 9.0pt;"&gt;Is there anything i'm missing?. Thanks a lot!&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/blockquote&gt;&lt;/div&gt;</description><author>gabay</author><pubDate>Tue, 24 Jul 2012 13:00:29 GMT</pubDate><guid isPermaLink="false">New Post: Can not see the web service response in FlexBox 20120724010029P</guid></item><item><title>New Post: Can not see the web service response in FlexBox</title><link>http://flexbox.codeplex.com/discussions/387782</link><description>&lt;div style="line-height: normal;"&gt;
&lt;div&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;You mentioned that your code is being called. When you debug, does the result string contain what you expect it to?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;I’m not seeing any code in your web method that grabs what the user typed in (which is available in query string parameter “q”), and searching based on that, but maybe you don’t need that.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;Is your data getting serialized into a JavaScript array? Are the “id” and “name” properties being serialized to lowercase? They need to be…&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;Noah&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in"&gt;
&lt;p&gt;&lt;b&gt;&lt;span style="font-size:10.0pt; font-family:"&gt;From:&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10.0pt; font-family:"&gt; gabay [email removed]
&lt;br&gt;
&lt;b&gt;Sent:&lt;/b&gt; Monday, July 23, 2012 11:34 AM&lt;br&gt;
&lt;b&gt;To:&lt;/b&gt; Noah Heldman&lt;br&gt;
&lt;b&gt;Subject:&lt;/b&gt; Can not see the web service response in FlexBox [flexbox:387782]&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;From: gabay&lt;/span&gt;&lt;/p&gt;
&lt;div id="ThreadNotificationPostBody" style="margin-bottom:24.0pt"&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;Hi, i'm trying to fill my flexbox with a web service method from an aspx.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;Here is the call to the web service:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;        $(function() {&lt;/pre&gt;
&lt;pre&gt;            &lt;/pre&gt;
&lt;pre&gt;            $('#fb').flexbox('AgentService.asmx/GetAgents', {&lt;/pre&gt;
&lt;pre&gt;                  method : 'post',&lt;/pre&gt;
&lt;pre&gt;                  watermark: 'Type to search...',&lt;/pre&gt;
&lt;pre&gt;                  width: 400,&lt;/pre&gt;
&lt;pre&gt;                  onSelect: function() {&lt;/pre&gt;
&lt;pre&gt;                      alert('You selected &amp;quot;' &amp;#43; this.value &amp;#43; '&amp;quot;, ' &amp;#43;&lt;/pre&gt;
&lt;pre&gt;                            'which has a hidden value of ' &amp;#43; this.getAttribute('hiddenValue'));&lt;/pre&gt;
&lt;pre&gt;                  }&lt;/pre&gt;
&lt;pre&gt;            });&lt;/pre&gt;
&lt;pre&gt;            &lt;/pre&gt;
&lt;pre&gt;        });&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;When I type a letter in the box, the Web method is executed, but it seems that the results are not being returned to the webpage&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;Here is my web service code:&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;[WebService(Namespace = &lt;/span&gt;&lt;span style="color:#A31515"&gt;&amp;quot;&lt;a href="http://tempuri.org/"&gt;http://tempuri.org/&lt;/a&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:black"&gt;)]&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:blue"&gt;public&lt;/span&gt;&lt;span style="color:black"&gt; &lt;/span&gt;&lt;span style="color:blue"&gt;class&lt;/span&gt;&lt;span style="color:black"&gt; AgentService : System.Web.Services.WebService&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;{&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt; &lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;  &lt;/span&gt;&lt;span style="color:blue"&gt;public&lt;/span&gt;&lt;span style="color:black"&gt; AgentService()&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;  {&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt; &lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;    &lt;/span&gt;&lt;span style="color:green"&gt;//Uncomment the following line if using designed components &lt;/span&gt;&lt;span style="color:black"&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;    &lt;/span&gt;&lt;span style="color:green"&gt;//InitializeComponent(); &lt;/span&gt;&lt;span style="color:black"&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;  }&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt; &lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;  [WebMethod]&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;  &lt;/span&gt;&lt;span style="color:blue"&gt;public&lt;/span&gt;&lt;span style="color:black"&gt; &lt;/span&gt;&lt;span style="color:blue"&gt;string&lt;/span&gt;&lt;span style="color:black"&gt; GetAgents()&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;  {&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;    &lt;/span&gt;&lt;span style="color:blue"&gt;try&lt;/span&gt;&lt;span style="color:black"&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;    {&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;      List&amp;lt;Agent&amp;gt; agents = &lt;/span&gt;&lt;span style="color:blue"&gt;new&lt;/span&gt;&lt;span style="color:black"&gt; List&amp;lt;Agent&amp;gt;(workSession.SessionUser.Agents);&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;      agents.Sort(&lt;/span&gt;&lt;span style="color:blue"&gt;delegate&lt;/span&gt;&lt;span style="color:black"&gt;(Agent a1, Agent a2)&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;                {&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;                  &lt;/span&gt;&lt;span style="color:blue"&gt;return&lt;/span&gt;&lt;span style="color:black"&gt; a1.Name.CompareTo(a2.Name);&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;                });&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt; &lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;      List&amp;lt;FlexboxItem&amp;gt; results = &lt;/span&gt;&lt;span style="color:blue"&gt;new&lt;/span&gt;&lt;span style="color:black"&gt; List&amp;lt;FlexboxItem&amp;gt;(agents.Count);&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;      &lt;/span&gt;&lt;span style="color:blue"&gt;foreach&lt;/span&gt;&lt;span style="color:black"&gt; (Agent agent &lt;/span&gt;&lt;span style="color:blue"&gt;in&lt;/span&gt;&lt;span style="color:black"&gt; agents)&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;      {&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;        results.Add(&lt;/span&gt;&lt;span style="color:blue"&gt;new&lt;/span&gt;&lt;span style="color:black"&gt; FlexboxItem(agent.Id.ToString(), agent.Name));&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;      }&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt; &lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;      JavaScriptSerializer serializer = &lt;/span&gt;&lt;span style="color:blue"&gt;new&lt;/span&gt;&lt;span style="color:black"&gt; JavaScriptSerializer();&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;      &lt;/span&gt;&lt;span style="color:blue"&gt;string&lt;/span&gt;&lt;span style="color:black"&gt; s = &lt;/span&gt;&lt;span style="color:#A31515"&gt;&amp;quot;{\&amp;quot;results\&amp;quot;: &amp;quot;&lt;/span&gt;&lt;span style="color:black"&gt; &amp;#43; serializer.Serialize(results) &amp;#43; &lt;/span&gt;&lt;span style="color:#A31515"&gt;&amp;quot;}&amp;quot;&lt;/span&gt;&lt;span style="color:black"&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;      &lt;/span&gt;&lt;span style="color:blue"&gt;return&lt;/span&gt;&lt;span style="color:black"&gt; s;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;    } &lt;/span&gt;&lt;span style="color:green"&gt;// try&lt;/span&gt;&lt;span style="color:black"&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;    &lt;/span&gt;&lt;span style="color:blue"&gt;catch&lt;/span&gt;&lt;span style="color:black"&gt; (Exception)&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;    {&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;      &lt;/span&gt;&lt;span style="color:blue"&gt;throw&lt;/span&gt;&lt;span style="color:black"&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;    } &lt;/span&gt;&lt;span style="color:green"&gt;// catch&lt;/span&gt;&lt;span style="color:black"&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;  }&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="background:white"&gt;&lt;span style="color:black"&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;Is there anything i'm missing?. Thanks a lot!&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><author>nheldman</author><pubDate>Mon, 23 Jul 2012 20:20:01 GMT</pubDate><guid isPermaLink="false">New Post: Can not see the web service response in FlexBox 20120723082001P</guid></item><item><title>New Post: Can not see the web service response in FlexBox</title><link>http://flexbox.codeplex.com/discussions/387782</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi, i'm trying to fill my flexbox with a web service method from an aspx.&lt;/p&gt;
&lt;p&gt;Here is the call to the web service:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;pre&gt;        $(function() {
            
            $('#fb').flexbox('AgentService.asmx/GetAgents', {
                  method : 'post',
                  watermark: 'Type to search...',
                  width: 400,
                  onSelect: function() {
                      alert('You selected &amp;quot;' &amp;#43; this.value &amp;#43; '&amp;quot;, ' &amp;#43;
                            'which has a hidden value of ' &amp;#43; this.getAttribute('hiddenValue'));
                  }
            });
            
        });&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I type a letter in the box, the Web method is executed, but it seems that the results are not being returned to the webpage&lt;/p&gt;
&lt;p&gt;Here is my web service code:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;[WebService(Namespace = &lt;span style="color:#a31515"&gt;&amp;quot;http://tempuri.org/&amp;quot;&lt;/span&gt;)]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
&lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;class&lt;/span&gt; AgentService : System.Web.Services.WebService
{

  &lt;span style="color:blue"&gt;public&lt;/span&gt; AgentService()
  {

    &lt;span style="color:green"&gt;//Uncomment the following line if using designed components &lt;/span&gt;
    &lt;span style="color:green"&gt;//InitializeComponent(); &lt;/span&gt;
  }

  [WebMethod]
  &lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;string&lt;/span&gt; GetAgents()
  {
    &lt;span style="color:blue"&gt;try&lt;/span&gt;
    {
      List&amp;lt;Agent&amp;gt; agents = &lt;span style="color:blue"&gt;new&lt;/span&gt; List&amp;lt;Agent&amp;gt;(workSession.SessionUser.Agents);
      agents.Sort(&lt;span style="color:blue"&gt;delegate&lt;/span&gt;(Agent a1, Agent a2)
                {
                  &lt;span style="color:blue"&gt;return&lt;/span&gt; a1.Name.CompareTo(a2.Name);
                });

      List&amp;lt;FlexboxItem&amp;gt; results = &lt;span style="color:blue"&gt;new&lt;/span&gt; List&amp;lt;FlexboxItem&amp;gt;(agents.Count);
      &lt;span style="color:blue"&gt;foreach&lt;/span&gt; (Agent agent &lt;span style="color:blue"&gt;in&lt;/span&gt; agents)
      {
        results.Add(&lt;span style="color:blue"&gt;new&lt;/span&gt; FlexboxItem(agent.Id.ToString(), agent.Name));
      }

      JavaScriptSerializer serializer = &lt;span style="color:blue"&gt;new&lt;/span&gt; JavaScriptSerializer();
      &lt;span style="color:blue"&gt;string&lt;/span&gt; s = &lt;span style="color:#a31515"&gt;&amp;quot;{\&amp;quot;results\&amp;quot;: &amp;quot;&lt;/span&gt; &amp;#43; serializer.Serialize(results) &amp;#43; &lt;span style="color:#a31515"&gt;&amp;quot;}&amp;quot;&lt;/span&gt;;
      &lt;span style="color:blue"&gt;return&lt;/span&gt; s;
    } &lt;span style="color:green"&gt;// try&lt;/span&gt;
    &lt;span style="color:blue"&gt;catch&lt;/span&gt; (Exception)
    {
      &lt;span style="color:blue"&gt;throw&lt;/span&gt;;
    } &lt;span style="color:green"&gt;// catch&lt;/span&gt;
  }
}
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there anything i'm missing?. Thanks a lot!&lt;/p&gt;
&lt;/div&gt;</description><author>gabay</author><pubDate>Mon, 23 Jul 2012 14:23:17 GMT</pubDate><guid isPermaLink="false">New Post: Can not see the web service response in FlexBox 20120723022317P</guid></item><item><title>New Post: Apply jQuery skins like Redmond to Flexbox</title><link>http://flexbox.codeplex.com/discussions/362327</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Is it possible to apply jQuery Redmond skin to flexbox when used as a combobox? If yes, then could you please provide some sample code on how to do it? Thanks, Sunil&lt;/p&gt;
&lt;/div&gt;</description><author>sun21170</author><pubDate>Sat, 07 Jul 2012 04:20:18 GMT</pubDate><guid isPermaLink="false">New Post: Apply jQuery skins like Redmond to Flexbox 20120707042018A</guid></item><item><title>New Post: How to managed search result oreder in flexbox when data is a JSON object with an array</title><link>http://flexbox.codeplex.com/discussions/361928</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am grateful to use this flexbox. I want to ask something which is I am facing as query.&lt;/p&gt;
&lt;p&gt;First I was getting search data from json (using cgi coding) , and I just marked it takes a too much time to retrieve json data from database. then after I have got the all the json data and made the object of the json data and put it into the variable and
 called this variable in to the flexbox.&lt;/p&gt;
&lt;p&gt;Both of the method 1st is flexbox called through 'URL'&lt;/p&gt;
&lt;p&gt;1) e.g: &lt;span&gt;&lt;span&gt;$(&amp;lsquo;#ffb10&amp;prime;).flexbox(&lt;/span&gt;&lt;/span&gt;'/hotels/cgi-bin/get_data.cgi?'&lt;span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;and 2nd is through 'variable' data is a JSON object with an array of ALL countries which I got from my database&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;2) e.g: $(&amp;lsquo;#ffb4&amp;prime;).flexbox(countries)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So both are displaying result in different order.&lt;/p&gt;
&lt;p&gt;I want to implement 2nd type and want to displaying result order which I getting result order when I used 1st type of calling 'URL'&lt;/p&gt;
&lt;p&gt;So please suggest me how to managed the search result order when I am using 2nd variable type.&lt;/p&gt;
&lt;p&gt;Please help me out from this issue.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards,&lt;/p&gt;
&lt;p&gt;Tejas Savaliya&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;br&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;</description><author>tejas14883</author><pubDate>Wed, 04 Jul 2012 10:31:31 GMT</pubDate><guid isPermaLink="false">New Post: How to managed search result oreder in flexbox when data is a JSON object with an array 20120704103131A</guid></item><item><title>New Post: How to pick up the displayed value after selection made</title><link>http://flexbox.codeplex.com/discussions/355512</link><description>&lt;div style="line-height: normal;"&gt;
&lt;div&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;Thanks for replying with your solution, and sorry I wasn’t able to get back to you sooner!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;Cheers,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;Noah&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in"&gt;
&lt;p&gt;&lt;b&gt;&lt;span style="font-size:10.0pt; font-family:"&gt;From:&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10.0pt; font-family:"&gt; ilagi [email removed]
&lt;br&gt;
&lt;b&gt;Sent:&lt;/b&gt; Wednesday, May 16, 2012 2:06 PM&lt;br&gt;
&lt;b&gt;To:&lt;/b&gt; Noah Heldman&lt;br&gt;
&lt;b&gt;Subject:&lt;/b&gt; Re: How to pick up the displayed value after selection made [flexbox:355512]&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;From: ilagi&lt;/span&gt;&lt;/p&gt;
&lt;div id="ThreadNotificationPostBody" style="margin-bottom:24.0pt"&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;Figured it out. I just simply need to use this.value after the onSelect to pick up the displayed value.&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><author>nheldman</author><pubDate>Wed, 16 May 2012 21:45:08 GMT</pubDate><guid isPermaLink="false">New Post: How to pick up the displayed value after selection made 20120516094508P</guid></item><item><title>New Post: How to pick up the displayed value after selection made</title><link>http://flexbox.codeplex.com/discussions/355512</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Figured it out. I just simply need to use this.value after the onSelect to pick up the displayed value.&lt;/p&gt;&lt;/div&gt;</description><author>ilagi</author><pubDate>Wed, 16 May 2012 21:05:42 GMT</pubDate><guid isPermaLink="false">New Post: How to pick up the displayed value after selection made 20120516090542P</guid></item></channel></rss>