Results 1 to 4 of 4

Thread: Grid update failing

  1. #1
    Sencha User
    Join Date
    Jul 2016
    Posts
    19
    Answers
    3

    Default Grid update failing

    Hi,

    i'm trying to update the grid with different values, when i try updating the bus name column it sucesssfully gets updated , but without touching the bus name.. only I'm updating the time and checkbox og ongoing.. update fails... since it takes the description of the bus as the parameter . and it's allowed only an integer . bus name has id as the valuefield and name as description.. i want to display the description that's why i'm rendering it..
    But the problem is when i want just to update the bus timing without touching the Bus name cell it fails.. Please help me

    Code:
    {
                text: 'Bus Name',
                xtype: 'gridcolumn',
                dataIndex: 'bus_name',
                flex: 1,
                renderer: function(value){
                console.log()
                if(Ext.isNumber(value)){
                    var store = this.getEditor().getStore();
                    return store.findRecord('busid',value).get('busdescp');
                }
                return value;
                },
                editor: {
                    xtype: 'combobox',
                    allowBlank: true,
                    displayField: "busid",
                    valueField: "busdescp",
                    queryMode: 'local',
                    mapperId: 'getBusdetails',
                    lastQuery: '',
                    editable:true,
                    //forceSelection: true,   
                    preventMark: true,
                    readOnly: false,                         
                    listeners: {
                        expand: function () {
                            var call = this.up('busGrid[itemId=bustimegrid]').getSelectionModel().selection.record.data.networkname.trim();
                            this.store.clearFilter();
                            //this.store.filter('call',call);
                            this.store.filter({
                                property: 'call',
                                value: call,
                                exactMatch: true
                            })
                        }
                    }
                }
    }sugama.png

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Does it fail quietly or is there an error message in console?

  3. #3
    Sencha User
    Join Date
    Jul 2016
    Posts
    19
    Answers
    3

    Default

    yes it fails with a error message that .. Cannot bind integer value of that bus name.. that means when i'm just updating the bus timings, and give a update of grid, it takes all the values of that row, and in that bus name column instead of taking the id of the bus it's taking the name and updating the integer only column in the databse, I want the id to be passed to the database when the :girdupdates run..

  4. #4
    Sencha User
    Join Date
    Jul 2016
    Posts
    19
    Answers
    3

    Default

    Anyone der.. to provide a solution.

Similar Threads

  1. [INFOREQ] Ext.util.Geolocation failing to update timestamp?
    By FBNitro in forum Ext JS 6.x Bugs
    Replies: 3
    Last Post: 9 Aug 2016, 10:57 PM
  2. Trying (failing) to create a view extending grid.Panel
    By munder in forum Sencha Touch 2.x: Q&A
    Replies: 3
    Last Post: 19 Sep 2012, 6:17 AM
  3. [FIXED] Error: Grid Plugins Row Expander Example failing.
    By ValterBorges in forum Ext:Bugs
    Replies: 2
    Last Post: 5 Aug 2011, 3:52 PM
  4. Window failing to update frame in IE 7
    By SilverDev in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 9 May 2008, 5:18 AM
  5. tree and grid auto refreshing failing
    By 0xception in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 10 Jul 2007, 10:15 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •