使用下拉列表和文本框弹出网格视图行编辑 [英] Grid view row editing with drop down list and text box in modal pop up using

查看:82
本文介绍了使用下拉列表和文本框弹出网格视图行编辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

引导程序中的Gridview行编辑。





单击编辑按钮时,应出现模式弹出窗口并显示所有网格行数据应该处于编辑模式。

如何使用ajax调用



我尝试了什么:



函数编辑(RecordID){

$ .ajax({

url:'GroupDoctors.aspx / GetDoctorByGroupCode? ts ='+ $ .now(),

contentType:'application / json',

类型:'POST',

数据: JSON.stringify({id:RecordID}),

成功:函数(res){



var obj = JSON.parse(res .d);

$('#<%= txtUpperLimit.ClientID%>')。val(obj.UpperLimit);

$('#< %= txtLowerLimit.ClientID%>')。val(obj.DownLimit);

},

错误:函数(错误){

}

});



}



我该怎么称呼我在这里下载

Gridview row editing in bootstrap.


On clicking of a edit button a modal pop up should appear and all grid row data should be in edit mode.
how to do using ajax call

What I have tried:

function Edit(RecordID) {
$.ajax({
url: 'GroupDoctors.aspx/GetDoctorByGroupCode?ts=' + $.now(),
contentType: 'application/json',
type: 'POST',
data: JSON.stringify({ id: RecordID }),
success: function (res) {

var obj = JSON.parse(res.d);
$('#<%=txtUpperLimit.ClientID%>').val(obj.UpperLimit);
$('#<%=txtLowerLimit.ClientID%>').val(obj.DownLimit);
},
error: function (err) {
}
});

}

How should i call my drop down here

推荐答案

.ajax({

url:'GroupDoctors.aspx / GetDoctorByGroupCode?ts ='+
.ajax({
url: 'GroupDoctors.aspx/GetDoctorByGroupCode?ts=' +


.now(),

contentType:'application / json' ,

类型:'POST',

数据:JSON.stringify({id:RecordID}),

成功:函数(res) {



var obj = JSON.parse(res.d);
.now(),
contentType: 'application/json',
type: 'POST',
data: JSON.stringify({ id: RecordID }),
success: function (res) {

var obj = JSON.parse(res.d);


('#<% = txtUpperLimit.ClientID%>')。val(obj.UpperLimit);
('#<%=txtUpperLimit.ClientID%>').val(obj.UpperLimit);


这篇关于使用下拉列表和文本框弹出网格视图行编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆