2011-12-05 3 views
1

페이지에서 다른 것을 클릭하여 Ajax DropDownExtender를 표시 할 수 있습니까? 버튼, ImageButton, 앵커, 이미지, 하이퍼 링크.다른 컨트롤로 Ajax DropDownExtender 표시

--- 더 나은 설명 ---

나는 드롭 다운 확장자가있는 텍스트 상자가 있습니다. 잘 작동합니다. 내가 뭘하고 싶은 다른 컨트롤을 클릭하여 해당 드롭 다운 확장자를 표시합니다.

답변

0

이것은 DropdownExtender의 작동 방법이 아닙니다.

그러나 (다소 불완전한) 해결 방법이 있습니다.

자바 스크립트

function displayDropDownExtender() { 
    // Get the TextBox control that your extender is currently linked to 
    var junk = document.getElementById('<%= TextBox1.ClientID %>'); 
    // Call the DropDownBehavior.hover() method to display the hover effect 
    junk.DropDownBehavior.hover(); 
    // Call the DropDownBehavior._showPopup() method to display the DropDown panel 
    junk.DropDownBehavior._showPopup(); 
} 
+0

@Scott : 무엇이든 제어 당신은 (버튼,하여 ImageButton, 앵커, 이미지, 하이퍼 링크 등)에 클릭이 작업을 수행에 "온 클릭"이벤트를 할당하고 싶습니다 방금 업데이트를 보았습니다. (오랜 시간이 걸렸습니다.) 원래의 대답으로 문제가 해결되지 않을 것입니다. 나는 이것이 도움이되기를 바란다. =) – jadarnel27

관련 문제