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

[Solved] RadTextBox button

1 Answer 196 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ryan Yeow
Top achievements
Rank 1
Ryan Yeow asked on 05 Nov 2009, 10:20 AM
Hi,

I just started developing using RadControls for ASP.NET AJAX since last week and I'm stuck with RadTextBox column inside a RadGrid....

I have a RadGrid with parts that look like this:
//------------------------------------------------------------------------
<telerik:RadGrid ID="RadGrid1" .......>
....
<MasterTableView....>
<Columns>
<telerik:GridTemplateColumn UniqueName="D1">
<EditItemTemplate>
<telerik:RadTextBox ID="tb_D1" runat="server" ShowButton="true"...>
</telerik:RadTextBox>
</EditItemTemplate>

....
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
//------------------------------------------------------------------------

I need to either do processing at RadTextBoxButton_OnClick() at server side

OR

pass an integer to a RadWindow form to let user enter a String input and then pass the result back to this grid page for processing.



<buttontemplate> doesn't work for this RadTextBox column inside the grid... so how do I find the button ID of the RadTextBox's button??
and with <buttontemplate> not working, I can't change the appearance of this button right??



Any help will be greatly appreciated.


Thanks
Ryan

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 06 Nov 2009, 11:00 AM
Hello Ryan,

You can override  _doPostBack method  in the eventhandler of onButtonClick client event of the RadTextBox which should invoke the   RaisePostBackEvent event handler on the server side.

Thanks
Princy.
Tags
Grid
Asked by
Ryan Yeow
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or