Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
update cell text with javascript
posted

hi, 

I have a question. ^^

I want to change a cell text with html code. ( i can change a cell text in cs using this code >> e.Row.Items.FindItemByKey("CodeName").Text = "<a>test</a>" )

how can i do same thing in client side?

>>>>>>> my grid <<<<<<<<<<<<<<

>>>>>>>> my javascript code <<<<<<<<<<<<<<

var flag = "1";

var codeName  = "test";

function WebDataGridCate1_CellEditing_ExitedEditMode(sender, eventArgs) {

       var codeNameHtml = "<a href='./CodeCommon.aspx?FLAG=" + flag + "'>" + codeName + "</a>";
      eventArgs.getCell().get_row().get_cell(2).set_text(codeNameHtml);

}

Parents
No Data
Reply
  • 960
    Offline posted

    Hello seunggyun kang,

    Could you share with us a screen shot which shows what you want for our better understanding of your question?

Children
No Data