This is a migrated thread and some comments may be shown as answers.
How to get a TextChanged event of RadTextBox which is inside RadToolBor.
1 Answer 192 Views
This is a migrated thread and some comments may be shown as answers.
Simon Maystre
Top achievements
Rank 1
Simon Maystre asked on 27 Apr 2012, 01:07 PM
Hi Telerik Team,

I have a RadTextBox in a RadToolBar mentioned below...

i want to write some code on TextChanged event of RadTextBox which is inside RadToolBor, please suggest how to get a TextChanged event and do the needful.

 <telerik:RadToolBar ID="rtbPDFToolbar" runat="server" Width="100%">
        <Items>
            <telerik:RadToolBarButton runat="server" CausesValidation="False" PostBack="False"
                Text="SearchText" Value="SearText">
                <ItemTemplate>
                    <telerik:RadTextBox runat="server" ID="radtxtSerachDocument">
                    </telerik:RadTextBox>
                </ItemTemplate>
            </telerik:RadToolBarButton>
           </Items>
</telerik:RadToolBar>

Thanks,
Simon.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 27 Apr 2012, 02:08 PM
Hi Simon,

Here is the sample code that worked for me as expected.

ASPX:
<telerik:RadToolBar ID="rtbPDFToolbar" runat="server" Width="100%">
        <Items>
            <telerik:RadToolBarButton runat="server" CausesValidation="False" PostBack="False"  Text="SearchText" Value="SearText">
                <ItemTemplate>
                    <telerik:RadTextBox runat="server" ID="radtxtSerachDocument" ontextchanged="radtxtSerachDocument_TextChanged" AutoPostBack="true">
                    </telerik:RadTextBox>
                </ItemTemplate>
            </telerik:RadToolBarButton>
        </Items>
</telerik:RadToolBar>

C#:
protected void radtxtSerachDocument_TextChanged(object sender, EventArgs e)
    {
         Response.Write("text Changed");
    }

Thanks,
Princy.
Asked by
Simon Maystre
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or