function onGridActionCompleteEvent(args) {
………………………………………………………..
if (args.model.editSettings.editMode == "dialogtemplate") {
…………………………………………………………………………….
$.ajax({
type: "POST",
url: "Default.aspx/DropDown",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (value) {
$("#priceId").ejDropDownList({
dataSource: value.d,
fields: { value: "priceId", text: "price1" },
width: "100%"
});
},
error: function (e) {
alert(e);
}
});
var dia = $('#<%= Grid1.ClientID %>'+"_dialogEdit").ejDialog("instance") // take instance of ejDialog
dia.setModel({
//bind open event to ejDialog
open: function (args) {
var numeric = $("#blank").ejNumericTextbox("instance");
numeric.element.siblings('input:visible').focus(); // focus the input element
}
})
}
}
} |
|
function onGridActionCompleteEvent(args) {
……………………………………………………………….
$.ajax({
………………………………………………………..
});
var dia = $('#<%= Grid1.ClientID %>'+"_dialogEdit").ejDialog("instance")
dia.setModel({
//bind open event to ejDialog
open: function (args) {
var numeric = $("#SubA").ejCurrencyTextbox("instance");
numeric.element.blur();
}
})
}
}
} |