[Kendo] kendo grid 내의 데이터 클릭시 해당 링크로 이동 template 사용

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

grid 내에 특정 데이터 클릭시 

사전에 설정해놓은 특정 링크로 이동을 하게 만들기 위해서는 

 

template 파라미터를 사용할 필요가 있다.

template 의 간단한 설명은 아래와 같다

 

columns.template String|Function

The template which renders the column content. The grid renders table rows (<tr>) which represent the data source items. Each table row consists of table cells (<td>) which represent the grid columns. By default the HTML-encoded value of the field is displayed in the column.

 

위의 설명에 따르면 template 는 컬럼의컨텐츠를 렌더링 해주는 

파라미터이다. 사용법은 아래와 같다

$("#grid").kendoGrid({
  columns: [ {
    field: "name",
    template: function(dataItem) {
      return "<strong>" + kendo.htmlEncode(dataItem.namesss) + "</strong>";
    }
  }],
  dataSource: [ { namesss: "Jane Doe" }, { namesss: "John Doe" } ]

특정 함수를 반든 다음에, htmlEncode( )  를 이용하여 

저장된 namesss 값을 출력할 수 있다. 나름 편리한 함수이다.

 

자세한 이용방법은 아래 링크를 참고하면 될것 같다.

dojo.telerik.com/AYAjuYof

 

Kendo UI® Dojo by Progress

 

dojo.telerik.com

docs.telerik.com/kendo-ui/api/javascript/ui/grid/configuration/columns.template

 

columns.template - API Reference - Kendo UI Grid | Kendo UI for jQuery

 

docs.telerik.com

 

반응형

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

[CSS] html 상 STYLE로 CSS 적용하는 법에 대한 간단한 스터디  (0) 2020.11.03
[Kendo UI] [Kendo UI] Kendo UI grid 의 selectedKeyNames( ) 파라미터 사용  (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 UI] [Kendo UI] Kendo UI grid 의 selectedKeyNames( ) 파라미터 사용
  • [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)
  • 블로그 메뉴

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

  • 공지사항

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

  • 태그

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

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
쟈누
[Kendo] kendo grid 내의 데이터 클릭시 해당 링크로 이동 template 사용
상단으로

티스토리툴바