Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 19, 2013 02:05 AM by chetan.sarode
Feb 05, 2011 05:23 PM|LINK
I have a listbox with the listsearchextender as follows...
<asp:ListBox ID="CompanyTypeListBox" runat="server" DataTextField="CompanyTypeName" DataValueField="CompanyTypeId" CssClass="listbox" />
runat="server" Enabled="True" TargetControlID="CompanyTypeListBox"
PromptPosition="Bottom" PromptText="Type to search" />
My problem is that when I click in the listbox the prompt is "...h". When I start typing it changes to "...x" where x is the last letter of the listbox item.
Feb 06, 2011 11:36 AM|LINK
In ur code I found PromptPosition="Bottom"
might be a cause to happen so...
my solution is a correct ANSWER to ur problem,
Please Mark as ANSWER.
Feb 06, 2011 02:42 PM|LINK
Originally I had it at the top, but it was interfering with the text I had above the ListBox so I moved it to the bottom. I had the same user experience with the search prompt at the top as well as the bottom.
Feb 09, 2011 02:04 AM|LINK
This is because its design is to keep the width same with the listbox. You'll have to make your listbox wide enough to let the prompt text fully shown in your page. For example
<asp:ListBox ID="ListBox1" style="width: 100px;" runat="server">
Feb 09, 2011 03:05 AM|LINK
As you can see in the following screenshot, the width of the listbox and the search prompt is fine...it's the text inside it The listbox CSS class I am applying to the control sets the width to 300px;
Feb 09, 2011 03:30 AM|LINK
I applied your code, it looks good to me.
Can you please disable all your css styles, including listsearchextenderprompt, see if this problem yet comes up.
Feb 12, 2011 04:11 AM|LINK
I disabled all styles and it still didn't work. I created a new page with just the necessary listbox control and extender and it worked. I'm going to play around and see if I can determine what is causing my problem.
Dec 06, 2011 05:21 PM|LINK
What was the solution to this? I'm having the same problem. I see "..." and the last character I typed.
Feb 18, 2013 12:49 PM|LINK
Any idea, I am having the same issue, I tried to fix the width of the dropdownlist (in my case), but without any value!
Feb 18, 2013 01:32 PM|LINK
Surprisingly enough, setting the height fixed it!