iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
When Selected Text is prefixed by "& n b s p;" (remove spaces in this string ... a space in html), the selected item retains the space. On postback "& n b s p;" are displayed.
Does anyone know how get the WebCombo Selected Text to not show on PostBack()?
Hi David Parkin,
I attached you a new sample. In here, we can see that I set the text to " Brad" and when we show the DropDown list, it will not trim spaces. In order to do so, we will need to set the EncodeOutput to true in WebCombo initialize layout on the server side.
I hope it helps. Thank you and have a nice day.
Best Regards,
Andi Santoso
First of all, thank you for using our Community Forum. For your issue, I was trying to use them in the text value with prefix of " ", however, it works fine in my end. Perhaps, I am missing something. I also attached you my simple running sample of WebCombo, could you modify them so that the issue is persisted.
Thanks Andi,
Your example works! But, that didn't solve the problem.
The issues is appearing when I bind to DataSource. The Text from the DB is prefixed "& n b s p ;".
For some reason, it might even work for a few iterations of testing.
Please take a look. I will happy to show you via WebEx ...
More information:
If I replace the "& n b s p;" with space, I don't see "& n b s p ;" in the selected Text, but the drop down trims text. However, when the user selects an item the spacing is now preserved in the selected Text. Note: Same behavior with " Andrew" in your example vs "& n b s p;Andrew".
Is there a way to tell DropDown not to trim spaces?
Andi,
Yes! Your latest example solves the problem! Many Thanks!
Set EncodeOutput in initialize:
{
WebCombo1.EncodeOutput = true; //works!
base.OnInit(e);
}
I did not find LayoutSettings-AllowFloatingText="False" was necessary in the WebCombo settings in .aspx mark up page.
Note: the Text column in the DataSource must be padded with spaces not "& n b s p ;"
Glad to hear that it solves your problem. For your information, the LayoutSettings-allowFloatingText means that it will allow some text to float in the right side of the WebCombo control.
Please do not hesitate to ask if you have any other questions. Thank you and have a nice day.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname