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

RadGrid rowdblClick event not working on server, but is working on local

2 Answers 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kent
Top achievements
Rank 1
Kent asked on 15 Oct 2012, 04:45 PM
Hi guys,

We have a website running on server with iss 6.0. The aspx folder contains the right code, within the RadCodeBlock, to change the row to an editable state on a doubleclick. But when running the site off the server, this does not work. We did some testing, and when an alert(); is put after the
$find("<%= gvRole.ClientID %>").get_masterTableView().editItem(editedRow);
it does work. And it takes more than just one doubleclick. Is the alert(); refreshing the ajax panel, or is it doing something else to make it work.

Thanks
Kent

2 Answers, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 18 Oct 2012, 08:41 AM
Hello,

 You can check whether all the client-side scripts are loaded correctly in this case and there are no javascript errors on the page. Also make sure you use the latest version of the Telerik.Web.UI assembly.
The alert() method blocks the current thread of execution of javascript so it is not a very good way of testing firing of events because it suspends the event until the OK button is clicked. You can also wrap the code in timeout function to give it some more to time to execute if it depends on other events fired later.

Greetings,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Kent
Top achievements
Rank 1
answered on 18 Oct 2012, 11:27 AM
Thank you Marin!
Tags
Grid
Asked by
Kent
Top achievements
Rank 1
Answers by
Marin
Telerik team
Kent
Top achievements
Rank 1
Share this question
or