I want the user to be able to make a selection in my grid and then when they close the grid I want the selection passed back to a text box on my page. My grid is actually in a window. So the user clicks a button, it opens my grid and shows a table. I have all of this code working, but now I need to have the selected item passed back to the text box. I have tried this function on the close event of the window.
function
onClose() {
var
selected = $.map(
this
.select(),
function
(item) {
return
$(item).text();
});
$(
"#safekeep"
).text = selected.toString;
}
Any suggestions? Or is there a tutorial somewhere for this?