Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
143139 | Mar 5,2019 06:27 PM UTC | Mar 11,2019 06:36 AM UTC | ASP.NET Web Forms | 8 |
![]() |
Tags: Grid |
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();
}
})
}
}
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.