Search Type: Posts; User: vladka

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    1,136
    found getterName parameter in source code belongto.js

    getterName : 'getCategory'.

    thats i needed.
  2. Replies
    3
    Views
    1,136
    if i change


    associations: [ { type: 'belongsTo', model: 'Panda.model.Category' }, ]
    to


    belongsTo: { model: 'Pandora.model.Category', foreignKey: 'id', name:...
  3. Replies
    3
    Views
    1,136
    Hello everybody.

    BelongsTo don't works with model like: Appname.model.ModelName.


    Ext.define('Panda.model.Product', {
    extend: 'Ext.data.Model',
    fields: [
    {...
  4. tell me please what do you mean by saying:

    > and if it equals zero then append an element to the list


    onDatachanged = function( store, eOpts ) {
    // do a getCount() onto the store
    ...
  5. Question is how to add element to list, because just:

    onload = function( store, records , success, operation, eOpts ) {
    if(records.length < 1) {
    ...
  6. Hello.

    User write some text to combobox, if there no records in drop down list, i want to append "Add element" link.

    Found that on load event fires when combobox loads data from server.
    So...
  7. Replies
    4
    Views
    1,079
    i'm found a solution!!

    you're have to make a timeout.

    so i you make code like this:



    var showId = function(store) {
    console.log('timeout')
  8. Replies
    4
    Views
    1,079
    Hello everyone.

    got an create function:


    onCreate: function(e, form) {
    values = form.getValues();
    this.getManifactorsStore().insert(0, values)
    ...
  9. Replies
    6
    Views
    2,667
    Yap!

    and it's work perfectly without listeners!

    thanks !
  10. Replies
    6
    Views
    2,667
    but i have other question,

    is it possible to override setValue function like this ?



    Ext.form.Combox.override({
    setValue: function(val) {
    ...
  11. Replies
    6
    Views
    2,667
    get it.
    i should make:

    directioncombox.setValue({'value': 1, 'name': 'Аренду'})


    thank you, i almost lost belive that setValue works as i need
  12. Replies
    6
    Views
    2,667
    nope :(

    http://pastebin.com/BTkB7u0B

    just have error message - This fields is requered.

    i think problem somewhere in listeners.
  13. Replies
    6
    Views
    2,667
    Hello everyone.

    i want to edit object, and set a current value for combox.
    Use this code:


    var metrocombox = Ext.create('Ext.form.ComboBox', {
    ...
Results 1 to 13 of 13