Hi,
I need your help to add a new row to GridPanel when a button is clicked.
And this row should have a hyperlink in one of the cell.
Thanks in advance![]()
Hi,
I need your help to add a new row to GridPanel when a button is clicked.
And this row should have a hyperlink in one of the cell.
Thanks in advance![]()
maybe, some like this:
Code:function(btn, ev) { var u = new store.recordType({ name: '', description : '' }); grid.stopEditing(); store.insert(0, u); grid.startEditing(0, 1); }
to have a hyperlink just add <a href='vhgvd.html'>Your Hyperlink</a>
rest has been said in teh above postCode:var defaultData = { name:'jbj', description:'jh', //your 3rd column yourhyperlink:'<a href='vhgvd.html'>Your Hyperlink</a>' }; var u = new store.recordType(defaultData);
I Meet Challenge with Excitement & My Only Gossip is Love
and write a renderer for the column of field3 to show the value as a hyperlink, e.g.Code:var rec = new store.recordType({ field1: 'value1', field2: 2, field3: 'http://www.google.com' }); store.add(rec);
Code:renderer: function(v) { return '<a href="' + v + '">' + v + '</a>'; }