datagrid - How to add a row hyperlink for an extJS Grid? -
can please throw light on how go rendering hyperlink in cells of particular column in extjs? have tried binding column render function in js, send html:
<a href="controllername/viewname">select</a>
however, this, problem that, once hit controller through link, navigation successful, subsequent navigations data-grid show empty records.
the records fetched db through spring mvc controller, have checked.
please note happens once use row hyperlink in extjs grid navigate away grid. if come grid, , navigate elsewhere , again come grid, data displayed fine. problem occurs in case of navigating away grid, using hyperlink rendered in one/any of cells.
thanks help!
i created renderer looked clicking on it.
arenderer: function (val, metadata, record, rowindex, colindex, store){ // using cellclick invoke return "<a>view</a>"; },
but used cell event manage click.
cellclick: { fn: function (o, idx, column, e) { if (column == 1) // doesn't prevent user moving column { var store = o.getstore(); var record = store.getat(idx); // work } } }
Comments
Post a Comment