I have a radGrid and its columns get created all server side dynamically.
The grid has 3 columns and each column contains a textbox.
On client-side, the first textbox value needs to be changed according to the inputs of the second and the third textboxs.
This javascript function has those three column names.
Inside the function I can get innerHTML values of all three controls by doing
The grid has 3 columns and each column contains a textbox.
On client-side, the first textbox value needs to be changed according to the inputs of the second and the third textboxs.
This javascript function has those three column names.
Inside the function I can get innerHTML values of all three controls by doing
GridControl.GetCellByColumnUniqueName(selectedRow, thefirstTextBoxColumnName).innerHTML
GridControl.GetCellByColumnUniqueName(selectedRow, thesecondTextBoxColumnName).innerHTML
GridControl.GetCellByColumnUniqueName(selectedRow, thethirdTextBoxColumnName).innerHTML
Firstly, are there any ways of extracting only values from innerHTML strings without having to create a complex string manipulation to get only values?
Secondly, how do I assign a value to the first textbox?
If I do
GridControl.GetCellByColumnUniqueName(selectedRow, thefirstTextBoxColumnName).innerHTML = 1 + 2;
the column becomes label rather than staying in input textbox.
Thanks in advance,
Toby