grid problem of state maintain
i have a grid with data which has three column like
A B C
1 Delhi New Delhi
2 Haryana Chandigarh
A is srno , b is state and c is capital values
when i press f2 on first row on cell Delhi a popup is open with all sate of INDIA and its STATE CAPITAL.
in popup window radio button are there is check the radio button that row value of delhi , and new delhi seleted
on close of the popup window the value come on the parent grid.
var state = parent.mygrid.cells(parent.mygrid.getSelectedRowId(),1).getValue();
document.getElementById(“radio_for_”+state).checked=true;
how i find the radio_for_"+state
if my xml column type is below
res += " " +
“Select Train” +
" Train No " +
" Train Name " +
" Start Station " +
" End Station " +
" Departure Time " +
" Arrival Time " +
" Over Night " +
" " +
" px " +
" " +
" ";
xml are generate at the run time with radio button so onRowcreted how I write the code
like this such that the actual radion button is auto checked when the row is created
var state = parent.mygrid.cells(parent.mygrid.getSelectedRowId(),1).getValue();
document.getElementById(“radio_for_”+state).checked=true;
how i find the radio_for_"+state
You have mentioned that
>>in popup window radio button
So you popup window has some system of radio buttons, right? If you creating them, they must have some unique IDs|names. The codeline
document.getElementById(“radio_for_”+state).checked=true;
just a sample, in real life you need to use some code which will return radio button object by its value.