Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What if multiple TargetControls for the ModalPopup?

modalpopup
0
Posted

What if multiple TargetControls for the ModalPopup?

0

A ModalPopup doesn’t allow this natively, but it’s still possible to achieve by manipulating the modalpopup control with javascript directly. Let’s say there are two buttons(btnA, btnB) to be set as the target control. 1. We set btnA to be the target control with modalpopup’s TargetControlID. 2. Assign a behaviorID to modalpopup. 3. Attach the following javascript function as the click event handler to btnB. function onClick() { $find(“behaviorIDofModalPopup”).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123