I am fairly new to Web programming. I am having an issue with my ListSearchExtender prompt. Where it should display "Type to Search" all I am getting displayed is"...h", three periods and the last letter. When you type it is the same, it displays three
periods and the last character you type. Thanks for any help you may have!
I was have same problems, and only in IE9. Solving this problem is to have a proper WIDTH size of TargetControl, and also CSS style for Extender PromptText. In other browsers is working fine, without adding additional width.
angry_ant
Member
2 Points
3 Posts
ListSearch prompt
May 03, 2012 08:58 PM|LINK
I am fairly new to Web programming. I am having an issue with my ListSearchExtender prompt. Where it should display "Type to Search" all I am getting displayed is"...h", three periods and the last letter. When you type it is the same, it displays three periods and the last character you type. Thanks for any help you may have!
<asp:Panel ID="Panel1" runat="server"> <table border="0" cellpadding="5" cellspacing="2" style="margin-right:auto; margin-top: 0px;" align="center"> <tr> <td style="text-align:right"><asp:Label ID="Label1" runat="server" Text="Vendor:" Font-Bold="True" /></td> <td><ajaxToolkit:ListSearchExtender ID="LSE" runat="server" TargetControlID="dlVendorID" PromptPosition="Top" PromptCssClass="ListSearchExtenderPrompt" PromptText="Type to search" IsSorted="true" /> <asp:DropDownList ID="dlVendorID" runat="server" Width="185px" TabIndex="1" DataValueField="Name" DataTextField="Name" /> <asp:TextBox ID="tbPendingVendor" runat="server" ReadOnly="True"></asp:TextBox></td>Song-Tian - ...
All-Star
43699 Points
4304 Posts
Microsoft
Re: ListSearch prompt
May 04, 2012 09:23 AM|LINK
Hi,
You could set PromptCssClass to custom that.
The example as follow:
<head runat="server"> <title></title> <style type="text/css"> .ListSearchExtenderPrompt {height:22px;width:150px;} </style> </head> <body> <form id="form1" runat="server"> <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> </asp:ToolkitScriptManager> <div> <asp:ListSearchExtender ID="lseCMD" runat="server" TargetControlID="drpCMD" IsSorted="true" PromptPosition="Top" PromptText="type to search" PromptCssClass="ListSearchExtenderPrompt"> </asp:ListSearchExtender> <table width="100%" border="0"> <tr> <td width="10%"> Command: </td> <td width="30%"> <br /> <asp:DropDownList ID="drpCMD" runat="server" Font-Size="14px" AutoPostBack="True" Width="100%"> <asp:ListItem>abc</asp:ListItem> <asp:ListItem>def</asp:ListItem> </asp:DropDownList> </td> </tr> </table> </div> </form> </body>Feedback to us
Develop and promote your apps in Windows Store
angry_ant
Member
2 Points
3 Posts
Re: ListSearch prompt
May 04, 2012 04:28 PM|LINK
That fixed the proble. Thanks so much!
dejanc
Member
32 Points
54 Posts
Re: ListSearch prompt
Apr 30, 2013 06:35 AM|LINK
I was have same problems, and only in IE9. Solving this problem is to have a proper WIDTH size of TargetControl, and also CSS style for Extender PromptText. In other browsers is working fine, without adding additional width.
For sure IE9 is an issue.