Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to correctly associate double click with the Edit?
Message
General information
Forum:
Javascript
Category:
JQuery
Miscellaneous
Thread ID:
01570547
Message ID:
01570682
Views:
37
So the difference with the original flexigrid code and new one is that in the original the trSelected seemed to attach when I selected a row with the mouse. Right now this class only attaches after I click on the row. That's the difference and that's why that code didn't work.

I am wondering if the developers of flexigrid can change it the way it was. I may try comparing versions myself, but I doubt I'll figure this out.

In any case, now I know why it's happening. May be a solution here (on double click) is to somehow execute this original click?

>To debug this, I'd open the site up in Chrome and select a row. Then I'd go into Elements and click on the magnifying glass icon (small icon at the bottom) and select the row that is highlighted. In the source I'd make sure that they're still attaching the class of "trSelected" to the selected rows. If that looked good, I'd then click on the Console menu option and attempt to view difference references / run your code:
>
>
>$('#flexClients')   (then hit Enter - is a bit of HTML returned? If not, you've got the wrong reference)
>
>$('.trSelected', $('#flexClients')).each(function() { alert('Id is: ' + $(this).attr('id')) })  (then hit enter, it should display the selected row ID)
>
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform