Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
135
TemplateDataField with an asp.net texbox in JavaScript
posted

Hi, I have a WebHierarchicalDataGrid with AutoGenerateColumns in false, I define a column type TemplateDataField and inside put an Asp.Net control TextBox,in the band (only have 1) I put another TemplateDataField column and inside put an Asp.Net control TextBox.

 I want when the user capture in TextBox parent the value typed set in the textbox of band child.

I want to know is this is possible do with JavaScript,

How can I obtain the rowindex for grid parent in the onchange event of TextBox?

How can I find the control TextBox in the Chaild Band?

Where I obtain the funtions for WebHierarchicalDataGrid that work in javascript? like getCell(), getRows() etc.

Thanks

Jose

Thie is the column in Parent Grid (Master)

<ig:TemplateDataField CssClass="CAlign" Key="Tipo_Cambio_Ac2">

<ItemTemplate>

 

 

 

 

 

 

<asp:TextBox ID="tbxTipoCambio" runat="server" CssClass="tbxNumeros" Width="75%"

 

 

MaxLength="10" Text="0.00" OnInit="tbx_Init" CausesValidation="True" onchange="tbxChange(this)"></asp:TextBox>

 

 

 

 

 

 

 

</ItemTemplate>

 

 

<Header Text="Tipo Cambio" CssClass="HeaderCAlign" />

 

 

 

</ig:TemplateDataField>

Columnd TemplateDataField in Child Grid (Detail)

 

 

 

 

 

 

 

 

 

 

 

 

<

 

ig:TemplateDataField CssClass="CAlign" Key="Tipo_Cambio_Ac2">

 

 

<ItemTemplate>

 

 

<asp:TextBox ID="tbxTipoCambioHijo" runat="server" CssClass="tbxNumeros" Width="75%"

 

 

MaxLength="10" Text="0.00" OnInit="tbx_Init" CausesValidation="true"></asp:TextBox>

 

 

</ItemTemplate>

 

 

<Header Text="Tipo Cambio" CssClass="HeaderCAlign" />

 

 

</ig:TemplateDataField>

Parents Reply Children
No Data