This is a migrated thread and some comments may be shown as answers.

ItemTemplate with TextBox issue

1 Answer 53 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
KDL
Top achievements
Rank 1
KDL asked on 17 Feb 2012, 04:17 AM

If EnableDragAndDrop="true" the Textbox in ItemTemplate is not editable. Interestingly, I can right-click in the TextBox and it becomes editable but normal left-click does nothing. Setting EnableDragAndDrop="false" makes everything work normally.

Seems like a bug to me, but is there some type of work-around or additional property that needs to be set? Thanks!

The following code works fine, but setting EnableDragAndDrop="true" stops the TextBox from being edited (unless you right-click it as mentioned prior).

<telerik:RadListBox ID="RadListBox2" runat="server"
    AllowReorder="true"
    Width="300px"
    Height="400px"
    EnableDragAndDrop="false"
    AutoPostBackOnReorder="true"
    AutoPostBackOnTransfer="true"
    >
    <Items>
        <telerik:RadListBoxItem runat="server" Text="RadListBoxItem1" />
        <telerik:RadListBoxItem runat="server" Text="RadListBoxItem2" />
    </Items>
    <ItemTemplate>
        <div >
            <div>
                <%# DataBinder.Eval(Container, "Text")%>
            </div>
            <div>
                <div style="float:left;">
                    <asp:CheckBox ID="chkShowTitle" runat="server" Text="Checkbox" />
                </div>
                <div style="float:right;">
                    Title <asp:TextBox ID="txtTitle" runat="server" />
                </div>
            </div>
        </div>
    </ItemTemplate>
</telerik:RadListBox>

1 Answer, 1 is accepted

Sort by
0
Accepted
Bozhidar
Telerik team
answered on 21 Feb 2012, 04:25 PM
Hi Kent,

This is a know bug of RadListBox, and I'm happy to inform you that it has recently been fixed. The fixed version will be available for download in next week's internal build.
 
Regards,
Bozhidar
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
ListBox
Asked by
KDL
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Share this question
or