This is a migrated thread and some comments may be shown as answers.

RadAsyncUpload and ajax postback onClientfileUploaded event

1 Answer 146 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Canis Lupus
Top achievements
Rank 1
Canis Lupus asked on 30 Jan 2011, 01:21 PM
I have a RadAsyncUpload control and a DataList control in a webpage. With RadAsyncUpload control I am inserting images into my sqldatabase. I would like to fire a postback action for only datalist control in my webpage after a fileupload completed. How can I fire that postback on clint side?

Thank you.

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 03 Feb 2011, 09:35 AM
Hi Canis Lupus,

The DataList control doesn't have client-side object so you can hardly fire its events from the client. Why would you want to do that?

By default, the user should click on the insert/update buttons, for example, in order to fire the respective server-side event. You can try to inspect the insert button using a tool like firebug in order to see how the DataList postbacks to the server (I guess it is using the __doPostBack function) and manually call it. However, this sounds like a hack to me, since such events should be triggered by the user. Could you please share what you are trying to achieve?

Best wishes,
Genady Sergeev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Upload (Obsolete)
Asked by
Canis Lupus
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or