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

RadTreeList's item template binding RadTextBox

1 Answer 71 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Sophia
Top achievements
Rank 1
Sophia asked on 16 Feb 2015, 09:30 PM
Hi,

I have met issues for binding RadTextBox as TreeListTemplateColumn.
1. Which sever side event can be triggered when text box value changed?
2. How to auto select current tree list row as well when the text box is focused?
3. This tree list is in the radwizard as one step. Every time I have to press enter key to fire RadTextBoxSN_TextChanged, ance once it fired, the page will automatically move to next wizard step. I wrote the manual next button event for wizard and no idea how this happened. Please help.

<telerik:TreeListTemplateColumn HeaderStyle-Width="170px" DataField="LotSerialNumber" UniqueName="LotSerialNumber" HeaderText="Lot/Serial Number">
                                                    <ItemTemplate>
                                                        <div style="text-wrap: none; word-break: keep-all; table-layout: fixed">
                                                            <telerik:RadTextBox ID="RadTextBoxSN" runat="server" OnTextChanged="RadTextBoxSN_TextChanged" ToolTip='<%# Eval("TXN_ID")%>' Text='<%# Eval("LotSerialNumber")%>' Width="125px">
                                                            </telerik:RadTextBox>
                                                            <asp:LinkButton ID="btnSearch" runat="server">
                                                    <img style="border: 0px; vertical-align: bottom" src="~/../Images/search.gif" />
                                                            </asp:LinkButton>
                                                            <asp:LinkButton ID="btnValid" runat="server" Visible="false" Enabled="false">
                                                    <img id="ImgValid" style="border: 0px; vertical-align: bottom" src="~/../Images/success.gif" />
                                                            </asp:LinkButton>
                                                            <asp:LinkButton ID="btnInvalid" runat="server" Visible="false" Enabled="false">
                                                    <img id="ImgInvalid" style="border: 0px; vertical-align: bottom" src="~/../Images/error.gif" />
                                                            </asp:LinkButton>
                                                        </div>
                                                    </ItemTemplate>
                                                </telerik:TreeListTemplateColumn>




















1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 19 Feb 2015, 01:33 PM
Hi Sophia,

You will need to enable the AutoPostBack property to true when using the OnTextChanged server-side event handler. I've created a sample RadTreeList sample to demonstrate how you can achieve the first two requirements. As for the issue from the third point, you can place a temporary button before the wizard definition and see whether this will change something.

Hope this helps.

Regards,
Eyup
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
TreeList
Asked by
Sophia
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or