SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Feb 2012
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    EasyUI , how to define onClickCell in the markup ?

    I am using EasyUI 1.35, I am trying to define 'onClickCell' event in the html markup, but failed. how to fix it ?

    Thanks.

    Code:
     <table class="easyui-datagrid" title="Todo List"  id="todoGrid"
                           data-options="tools:'#ttTodo',collapsible:true, fit: true, 
                           singleSelect:true, 
                           rownumbers:true,
                           onClickCell: function(index,field,value){ alert(value); }
                           url:'webresources/rs/getTodoList', 
                           method:'get' " 
                           style="width:auto; height:150px;">   
    
    </table>

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    6,003
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    Hi,

    I'm not very familiar with EasyUI, but maybe you need a comma after the onClicCell function, i.e.

    onClickCell: function(index,field,value){ alert(value); }, <- Here

    Other than this, could you post a link to a page where we can see this not working?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •