How to access composite control using javascript in RadDataForm

0 Answers 17 Views
DataForm
T
Top achievements
Rank 1
T asked on 21 Feb 2022, 03:15 PM
I have a composite control that has a link button and RadAyncUpload in RadDataForm.
I access the control as follows using Javascript in a  WebForm.

var filelength = find("<%= CompositeControl1.RadAsyncUpload.ClientID %>").getUploadedFiles().length;

I am not sure how to access this control using javascript from RadDataForm.

I tried using the following,

 var container = $(".RadDataForm")[0];
 var uploaded = $telerik.findElement(container, "CompositeControl1");

I am not sure how to access RadAsyncUpload from the above.Any help is appreciated.Thank you.
Rumen
Telerik team
commented on 24 Feb 2022, 11:39 AM

Hi, you can check out the following how-to resource on the matter: https://www.telerik.com/support/code-library/accessing-controls-in-dataform

If you still need assistance, please open a support ticket and provide a simple runnable project that shows the problem.

Please also make a quick Fiddler Jam Chrome Extension capture and share it with us. It will provide a lot of info easily and allow us to investigate further. Keep in mind that starting from a blank page or at least navigating to your page via the address bar is crucial for capturing all requests and responses:

https://docs.telerik.com/devtools/aspnet-ajax/knowledge-base/common-capture-issues-with-fiddler-jam
T
Top achievements
Rank 1
commented on 24 Feb 2022, 03:21 PM

Thank you.

No answers yet. Maybe you can help?

Tags
DataForm
Asked by
T
Top achievements
Rank 1
Share this question
or