I'm trying to implement the demo as is, but the only difference is that I want to use it in the EditItemTemplate of the RadGrid.
Upon compile it gives me an error (CS0103: The name 'txbImage' does not exist in the current context) on the
Upon compile it gives me an error (CS0103: The name 'txbImage' does not exist in the current context) on the
function OnFileSelected(fileSelected) {var textbox = $find("<%= txbImage.ClientID %>");textbox.set_value(fileSelected);}
which makes sense because txbImage (textbox) does not exisit when the page is first rendered. I've tried to add with ClientScript.RegisterClientScriptBlock() but have not found an event in which to add the Javascript function where it works.
I get thi error reported by FireBug when I double click on the file from the Explorer:
openerPage.OnFileSelected is not a function
1)Is what I'm trying to do possible?
2) how would I change the demo to work in this manner? I want to be able to pick a file from the explorer while in edit mode interacting with a row in the grid.
thank you.