Results 1 to 2 of 2

Thread: binding.js with 1.0

  1. #1
    Ext JS Premium Member rizakoyt's Avatar
    Join Date
    Mar 2007
    Vote Rating

    Default binding.js with 1.0

    Are there plans to put the binding.js into the 1.0 version? Or am I overlooking a new way of binding the record to a form, and updateing the grid when the form is updated?

  2. #2
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Vote Rating


    Binding grid data to a form:

    Listen to the 'rowselect' event of your selection model:
    sm.on('rowselect', this.bindData, this, true);

    My bindData function looks like so:
    bindData : function(sm, rowIdx){
    /* retrieve the current row from the data store */
    var currRow = ds.getAt(rowIdx);
    /* update form elements */'book-title-form').dom.value = currRow.get('TITLE');'book-isbn-form').dom.value = currRow.get('ISBN');'book-keywords-form').dom.value = currRow.get('KEYWORDS');'book-description-form').dom.value = currRow.get('DESCRIPTION');

    As far as the data marshalling is concerned and sending updates to a server-side component this is something that Jack is currently working on and something that I know I am looking forward to a lot.

Similar Threads

  1. Exploring Client-Side Cross Browser XML Data-Binding
    By genius551v in forum Ext 1.x: Help & Discussion
    Replies: 10
    Last Post: 5 Jan 2007, 8:41 AM
  2. strange problem in data binding after upgrade
    By qiuyl in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 20 Dec 2006, 6:00 PM

Posting Permissions

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