I'd downloaded the sample code of Iana posted on June 10 from http://www.telerik.com/community/forums/aspnet-ajax/window/window-as-dialog-return-value-in-radgrid-edit-form-template.aspx. I was able to post back and update the value in the RadNumericTextBox inside the RadGrid control. However, when I click the Save button on the Insert command, the Required Field validator of the RadNumericTextBox is always failed eventhough the value is set (via set_value method on client side). I need to make sure the value in the RadNumericTextBox is not empty and is greater than 0. Does any body have experienced this issue as I have? When I used a regular asp.net textbox, the validator is working fine, but it would be nice if I can use the RadNumbericTextBox in the radgrid in my application. Could you please tell me what is causing the validator failed here? Thanks!
Below is my client side code. I am using RadControls Q1 2009 version.
function ShowUpdateQuantityWin(quantityTxtBxId, nbrPersTextBxId, quantityList) {
window.radopen("UpdateQuantity.aspx?quantityList=" + quantityList + "&quanId=" + quantityTxtBxId + "&persId=" + nbrPersTextBxId, "quantityRadWindow");
var quantityTxtBx = $find(quantityTxtBxId);
quantityTxtBx._textBoxElement.readOnly = false;
return false;
}
function OnQuantityWindowClose(oWnd) {
//get the transferred arguments
var arg = oWnd.argument;
if (arg) {
// alert("arg info: " + arg.quantity + "-" + arg.nbrOfPers + " " + arg.quanId + " " + arg.nbrPersId);
$get('<%=nbrOfPersonsHF.ClientID %>').value = arg.nbrOfPers;
$get(arg.nbrPersId).innerHTML = arg.nbrOfPers;
$get('<%=quantityHF.ClientID %>').value = arg.quantity;
$get('<%=quantityListHF.ClientID %>').value = arg.quantityList;
var quantityRadTxtBx = $find(arg.quanId);
quantityRadTxtBx.set_value(arg.quantity);
quantityRadTxtBx._textBoxElement.readOnly
}