GeekInterview.com
Series: Subject: Topic:
Question: 535 of 648

what is event bubbling?

Asked by: mdchaus | Member Since Nov-2005 | Asked on: Dec 2nd, 2005

View all questions by mdchaus

Showing Answers 1 - 9 of 9 Answers
Mahesh

Answered On : Dec 9th, 2005

Event Bubbling is nothing but events raised by child controls is handled by the parent control. Example: Suppose consider datagrid as parent control in which there are several child controls.There can be a column of link buttons right.Each link button has click event.Instead of writing event routine for each link button write one routine for parent which will handlde the click events of the child link button events.Parent can know which child actaully triggered the event.That thru arguments passed to event routine. " Happy programming"

  
Login to rate this answer.

  
Login to rate this answer.
hakkim

Answered On : Dec 15th, 2006

I no the defenition for interface and abstract classbut i want a one real time example for this 2 question.many intrview ask the same question.

  
Login to rate this answer.
s.jabee

Answered On : Jun 7th, 2007

View all answers by s.jabee

Interface - can be used as a medium for casting objects at runtime, much more useful when dealing with design pattern that deal with delegation [ composition].Abstract class : primarily base classes. Business entity base class etc.

  
Login to rate this answer.
s.jabee

Answered On : Jun 7th, 2007

View all answers by s.jabee

Interface : Much more useful in composition (Delegation approach of programming)Objects are accessed solely through their interfaces.:Abstract Classes: Basically used as base class. for instance business entity base class.

  
Login to rate this answer.

    Event Bubbling is nothing but events raised by child controls is handled by the parent control. Example: Suppose consider datagrid as parent control in which there are several child controls.There can be a column of link buttons right.Each link button has click event.Instead of writing event routine for each link button write one routine for parent which will handlde the click events of the child link button events.This is the answer already written by one of our friend....

Yes  1 User has rated as useful.
  
Login to rate this answer.
apielma

Answered On : Nov 3rd, 2010

View all answers by apielma

Event Bubbling is when an event is triggered from the most specific object on the DOM.For example, assume the is an image IMG1 within a DIV, DIV1. The user clicks the image.It is true that the OIN_CLick event can be fired from both the Image anbd the DIV since the user did click in both objects (The image is in the div)EVent Bubbling means the most specific, si in this case the image is the most specific.THe evebt bubbles up, so if there is not event registered for the image it can fire from the div.Note that IE and netscape use diferent event startegies, IR uses bubbling netscape used the opposite type. 

  
Login to rate this answer.
rimipaul86

Answered On : Sep 14th, 2011

View all answers by rimipaul86

The passing of the control from the child to the parent is called as bubbling. Controls like DataGrid, Datalist, Repeater, etc can have child controls like Listbox, etc inside them. An event generated is passed on to the parent as an ItemCommand.

  
Login to rate this answer.
karthik L

Answered On : Mar 1st, 2012

Basically this is the concept of control hierarchy works just the same with a DataGrid.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.