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

Possible Bug WIth Disabled Input

7 Answers 87 Views
Input
This is a migrated thread and some comments may be shown as answers.
Shaun Peet
Top achievements
Rank 2
Shaun Peet asked on 15 Oct 2007, 12:38 AM
I'm getting a javascript error "object does not support this property or method" when the mouse hovers over a disabled input control.  This happens with a RadTextBox control.

7 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 15 Oct 2007, 10:33 AM
Hi Shaun,

Could you post the control declaration here as we were unable to reproduce the problem when we set the Enabled property to false for a RadTextBox control.

Looking forward to your reply.


Greetings,
Manuel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Shaun Peet
Top achievements
Rank 2
answered on 22 Oct 2007, 01:42 PM
<telerik:RadTextBox ID="rtbAuthor" runat="server" Width="120px" Text='<%# Bind("author") %>' Enabled="False" />

The control is inside a FormView.
0
Giuseppe
Telerik team
answered on 23 Oct 2007, 12:09 PM
Hi Shaun,

Unfortunately we are still unable to reproduce the problematic behavior you are experiencing. Please review the attached application that follows your guidelines and let us know how it goes.


Greetings,
Manuel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Shaun Peet
Top achievements
Rank 2
answered on 25 Oct 2007, 02:57 AM
Instead of using Enabled = "False" I tried ReadOnly = "True" and that solved the problem.  Looks better too!
0
Giuseppe
Telerik team
answered on 25 Oct 2007, 06:44 AM
Hi Shaun,

We are glad you have found a solution for your scenario though we were unable to reproduce the problem you experienced with the Enabled property in the first place.


Sincerely yours,
Manuel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
UT_DEV
Top achievements
Rank 1
answered on 28 Nov 2007, 10:33 AM
Is possible to get events from radinput like I want to show warning box when users clicks on a specific disabled radinput in gridview control.
Now it is solved adding radinput  inside div with onclick handler atached to a div.


WBR
Ilya
0
Sebastian
Telerik team
answered on 29 Nov 2007, 09:37 AM
Hi Ilya,

It seems that you discovered one possible solution for this case. Another option would be to attach the onclick client event of the input control hooking the ItemCreated event of the gridview control and locating the input inside the currently created row. Below is a reference to a project which illustrates how this can be done with RadGrid:

http://www.telerik.com/community/code-library/submission/b311D-eetbt.aspx

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Input
Asked by
Shaun Peet
Top achievements
Rank 2
Answers by
Giuseppe
Telerik team
Shaun Peet
Top achievements
Rank 2
UT_DEV
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or