obout inc - ASP.NET FileUploadProgress - Client side interface:: Multilevel combobox. Documentation. Knowledge base. Flyout. Examples Every such item is a string with uploaded file name, its size in bytes and http://www.obout.com/fup/docum_2_1.aspxHOME | Howdy all,
I'm converting a select to a ComboBox, and all is working well except items that have one or more spaces at the head of the displayed item name. The spaces show up correctly when in the dropdown, but when selected they turn into .
The store is a JsonStore, and this is an example of the JSON being used:
[{"dom":"doxfer.com","id":"118289738618737"},{"dom":" devel.doxfer.com","id":"11873870853158"}] Aspose Search Results - Aspose.com:: Hmmmin order to remove the empty combo and then re-add it, Im having a little trouble figuring out how to dynamically add items to a ComboBox on a PDF. http://www.aspose.com/search/search-results.aspx?u=55589&o=DateDescendingHOME | ComboBox Properties (System.Windows.Forms):: Gets an object representing the collection of the items contained in this ComboBox. a value indicating whether the items in the combo box are sorted. TabIndex http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox_properties.aspxHOME |
Closer Look: Using a For EachNext Loop in a Collection:: you would also have to update the Items collection of the ComboBox control. Then, in the Properties window, select the Items property and click the http://msdn.microsoft.com/en-us/library/25xw097s(VS.80).aspxHOME | Steve C. Orr - Inject Windows Forms Controls into Your ASP.NET Web Pages.:: The custom ComboBox control defined in this article can even fetch its own data loops through the records and adds them to the Items collection of the ComboBox. http://steveorr.net/articles/WinformControls.aspxHOME |
Note the two spaces in devel.doxfer.com. If I actually use in the JSON reply it shows in both places--also not the behavior I'm after.
What to do?
Version?
1.1.1
The problem is that the dropdown is a div which is html, whereas when you select it, it populates an HTML input field. Only workaround I could think of is return one with html entities which the dropdown uses and another which the input field would display.
OK, I lied. I can get it to behave the way I want either in the dropdown or when selected, but not both. When the JSON contains literal spaces (with or without a escape) the dropdown loses the space. When the JSON contains the dropdown gets the spaces, but the appears literally in the selection field.
Seems like it's bug-like for them to behave differently.
Thanks for the pointer. At least now I know why it doesn't work right...fixing it is another matter altogether...but I've got a direction. ;-)
Nevermind, I think I can fix it in my JSON output. Maybe.
Thanks for chiming in jsakalos. I'm afraid I couldn't find it either...google and local search aren't turning up anything for me. I can't seem to locate anything obvious in the ComboBox implementation that might be forcing this behavior.
Anybody else got any advice on how I can workaround this?
I'm quite sure that there was at least one another thread dealing with similar problem. I was trying to find it and give you url but I haven't succeeded. Maybe you're more lucky. ;)
I don't remember if the thread offered a solution or if it was just discussion but sure it is worth to search for it.
I Am a Sinner – What About You?
Global Sourcing and Supplier Online by Dylan
|