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.
ajaxListSearchExtenderListbox
There are 10 types of people in this world...those that understand binary and those that don't.
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.
There are 10 types of people in this world...those that understand binary and those that don't.
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
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;
There are 10 types of people in this world...those that understand binary and those that don't.
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.
There are 10 types of people in this world...those that understand binary and those that don't.
Oliwa
Member
5 Points
12 Posts
The text in the ListSearchExtender prompt is shortened
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" /> <ajt:ListSearchExtender ID="CompanyTypeListBox_ListSearchExtender" runat="server" Enabled="True" TargetControlID="CompanyTypeListBox" IsSorted="True" PromptCssClass="listsearchextenderprompt" 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.
ajax ListSearchExtender Listbox
ReenuGouse
Participant
1395 Points
385 Posts
Re: The text in the ListSearchExtender prompt is shortened
Feb 06, 2011 11:36 AM|LINK
hello,
In ur code I found PromptPosition="Bottom"
It might be a cause to happen so...
If my solution is a correct ANSWER to ur problem,
Please Mark as ANSWER.
Many Thanks,
Gouse Baig.
Oliwa
Member
5 Points
12 Posts
Re: The text in the ListSearchExtender prompt is shortened
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.
BU XI - MSFT
All-Star
22367 Points
2704 Posts
Microsoft
Re: The text in the ListSearchExtender prompt is shortened
Feb 09, 2011 02:04 AM|LINK
Hello
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">
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
Oliwa
Member
5 Points
12 Posts
Re: The text in the ListSearchExtender prompt is shortened
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;
BU XI - MSFT
All-Star
22367 Points
2704 Posts
Microsoft
Re: The text in the ListSearchExtender prompt is shortened
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.
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
Oliwa
Member
5 Points
12 Posts
Re: The text in the ListSearchExtender prompt is shortened
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.
nreid
Member
2 Points
1 Post
Re: The text in the ListSearchExtender prompt is shortened
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.
asawaf
Member
350 Points
75 Posts
Re: The text in the ListSearchExtender prompt is shortened
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!
Please mark as "Answer" if this helped you.
asawaf
Member
350 Points
75 Posts
Re: The text in the ListSearchExtender prompt is shortened
Feb 18, 2013 01:32 PM|LINK
Surprisingly enough, setting the height fixed it!
.ListSearchExtenderPrompt { height:20px; font-style:italic; color:grey; background-color:white; }ListSearchExtender
Please mark as "Answer" if this helped you.