0
Hi,
When you click on edit button bind the value of those element in you model property using jquery after that you can use Ajax method then you will get this values.
0
Hi BKS,
What is the value you are getting in this field - data[i].Date
0
Dear Ramesh Palanivel,
I have tried your code but same problem.Now i am sharing my code
create
{
"data": "Date",
"render":function(data) {
return moment(data).format("MM/DD/YYYY");
},
"name": "Date", "autoWidth": true
},
Edit
for (i = 0; i < data.length; i++) {
var Name = data[i].Name;
var Code = data[i].Code;
var Email =data[i].Email;
var Date = $('#Date-Id').val(moment(data[i].Date).format('MM/DD/YYYY'));
$('#Name-Id').val(Name);
$('#Code-Id').val(Code);
$('#Email-Id').val(Email);
$('#Date-Id').val(Date);
}
0
Hi Saha,
Try this code,
$('#dpEffective').val(moment(data[i].Date).format('MM/DD/YYYY'));
0
Hi Ramesh Palanivel,
Thank you, for creating ui it is working fine, for edit ui i need similar date what i put in create.
0
Hi Saha,
What's your exact requirement. Please share some screen shots.