I am using a radgrid in my projet When i click "Add new Record" button automaticly a new row creating . 2 colums has radnumerictextbox
and i want to make "0" value of other radnumerictextbox wheen i enter some value one of radnumerictextbox .
I accomplish it when i update a record but i didnt do it when i insert a new recor ....
when i want to edit a record i use the above code and it work . but i dont know how can i do when i new record inserting ????
and i want to make "0" value of other radnumerictextbox wheen i enter some value one of radnumerictextbox .
I accomplish it when i update a record but i didnt do it when i insert a new recor ....
| function onCommand(sender, args) |
| { |
| if(args.get_commandName()== 'Edit') |
| { |
| currentRowIndex = args.get_commandArgument(); |
| } |
| } |
| function onKeyPresstbBorc(sender, eventArgs) |
| { |
| alert(currentRowIndex); |
| var masterTable = $find("<%=RadGrid1.ClientID%>").get_masterTableView(); |
| var dataItem = masterTable.get_dataItems()[currentRowIndex]; |
| var radTextBox1 = dataItem.findControl("tbAlacak"); |
| radTextBox1.set_value(0.00); |
| } |
when i want to edit a record i use the above code and it work . but i dont know how can i do when i new record inserting ????