View Full Version : How to call serverSide method from javascript

Mar 09, 2009, 10:09 PM
How to call serverSide method from javascript

Am doing this

var cellClick = function(grid, rowIndex, columnIndex, e) {
var t = e.getTarget();
var record = grid.getStore().getAt(rowIndex); // Get the Record
var columnId = grid.getColumnModel().getColumnId(columnIndex); // Get column id

if (t.className == 'imgEdit' && columnId == 'Preview') {


After WndP.show i want to call server Side Method

Mar 09, 2009, 10:30 PM
Hi designworxz,

Sounds like you need an AjaxMethod, see http://examples1.ext.net/#/Events/AjaxMethods/Overview/

Hope this helps.

Mar 09, 2009, 11:26 PM
But that can be called through handler.

How can i call that handler from Javascript to execute Server Side Method.
My problem is when clicking on details Column in GridView Panel. I want to get record
and based on record i want to display html file in popup window.

i dont know how to implement this

if (t.className == 'imgEdit' && columnId == 'Preview') {

=======Here Call to server Method passing record=======