RadAsyncUpload Not Uploading in ControlDesigner
RadAsyncUpload Not Doing its Job
The RadAsyncUpload worked for me at one point in the ControlDesigner but now it doesn't seem to upload anything. The other problem is that it seems to not leave any evidence of its inability to do so. This is becoming quite frustrating after trying just about everything to get the job done.
Hi jwize,
We need more details in order to find out what the problem is:
1) When it stopped to work ?
2) Can you reproduce the problem with installing the application on another machine?
3) Do you reproduce the problem when you host the project on IIS and Cassini web server?
4) Can you send us a movie that contains reproduced problem and if possible with enabled firebug console?
5) The easiest way to find out what is the problem (in case we manage to reproduce it and the problem is not related to hosting infrastructure) is to send us backup of your database and App_Data folder
Thanks in advance for your answers!
Kind regards,
Widget Designer Requires a Javascript Class
I Figured out the problem. This was related to setting the ClientIDMode=Static and setting the id explicitly on the hosting ServerControl ( inheting from SimpleView) and then setting the ID property explicitly. I did this because I wanted to be able to use the Sys.Application.findComponent(id) from the client-side. When you create a widget you need to author a class in javascript for updating and retrieving values from the Designer. Unfortunately, there is no way to way easily get the component. Setting the ClientIDMode to static and setting the ID forced the component to send a id = "whateverISetTheIdToInTheClass" into the $create method. Then I could easily find the component.
function fileUploaded(sender, args)
// Do something to the designer.
var myComponent = $find("whateverISetTheIdToInTheClass");
var
galleryDeisgner =
null
;
var
components = Sys.Application.getComponents();
for
(
var
i = 0; i < components.length; i++)
if
(components[i].set_fileUploadImage !=
null
)
components[i].set_fileUploadImage(args.get_fileName());
Hi Jaime Weise,
I do not understand entirely scenario you are describing, probably if you send your sources and explain with more details what is the purpose it should be more clear what are you trying to achieve.
Here is just an assumption what could be your problem:
If I were creating server control and id of a component is needed on client I would rather inherit from
SimpleScriptView and send information at GetScriptDescriptors like:
if (this.DescriptionControl != null)
descriptor.AddElementProperty("descriptionElement", this.DescriptionControl.ClientID);