Click here to Skip to main content
14,699,759 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have a javascript popup dialog popup box which has 3 rows (Name, Category, UOM).
I put Name is Textbox while the rest two are Dropdownlist.
So, the problem is: when I click linkbutton on gridview, the popup dialog is showing linkbutton in the Name instead of showing Textbox.

Its okay, just help one of the following...
1. Change textbox on popup dialog from showing linkbutton when I click gridview's linkbutton. Or
2. When I click linkbutton on popup dialog, change to textbox to edit text value.

How to do in javascript?
Thanks. ^_^
Posted
Comments
KKKyaw 13-Jun-14 5:38am
   
I've solved it myself... ^_^

<script type="text/javascript">

//Edit Dialog Box
$(document).on("click", "[id*=IngNameLinkButton]",
function () {

var indname = $(".Id", $(this).closest("tr")).text().trim();
document.getElementById('<%= txtIndNameEdit.ClientID %>').value = indname;

$("#dialog").dialog({
title: "View Details",
height: 200,
width: 400,
resizable: false,

// show: {
// effect: "blind",
// duration: 100
// },
// hide: {
// effect: "blind",
// duration: 100
// },
buttons: {
"Update": function () {
$("#<%=testhiddenBtn.ClientID %>").click();
$(this).dialog("close");
},

"Cancel": function () {
$(this).dialog("close");

}
},
modal: true
});
return false;
});
</script>

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900