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

RadGrid ClientEvents > OnCellSelecting Propagate Event.

3 Answers 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Abhijit Shetty
Top achievements
Rank 2
Abhijit Shetty asked on 22 Oct 2012, 08:08 AM
Hi,
Suppose i have placed a button inside a ClientItemTemplate of RadGrid and attached handler to its click event as:
<ClientItemTemplate>
         <input type="button" onclick="OnModifyActiveStatus(this);">
         </input>
</ClientItemTemplate>


Now i have enabled CellSelectedEvent and attached an handler to OnCellSelected event as:
<ClientEvents OnCellSelected="cs" ... />


Now when i click on button inside Template, i want both event handlers to get fired (button.onclick and ClientEvents.OnCellSelected) which I'm getting in firefox but no success in IE.

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 25 Oct 2012, 09:11 AM
Hi Abhijit,

Note that the mentioned behaviour is browser specific and it depends on the different browser event bubbling mechanism. You could manually select the needed sell in the "OnModifyActiveStatus" client function. See the online demo below which could help on this matter:
http://demos.telerik.com/aspnet-ajax/grid/examples/client/cellselection/defaultvb.aspx?#qsf-demo-source

Greetings,
Maria Ilieva
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
Abhijit Shetty
Top achievements
Rank 2
answered on 25 Oct 2012, 09:58 AM
Thanks Maria.
Actually i need to get reference of selected dataItem in OnModifyActiveStatus method which is not possible because of which i used event bubbling where in i store clicked dataItem to global variable in OnCellSelected event and then access it on OnModifyActiveStatus method.

According to you IE doesn't bubble its event? Because in other browsers I'm getting desired functionality.
0
Accepted
Maria Ilieva
Telerik team
answered on 30 Oct 2012, 08:31 AM
Hello Abhajit,

As I previously mentioned this is a browser behaviour and the issue is that the IE browser does not bubble the event as in the other browsers. This is browser behaviour which we could not manipulate.

Regards,
Maria Ilieva
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.
Tags
Grid
Asked by
Abhijit Shetty
Top achievements
Rank 2
Answers by
Maria Ilieva
Telerik team
Abhijit Shetty
Top achievements
Rank 2
Share this question
or