Hi,
I have a page that has a RadNumericTextBox as part of a GridTemplateColumn as specified below:
...
<telerik:GridTemplateColumn UniqueName="InvoiceAmount" HeaderText="Invoice Amount">
<EditItemTemplate>
<table cellpadding="0" cellspacing="0"><tr><td>
<telerik:RadNumericTextBox EmptyMessage="Amount ..." Skin="Office2007" ShowSpinButtons="false" ButtonsPosition="Right" EnabledStyle-HorizontalAlign="Right" Type="Currency" Width="100" ID="rntbxInvoiceAmount" runat="server" Text='<%# Bind("Amount")%>' OnDataBinding="rntbxInvoiceAmount_DataBinding" onBlur="CalculateTotalInvoiceAmount()">
</telerik:RadNumericTextBox>
...
I have a page that has a RadNumericTextBox as part of a GridTemplateColumn as specified below:
...
<telerik:GridTemplateColumn UniqueName="InvoiceAmount" HeaderText="Invoice Amount">
<EditItemTemplate>
<table cellpadding="0" cellspacing="0"><tr><td>
<telerik:RadNumericTextBox EmptyMessage="Amount ..." Skin="Office2007" ShowSpinButtons="false" ButtonsPosition="Right" EnabledStyle-HorizontalAlign="Right" Type="Currency" Width="100" ID="rntbxInvoiceAmount" runat="server" Text='<%# Bind("Amount")%>' OnDataBinding="rntbxInvoiceAmount_DataBinding" onBlur="CalculateTotalInvoiceAmount()">
</telerik:RadNumericTextBox>
...
There is code in this pages base page that recurses the heirarchy of controls on the page at render time and makes "editable" controls non-visible and inserts label controls if the page is supposed to be readonly. The problem I'm seeing is that when the code gets to the GridTableCell control for the grid cell where the RadNumericTextBox should be, the GridTableCell.Controls collection is empty. I was expecting to have access to the RadNumericTextBox control instance at that point.
Should it work the way I am expecting it to, or is there a better way?
Thanks for any help you can give,
Andrew