How to call serverSide method from javascript

  1. #1

    How to call serverSide method from javascript



    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') {
               WndP.show();
    
    
             }
    After WndP.show i want to call server Side Method
  2. #2

    RE: How to call serverSide method from javascript

    Hi designworxz,

    Sounds like you need an AjaxMethod, see*https://examples1.ext.net/#/Events/A...hods/Overview/


    Hope this helps.


    Geoffrey McGill
    Founder
  3. #3

    RE: How to call serverSide method from javascript

    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') {
    WndP.show();

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

Similar Threads

  1. Replies: 2
    Last Post: Jul 20, 2012, 7:26 PM
  2. Call C# server method by javascript
    By joao.msdn in forum 1.x Help
    Replies: 1
    Last Post: May 25, 2010, 2:20 AM
  3. Call method in the MessageBox.Confirm
    By flaviodamaia in forum 1.x Help
    Replies: 0
    Last Post: Mar 10, 2010, 10:35 AM
  4. method call
    By mono in forum 1.x Help
    Replies: 1
    Last Post: Mar 09, 2009, 6:46 AM
  5. Replies: 3
    Last Post: Jan 03, 2009, 10:41 PM

Posting Permissions