[Kendo UI] [Kendo UI] Kendo UI grid 의 selectedKeyNames( ) 파라미터 사용

2020. 10. 26. 21:35·OLD/Front End
반응형

위 파라미터는 kendo grid 내에서 셀렉트된 변수를 저장하여

출력해주는 함수이다.

 

사용방법은 kendoGrid 의 columns 파라미터 내에서 

selectable 을 오출하여 select 를 적용해야되고

columns: [
     { selectable: true, width: "50px" },
     { field:"ProductName", title: "Product Name" },
     { field: "UnitPrice", title:"Unit Price", format: "{0:c}"},
     { field: "UnitsInStock", title:"Units In Stock"},
     { field: "Discontinued"}]
  });

 

다음으로는 dataSource 의 schema 에 model 파라미터를

사용해주어야한다.

dataSource: {
      pageSize: 10,
      transport: {
      read:  {
          url: "https://demos.telerik.com/kendo-ui/service/Products",
          dataType: "jsonp"
              }
          },
      schema: {
          model: {
               id: "ProductID"
             }
       }

위 두개를 사용하고 나서 selectedKeyNames( ) 파라미터를 사용하여

model 내에 있는 값을 저장하고 출력할 수 있다

 

위에 있는 코드의 full version 은 아래 링크에 있다.

dojo.telerik.com/

 

Kendo UI® Dojo by Progress

 

dojo.telerik.com

아래 링크는 kendoGrid 에 저장된 데이터를 추출하는 방법이다

stackoverflow.com/questions/54309968/how-to-get-dataitems-of-selectedkeynames-of-checked-row-across-all-pages-in-kend/54310427

 

How to get dataItems of selectedKeyNames of checked row across all pages in kendo grid

I have Kendo grid with local data and check box and pagination. I am getting all checked items Id using selectedKeynames() across all pages. How can I get dataItems of checked iems across all pages?

stackoverflow.com

 

반응형

'OLD > Front End' 카테고리의 다른 글

[CSS] html 상 STYLE로 CSS 적용하는 법에 대한 간단한 스터디  (0) 2020.11.03
[Kendo] kendo grid 내의 데이터 클릭시 해당 링크로 이동 template 사용  (0) 2020.10.26
[Kendo UI] [Kendo UI] Kendo UI grid nested json 처리하는 쉬운 법  (0) 2020.10.23
[Kendo UI] Kendo UI grid json 포멧 처리하는 법  (0) 2020.10.23
[Kendo UI] Kendo UI grid data source 하는 법과 주의할 것  (1) 2020.10.22
'OLD/Front End' 카테고리의 다른 글
  • [CSS] html 상 STYLE로 CSS 적용하는 법에 대한 간단한 스터디
  • [Kendo] kendo grid 내의 데이터 클릭시 해당 링크로 이동 template 사용
  • [Kendo UI] [Kendo UI] Kendo UI grid nested json 처리하는 쉬운 법
  • [Kendo UI] Kendo UI grid json 포멧 처리하는 법
쟈누
쟈누
Ad astra per aspera
    반응형
  • 쟈누
    쟈누의 기록공간
    쟈누
  • 전체
    오늘
    어제
    • 분류 전체보기 (444)
      • AWS (31)
        • Glue (4)
        • S3 (1)
      • 클라우드 (0)
      • Data Engineering (37)
        • GitHub (10)
        • NiFi (11)
        • Spark (10)
        • Snowflake (0)
        • 머신러닝, AI (6)
      • 언어 (118)
        • 데이터 베이스 (42)
        • JAVA (9)
        • Python (34)
        • Java Script (15)
        • Linux (18)
      • 프로젝트, 인강 그리고 책 (30)
        • Spotify Project (7)
        • RASA chatbot Project (9)
        • Naver shopping Project (6)
        • 빅데이터를 지탱하는 기술 (8)
      • OLD (56)
        • IT 용어 사전 (13)
        • Front End (12)
        • Back End (31)
      • Error code 모음 (165)
        • 1. SQL errors (17)
        • 2. Hadoop errors (20)
        • 3. Linux Errors (14)
        • 4. Python errors (33)
        • 5. JAVA, Spring errors (41)
        • 6. Jav Script errors (10)
        • 7. Dev Tools errors (9)
        • 8. Git errors (8)
        • 9. Jenkins Errors (4)
        • 10. airflow Errors (2)
        • 11. Aws errors (7)
      • 개인 (1)
        • 책 (1)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
    • 블로그 관리
    • 글쓰기
  • 링크

  • 공지사항

    • 간단한 블로그 소개
  • 인기 글

  • 태그

    NiFi
    에러
    AWS
    SQL
    error
    Spring
    API
    linux
    json
    자바
    파이썬
    MySQL
    Git
    install
    node
    python error
    Python
    java
    설치
    리눅스
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
쟈누
[Kendo UI] [Kendo UI] Kendo UI grid 의 selectedKeyNames( ) 파라미터 사용
상단으로

티스토리툴바