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

[Solved] _onTextBoxMouseOverHandler event handler passes wrong control from the grid on mouse hover

1 Answer 115 Views
Grid
This is a migrated thread and some comments may be shown as answers.
muhammad toori
Top achievements
Rank 1
muhammad toori asked on 21 Jan 2010, 12:38 AM
Hi
One of the columns in our RadGrid is a textbox. In Edit mode, when user selects text from this textbox by hovering and selecting with a mouse and if the mouse goes across to the next column (over to the adjacent control) an error comes up that reads
"Error : 'this.input[...] is null or not an object"

The mouse hover calls the event handler below. The control that is passed into this event hadler is the adjacent control instead of the text box. For this reason input[a] is null. Had the textbox been passed it would not have been null

_onTextBoxMouseOverHandler:

function(b){var a=Telerik.Web.UI.RadInputManager.getTarget(b);

 

if

(!a){return;

 

}

this._inputs[a]._hovered=true;

Any help on this one with be greatly appreciated!

Thanks
mtoori

 

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 25 Jan 2010, 02:29 PM
Hello Muhammad,

I am sending you a simple example which contains a RadGrid with TextBox column and RadInputManager. Please check it out and let me know what differs in your case.
Additionally it will be helpful if you send us a simple running project demonstrating the problem. You could open a formal support ticket from your Telerik account and attach a ZIP file there.
 In that way we can reproduce and pinpoint the problems you're facing on our side, understand the logic of your application and provide a solution.

Sincerely yours,
Radoslav
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.
Tags
Grid
Asked by
muhammad toori
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or