Hello, having some issues with having a TextBox in an ItemTemplate.
First it was the text box not accepting "space" but i found the workaround in the forums.
http://www.telerik.com/help/aspnet-ajax/listbox-space-ignored-textbox-itemtemplate.html
Now, typing text into the textboxes creates unwanted behavior when using the "s" character. The behavior im seeing is when typing the "s" charater in the RadListBoxItem.Textbox the selection attempts a changes to the next visible list box item. the focus bounces back and forth between the visible items (I only have 2 items visible at any given time due to size contraints.). I've looked high and low on a way to disable the listbox keyboard shortcuts but found nothing.
Im unsure how many other keyboard shortcuts are associated with this control, but since i need a textbox (well, a couple) I'd like to simply turn off keyboard support for this control.
Heres the markup:
First it was the text box not accepting "space" but i found the workaround in the forums.
http://www.telerik.com/help/aspnet-ajax/listbox-space-ignored-textbox-itemtemplate.html
Now, typing text into the textboxes creates unwanted behavior when using the "s" character. The behavior im seeing is when typing the "s" charater in the RadListBoxItem.Textbox the selection attempts a changes to the next visible list box item. the focus bounces back and forth between the visible items (I only have 2 items visible at any given time due to size contraints.). I've looked high and low on a way to disable the listbox keyboard shortcuts but found nothing.
Im unsure how many other keyboard shortcuts are associated with this control, but since i need a textbox (well, a couple) I'd like to simply turn off keyboard support for this control.
Heres the markup:
<telerik:RadListBox runat="server" ID="listBoxSlideShowActiveItems" SelectionMode="Multiple" EnableDragAndDrop="true" AllowDelete="false" AllowReorder="true" Height="200px" Width="370px" AllowTransferOnDoubleClick="false"> <ItemTemplate> <fieldset> <legend style="font-size:8pt;padding-bottom:2px;">Slide Description</legend> <table border="0" width="100%"> <tr> <td style="width:80px;" valign="top"> <asp:Image ID="imageActiveItemThumbnail" runat="server" CssClass="thumbnailImageSlideShowLarge" ImageUrl="~/SiteImages/spacer.gif" /> </td> <td valign="top"> <table border="0" width="100%"> <tr> <td>Text:</td> <td><asp:TextBox ID="textActiveItemText" runat="server" Width="170"></asp:TextBox></td> </tr> <tr> <td>Href</td> <td><asp:TextBox ID="textActiveItemHref" runat="server" Width="170"></asp:TextBox></td> </tr> <tr> <td>Target:</td> <td> <telerik:RadComboBox ID="comboActiveItemTarget" runat="server" Width="178px"> <Items> <telerik:RadComboBoxItem Text="_blank" Value="_blank" Selected="True" /> <telerik:RadComboBoxItem Text="_parent" Value="_parent" /> <telerik:RadComboBoxItem Text="_search" Value="_search" /> <telerik:RadComboBoxItem Text="_self" Value="_self" /> <telerik:RadComboBoxItem Text="_top" Value="_top" /> </Items> </telerik:RadComboBox> </td> </tr> </table> </td> </tr> </table> </fieldset> </ItemTemplate> <Items></Items> </telerik:RadListBox> <script type="text/javascript"> // RadListBox documented workaround for textbox in item template var radListBoxKeyDown = Telerik.Web.UI.RadListBox.prototype._onKeyDown; Telerik.Web.UI.RadListBox.prototype._onKeyDown = function (e) { if (e.keyCode == Sys.UI.Key.space) { return; } else { radListBoxKeyDown.apply(this, arguments); } } </script>Thanks in advance!