0

First of all, I ask for your understanding that I am not good at English.

I use Toast Ui Grid

if grid cell click => i want get first cell.value

The cell is configured like this.

|board_no|board_title|user|

if click board_title -> i want get board_no number

i use for formatter, then i get board_no and i use

formatter: function (e) {
  return `<a href="detail?no=${e.value}">${e.value}</a>`;  
},

how can i get board_no, when i click board_title?

thanks for your help

1 Answer 1

0
grid.on("click", function (ev) {
    let board = grid.getRow(ev.rowKey);
    location.href = "/detail?no=" + board.board_no;
});

find rowKey method and this is my answer i finished

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.