Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4022142
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:26:18+00:00 2026-05-20T10:26:18+00:00

here my js file : var fm = Ext.form; var grid = new Ext.grid.EditorGridPanel({

  • 0

here my js file :

var fm = Ext.form;
var grid = new Ext.grid.EditorGridPanel({
    height: Ext.get("content").getHeight(),
    width: Ext.get("content").getWidth(),
    store: store,
    pruneModifiedRecords : true,
    clicksToEdit : 1,
    columns:[
        {header: "Kd.Rayon",        dataIndex: 'KD_RAYON',  width:60,   sortable: false},//
        {header: "Kd.Sek",          dataIndex: 'KD_SEK',    width:60,   sortable: false},//
        {header: "Paralel",         dataIndex: 'PARALEL',   width:50,   sortable: false, editor: new fm.TextField({allowBlank: false})},
        {header: "Absen",           dataIndex: 'ABSEN',     width:50,   sortable: false, editor: new fm.TextField({allowBlank: false})},
    .......
    ],

    stripeRows: true,
    loadMask : {
        msg : 'Loading data...'
    },
    //autoExpandColumn: 'ALAMAT',
    title: 'Siswa', 

    sm: new Ext.grid.RowSelectionModel({singleSelect: true}),
    tbar: [{
        id : 'btnSave',
        iconCls : 'disk',
        tooltip : 'Simpan perubahan data',
        disabled: true,
        text : 'Simpan',
        handler: function(){
            var  records = grid.store.getModifiedRecords();
            if (records.length<=0)
                Ext.Msg.alert("Data","Tidak ada perubahan");
            else{
                var data = [];
                for (i=0; i<records.length; i++){
                    data.push(records[i].data);
                }
                data = Ext.encode(data); 
                Ext.getBody().mask();
                Ext.Ajax.request({ 
                  //url: 'test.php',
                  url: 'php/crud.php',
                  params: {
                    data: data,
                    ACT : "U",
                    FORM: "SISWA",
                    KD_PROP:Pendas.kd_prop,
                    KD_RAYON:Pendas.kd_sek.substring(2,4),
                    KD_SEK:Pendas.kd_sek.substring(4,7)
                  },
                  success: function(res,obj){
                    var json = res.responseText;
                    var o = eval("("+json+")");
                    Ext.Msg.alert("Data",o.info);
                    store.reload();
                    Ext.getBody().unmask();
                  }
               });
            }
        }
    }]
});

here the case,….
first, i edit the first row,..
i save it, it return true, where return is lets say “Upadate success”,…
but, when i clicked th button save twice,…
it resend the modifiedRecords…

am i doing wrong??,…
how to reset my “modified record”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T10:26:19+00:00Added an answer on May 20, 2026 at 10:26 am

    You have pruneModifiedRecords set on the EditorGridPanel but it needs to be on the Store.

    http://dev.sencha.com/deploy/dev/docs/source/Store.html#cfg-Ext.data.Store-pruneModifiedRecords

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here are the problem scripts: This is from the HTML file: <script type=text/javascript> var
here is my js file dashboard.js Ext.onReady(function(){ Ext.QuickTips.init(); // **want to know why this
Here is my first file: var self = this; var config = { 'confvar':
I've seen this one-liner perl -lane '$_{$F[0]}+=$F[1]}print$_ $_{$_}for keys%_;{' file here: How can I
I'm reading a js file at here , on the very top of this
I downloaded the swc file from here: http://developer.yahoo.com/maps/flash/flexGettingStarted.html And put it in my flex
I don't understand what happens here : use PAR { file => 'foo.par', fallback
Ubuntu Server 9.10, Here is my file, test.py import commands blkid = commands.getoutput('blkid') print
I am working on understanding Core Audio, or rather: Extended Audio File Services Here,
Here's the XML file i'm working on: <list> <activity>swimming</activity> <activity>running</activity> <activity>soccer</activity> </list> The index.php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.