Hi All,
I have a form with a RadGird that load a saved images files from the database....
all is ok...
The grid has the option of adding new one and edit the existing....
I have added TemplateColumns for the Image column, that has Edit and Insert Item templates....
In those template i added the RadUpload Control, to allow the user to select the file he wants to save to the database...
the grid and insert and the edit function all works ok....
But i need to show the the extention and size of the selected file to be saved before it is saved to the database and show them in read only textboxes also shown in the edit/insert form....
I can find this upload control in the grid itemcreated event and i added the an event handler of this upload control to handle the FileExists event and i added the function to be called when this event fires BUT this function nevers called!!!!
Here is my code in the grid item created event
and this is the function defined to handle this event
my idea is to get the size and exetenstion of the selecetd file within this function and show them in the corresponding controls....
But this function never calls....
I don't know what i am missing????
Any help will be great....
Thanks
Asa'ad.....
I have a form with a RadGird that load a saved images files from the database....
all is ok...
The grid has the option of adding new one and edit the existing....
I have added TemplateColumns for the Image column, that has Edit and Insert Item templates....
In those template i added the RadUpload Control, to allow the user to select the file he wants to save to the database...
the grid and insert and the edit function all works ok....
But i need to show the the extention and size of the selected file to be saved before it is saved to the database and show them in read only textboxes also shown in the edit/insert form....
I can find this upload control in the grid itemcreated event and i added the an event handler of this upload control to handle the FileExists event and i added the function to be called when this event fires BUT this function nevers called!!!!
Here is my code in the grid item created event
MyUploadControl.FileExists += new
Telerik.Web.UI.Upload.UploadedFileEventHandler(myFunction);
Protected void myFunction(Object sender,
Telerik.Web.UI.Upload.UploadedFileEventArgs e)
{
someLabel.Text =
"my function is called";
}
But this function never calls....
I don't know what i am missing????
Any help will be great....
Thanks
Asa'ad.....