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

Disable radUpload on pageLoad()

4 Answers 113 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 24 Mar 2009, 06:15 PM
I am unable to disable radUpload during client-side pageLoad().  What I want to do is during pageLoad() disable the control and then enable after two or more rows in a grid on the page have been selected.

Here is the tag for the radUpload control and pageLoad() function:

<

telerik:RadUpload ID="RadUploadBasicFile" runat="server" Skin="Telerik">

 

 

</telerik:RadUpload>

 

function

pageLoad() {

 

 

var basicUpload = $find('<%=RadUploadBasicFile.ClientID%>');

 

 

if (basicUpload != null)

 

basicUpload.Enabled =

false;

 

}

I did verify that it is hitting the pageLoad() function and the basicUpload.Enabled line.  I also tried the set_enabled() method for the radupload object, but that didn't work either.

Any ideas how I can disable the control client-side.  I did read on another thread that if you disable a control on the server-side that you cannot enable on the client-side.

I am using RadControls for ASP.NET AJAX Q3 2008.

Thanks.

4 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 26 Mar 2009, 12:21 PM
Hi Jim,

Thank you for bringing this issues to our attention. Actually, this happens to be a bug in the control. I have forwarded you report to our dev team and it will be fixed soon. You Telerik points have been updated.

Thanks for your cooperation and involvement,
Paul
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Shrikant Kale
Top achievements
Rank 1
answered on 01 Dec 2009, 07:03 AM
Hi,

I am also having a similar requirement. I need to enable/disable radupload control from client side.
Is this bug fixed? or is there any other way to achieve it?

-Shrikant
0
Genady Sergeev
Telerik team
answered on 03 Dec 2009, 01:21 PM
Hello Shrikant Kale,

Unfortunately we are not yet ready with that feature. There were some problems implementing it. However, there is a workaround that you can use. I have prepared sample project demonstrating how, on page load, the upload component is disabled. Then, based on some criteria, you can enable it using RadAjaxManager. This will lead to a behavior same as it was on the client side. For more information, please refer to the sample project.

Greetings,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Shrikant Kale
Top achievements
Rank 1
answered on 04 Dec 2009, 03:08 AM
Hi Genady Sergeev,

Thanks a lot for the reply. I have changed the design and will not have to disbale the upload control on client side. But I will consider your solution if I need to do it. Thanks again.

Regards
Shrikant
Tags
Upload (Obsolete)
Asked by
Jim
Top achievements
Rank 1
Answers by
Paul
Telerik team
Shrikant Kale
Top achievements
Rank 1
Genady Sergeev
Telerik team
Share this question
or