Results 1 to 3 of 3

Thread: how to validate values in Ext.grid.property.Grid + extjs 4

  1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    22
    Answers
    2

    Default how to validate values in Ext.grid.property.Grid + extjs 4

    hi,
    how do i validate my property values before submitting in Ext.grid.property.Grid? below is my grid and store.


    propsGrid = Ext.create('Ext.grid.property.Grid', {
    id: 'propsGrid',
    width: 300,
    source: source
    });


    var propertyStore = Ext.create('Ext.data.Store', {
    autoLoad: true, //autoload the data
    proxy: {
    type: 'ajax',
    url: 'ScriptParameter.aspx'
    },
    fields: ['key', 'value'],
    listeners: {
    load: {
    fn: function (store, records, options) {
    // get the property grid component
    var propGrid = Ext.getCmp('propsGrid');
    // make sure the property grid exists
    if (propGrid) {
    store.each(function (record) {
    source[record.get('key')] = record.get('value');
    });
    propGrid.setSource(source);

    }
    }
    }
    }
    });


    please suggest.

    Thanks

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,410
    Answers
    716

    Default

    Fires after editing, but before the value is set in the record. Return false from event handler to cancel the change.
    Have you reviewed the validateedit event?

    Scott.

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    22
    Answers
    2

    Default

    I want to validate the empty text on value field in Ext.grid.property.Grid on submit click ?

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
  •