I have gotten so much help from this forum so far, and hope someone can help
me with my current situation.
I have a grid. In the grid I have a few column, mostly template columns.
They are User, email, address, package, and price.
In the edit/insert form is where most of the templates are. The edit
template items are a textbox not bound to the database, a label
not bound to the database, and 2 embedded grids. The first embedded
grid has a price column which I hide and I want to take that vaule and
place it in the unbound textbox column.
The second embedded grid has a column of prices in a template column
of radnumerictextbox type. I want to take the values of this column,
add them up, and put them in the column of the edit form that I have
as a label in the template of the coluimn. And whenever a radnumeric
textbox gets changed, I want this label to change. I tried doing this
in C# codebehind, and it is not changing the column.
The values of the totals are being maintained in textboxes here:
<asp:TextBox ID="TextBoxPackagePrice" runat="server" Visible="false"></asp:TextBox>
<asp:TextBox ID="TextBoxTotalAlaCartePrice" runat="server" ></asp:TextBox>
<asp:TextBox ID="TextBoxTotalPrice" runat="server" Visible="false"></asp:TextBox>
My column in the embedded grid for the radnumerictextbox is:
<telerik:GridTemplateColumn HeaderText="Price" UniqueName="Price" >
<ItemTemplate>
<telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server"
AutoPostBack="true" Price='<%# Eval("Price") %>'
Culture="English (United States)" Type="Currency" Value="0" Width="125px"
OnTextChanged="RadNumericTextBox1_TextChanged"
EditFormColumnIndex="2" >
</telerik:RadNumericTextBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
How can do what I want on the client side using javascript to the add up the
radnumerictextbox column to get a running total, and how can I take that
total and place in somewhere(in a template column label) in my edit form for
the outside grid? And when the radnumerictextbox changes, what is the clientside
call to update that label?
Hope I am making myself clear.
Thanks in advance,
Laura
me with my current situation.
I have a grid. In the grid I have a few column, mostly template columns.
They are User, email, address, package, and price.
In the edit/insert form is where most of the templates are. The edit
template items are a textbox not bound to the database, a label
not bound to the database, and 2 embedded grids. The first embedded
grid has a price column which I hide and I want to take that vaule and
place it in the unbound textbox column.
The second embedded grid has a column of prices in a template column
of radnumerictextbox type. I want to take the values of this column,
add them up, and put them in the column of the edit form that I have
as a label in the template of the coluimn. And whenever a radnumeric
textbox gets changed, I want this label to change. I tried doing this
in C# codebehind, and it is not changing the column.
The values of the totals are being maintained in textboxes here:
<asp:TextBox ID="TextBoxPackagePrice" runat="server" Visible="false"></asp:TextBox>
<asp:TextBox ID="TextBoxTotalAlaCartePrice" runat="server" ></asp:TextBox>
<asp:TextBox ID="TextBoxTotalPrice" runat="server" Visible="false"></asp:TextBox>
My column in the embedded grid for the radnumerictextbox is:
<telerik:GridTemplateColumn HeaderText="Price" UniqueName="Price" >
<ItemTemplate>
<telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server"
AutoPostBack="true" Price='<%# Eval("Price") %>'
Culture="English (United States)" Type="Currency" Value="0" Width="125px"
OnTextChanged="RadNumericTextBox1_TextChanged"
EditFormColumnIndex="2" >
</telerik:RadNumericTextBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
How can do what I want on the client side using javascript to the add up the
radnumerictextbox column to get a running total, and how can I take that
total and place in somewhere(in a template column label) in my edit form for
the outside grid? And when the radnumerictextbox changes, what is the clientside
call to update that label?
Hope I am making myself clear.
Thanks in advance,
Laura