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

[Solved] Rowclick event of RadGrid

5 Answers 575 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Avik
Top achievements
Rank 1
Avik asked on 22 Jul 2008, 01:18 PM
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.

5 Answers, 1 is accepted

Sort by
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:
<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
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
Tags
Grid
Asked by
Avik
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Avik
Top achievements
Rank 1
Tom
Top achievements
Rank 1
Ron Kellermann
Top achievements
Rank 1
Share this question
or