Hi,
In mozilla the rowclick event of radgrid is not firing whereas in IE it works fine.Since i have written a js function for the rowclick event i somehow need the rowclick event to be fired irrespective of the browsers.
Can anyone let me know the fix for the above issue.
Thanks,
Avik.
In mozilla the rowclick event of radgrid is not firing whereas in IE it works fine.Since i have written a js function for the rowclick event i somehow need the rowclick event to be fired irrespective of the browsers.
Can anyone let me know the fix for the above issue.
Thanks,
Avik.
5 Answers, 1 is accepted
0
Princy
Top achievements
Rank 2
answered on 23 Jul 2008, 06:45 AM
Hi Avik,
I tried with this on both FireFox and IE. It is working as expected.
ASPX:
CS:
Thanks
Princy.
I tried with this on both FireFox and IE. It is working as expected.
ASPX:
| <ClientSettings EnablePostBackOnRowClick="True" > |
| <ClientEvents OnRowClick="OnRowClick" /> |
| </ClientSettings> |
CS:
| <script type="text/javascript" language="javascript" > |
| function OnRowClick() |
| { |
| alert('RowClicked?') |
| } |
| </script> |
Thanks
Princy.
0
Avik
Top achievements
Rank 1
answered on 23 Jul 2008, 06:58 AM
Hi Princy thanks for replying.
But the thing is we don't want to set the property EnablePostBackOnRowClick to True. How it can be done now from the javascript without setting this property?
Thanks,
Avik
But the thing is we don't want to set the property EnablePostBackOnRowClick to True. How it can be done now from the javascript without setting this property?
Thanks,
Avik
0
Princy
Top achievements
Rank 2
answered on 23 Jul 2008, 07:40 AM
Hi Avik,
The client-side RowClick event is firing properly on both FireFox and IE when I tried on my end. I am not sure whether this is related to the Grid version. My Grid version is 2008.1.415.20.
Thanks
Princy
0
Tom
Top achievements
Rank 1
answered on 25 Nov 2009, 11:14 AM
Same problem here, but when using version 2009.2.701.35. Any advices?
0
Ron Kellermann
Top achievements
Rank 1
answered on 12 Mar 2010, 05:40 PM
Hi,
The javascript function has to either in the include .js file or has to be register using Registerclientscriptblock. I faced the same the problem in the firefox when I registered the script and it started working.
Karun