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

Cancel bubble in radgrid client event

3 Answers 187 Views
Grid
This is a migrated thread and some comments may be shown as answers.
paul
Top achievements
Rank 1
paul asked on 20 Feb 2011, 12:18 PM
Hi ,
I would like to write some custom client code when radgrid columns are resized on the client. But there seems to be some event bubbling after my custom code works which renders my changes useless. Is there some way where I can specify cancelBubble = true for this onColumnResizing event?

Any help would be appreciated.
Kind Regards,
Paul

3 Answers, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 21 Feb 2011, 03:05 PM
Hello paul,

When handling the event, you just have to set eventArgs.set_cancel(true) and the event will be canceled.
You will find more information here: http://www.telerik.com/help/aspnet-ajax/grid-oncolumnresizing.html
Greetings,
Vasil
the Telerik team
0
paul
Top achievements
Rank 1
answered on 22 Feb 2011, 06:29 AM
Hi Vasil,

Thanks for your reply...

I saw this tutorial for canceling the event. My purpose is to cancel the bubble after the event. i.e when i handle resizing i do not want any other events to fire by bubbling after resizing. Unfortunately Set_cancel(true) cancels the event  that i am executing too...which makes my code useless..

I worked around the issue by handling the column resized event and modifying the radgrid as required. but it would be great to know if there is some other solution for cancel like window.event.cancelBubble = true; Regards Paul
0
Vasil
Telerik team
answered on 22 Feb 2011, 05:14 PM
Hello paul,

Could you please send us the Javascript code that you used and explain in details what your are trying to achieve? In the meantime, we will do our best to think of a workaround for the issue or another approach for achieving the required functionality.

Regards,
Vasil
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Grid
Asked by
paul
Top achievements
Rank 1
Answers by
Vasil
Telerik team
paul
Top achievements
Rank 1
Share this question
or