View Full Version : how to add a row from grid for emailing?
16 Jul 2012, 10:55 AM
How can I email a row information , when the user slects a checkbox from a grid and want to email the row information when the user clicks on the emai button on the bottom
16 Jul 2012, 11:30 AM
You can get the JSON representation of an entire grid row like this:
var record = someGrid.getStore().getAt(<n>);
var json = Ext.encode(record.data);
You can then use an Ext.Ajax.request() (http://docs.sencha.com/ext-js/4-1/#%21/api/Ext.Ajax) to pass the JSON to the server-side.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.