documentation here의 팝업 메뉴에 대해 읽었습니다. 이 메뉴가 이미 제공되었는지 여부가 명확하지 않으며 특정 속성을 사용 가능하게 설정해야합니다. 아니면 그냥 팝업 메뉴의 예이며 만들어야합니까? 나는 지금 막 devexpress 격자를 탐구하는 것을 시작하고 어떤 도움든지 평가 될 것입니다.AspxGridView의 열 머리글에 대한 컨텍스트 메뉴 표시
0
A
답변
2
이 항목에서는 Winforms Grid 인 XtraGrid에 대해 설명합니다. ASPxGridView는이
ASPxGridView - How to implement showing/hiding columns in the manner similar to ASPxPivotGrid
예에 도시 된 바와 같이 당신이 그것을 직접 구현하려고 할 수 있습니다,이 메뉴를 제공하지 않습니다.
0
It is possible we can create context menu on aspxgridview. Find the following example for aspxgridview context menu.
Default.aspx:
=============
<dx:ASPxGridView ID="grvContexMenuExample" runat="server" AutoGenerateColumns="false"
KeyFieldName="ID" EnableViewState="true" ClientInstanceName="grdtest" Width="100%"
Settings-GridLines="None" OnHtmlRowPrepared="grvContexMenuExample_HtmlRowPrepared">
<ClientSideEvents ContextMenu="function(s,e) {
if(e.objectType == 'header')
{
headerContextMenu.ShowAtPos(e.htmlEvent.clientX, e.htmlEvent.clientY);
}
else if(e.objectType == 'row')
{
headerContextMenu.ShowAtPos(e.htmlEvent.clientX, e.htmlEvent.clientY);
}
}" />
<Columns>
<%--Your columns goes here--%>
<columns>
</dx:ASPxGridView>
<!--Start New Context Menu !-->
<dx:ASPxPopupMenu ID="mnContextMenu" runat="server" ClientInstanceName="headerContextMenu"
EnableAnimation="false" PopupHorizontalAlign="OutsideRight" PopupVerticalAlign="TopSides"
PopupAction="RightMouseClick">
<Items>
<dx:MenuItem Text="New Context Menu1">
</dx:MenuItem>
</Items>
<ClientSideEvents ItemClick="ContextMenuItemClick" />
</dx:ASPxPopupMenu>
<!--End New Context Menu !-->
Default.aspx.cs:
================
protected void grvContexMenuExample_HtmlRowPrepared(object sender, ASPxGridViewTableRowEventArgs e)
{
if (e.RowType == GridViewRowType.Data)
if (e.RowType == GridViewRowType.Header)
{
e.Row.Attributes.Remove("oncontextmenu");
}
}
관련 문제
- 1. DataGrid의 머리글에 다른 컨텍스트 메뉴 추가
- 2. ExtJS 3 - GridPanel 열 머리글에 항상 메뉴 아이콘 표시?
- 3. 컨텍스트 메뉴 표시
- 4. 표시 컨텍스트 메뉴 (마커)
- 5. jqgrid 열 머리글에 대한 링크 추가
- 6. dataGridView의 행 및 열 머리글에 대한 질문
- 7. Silverlight DataGrid의 열 머리글에 대해서만 컨텍스트 메뉴를 표시하는 방법은 무엇입니까?
- 8. AspxGridView의 AspxComboBox
- 9. django의 열 머리글에 기본값 추가
- 10. WPF LIstView 열 머리글에 바인딩
- 11. 동적 컨텍스트 메뉴 옵션
- 12. 컨텍스트 메뉴 항목
- 13. Windows 가젯 컨텍스트 메뉴
- 14. 트리보기 항목 노드에 대한 컨텍스트 메뉴 명령
- 15. 모든 창에 대한 전역 컨텍스트 메뉴 리소스
- 16. jquery 모든 자식에 대한 컨텍스트 메뉴 적용
- 17. DataGrid 행에 대한 컨텍스트 메뉴 만들기
- 18. 컨텍스트 메뉴 parent?
- 19. QTreeWidget에서 컨텍스트 메뉴 호출
- 20. 컨텍스트 메뉴 - 자바 스크립트
- 21. Lotus Notes의 Xpage에서보기 패널의 열 머리글에 액세스
- 22. 정의 컨텍스트 메뉴
- 23. ASPxGridView의 DevExpress 세부 정보보기
- 24. Android에서 컨텍스트 메뉴 스타일 변경
- 25. 오른쪽 탐색기 컨텍스트 메뉴 (IID_IContextMenu?)
- 26. 목록보기에서 안드로이드 컨텍스트 메뉴
- 27. Android - 버튼 플로팅 컨텍스트 메뉴
- 28. 요청시 컨텍스트 메뉴 작성
- 29. 탐색기 컨텍스트 메뉴
- 30. android listview 컨텍스트 메뉴
안녕하세요, 상황에 맞는 메뉴는 내 대답에 aspxgridview 헤더 모양을 사용할 수 있습니다. –