jQuery UI Widgets Forums Grid clear the same cell on every row of grid from external button

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 6 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • shawn
    Participant

    I want to click a HTML button, and clear (remove content) specific cells on my grid.

    How?

    grid:

    									$("#jqxgrid").jqxGrid({
    											width: '100%',
    											height:395,
    											rowsheight:40,
    									    source: employeesAdapter ,
    									    editable:true,
    									    sortable:true,
    									    columns: [
    									        { text: 'ID', datafield: 'eID', width: '3%', editable: false},
    									        { text: 'user ID', datafield: 'euserID', width: '19%', columntype: 'textbox' },
    									        { text: 'user PW', datafield: 'euserPW', width: '9%' },
    									        { text: 'name', datafield: 'efullName', width: '12%'},
    									        { text: 'email', datafield: 'eemail', width: '19%' },
    									        { text: 'last login', datafield: 'elastLogin', width:'16%',editable: false },
    									        { text: 'ack files', datafield: 'fack', width:'15%', editable: false, cellsrenderer: renderer },
    									        { text: 'action', datafield: 'btn', width:'7%', editable: false }
    									    ]									    
    									});		

    HTML:

    <button onclick="runFunction();">go</button>
    function funFunction(){
       // clear "ack files" field on every row in grid
    
    }
    • This topic was modified 6 years, 1 month ago by  shawn. Reason: clean code

    Hristo
    Participant

    Hello shawn,

    Please, take a look at this example:
    http://jsfiddle.net/txhi/q2jrLx8o/

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.