Hi,
I have a RadGrid with RadNumericTextBox. One of the RadNumericTextBox has a event that fires up when the content is changed.
The problem is that after the event is called I wish to set focus in another text box in the grid but it doesn't happens anything, no expections, no focus just like I hadn't the last line of the code bellow. Notice that I have the RadGrid wraped in a Ajax UpdatedControls
Here is the changed event:
I have a RadGrid with RadNumericTextBox. One of the RadNumericTextBox has a event that fires up when the content is changed.
The problem is that after the event is called I wish to set focus in another text box in the grid but it doesn't happens anything, no expections, no focus just like I hadn't the last line of the code bellow. Notice that I have the RadGrid wraped in a Ajax UpdatedControls
Here is the changed event:
protected void txt2_Changed(object sender, EventArgs e) { RadNumericTextBox txt1 = (RadNumericTextBox)((RadNumericTextBox)sender).Parent.FindControl("txt1"); RadNumericTextBox txt2 = (RadNumericTextBox)sender; RadNumericTextBox txt3 = (RadNumericTextBox)((RadNumericTextBox)sender).Parent.FindControl("txt3"); txt3.Value = txt2.Value * (txt1.Value / 100); RadAjaxManager1.ResponseScripts.Add(String.Format("$find('{0}').focus();", txt3.ClientID));}