Page 2 of 6 FirstFirst 1234 ... LastLast
Results 11 to 20 of 51

Thread: Various data store and form extensions.

  1. #11

    Default

    disfusion: It should handle it just fine. Your parent id's just need to be sett to the correct parent, and it's done. I use it for trees that are very deep. If you could post the error you get and some sanitized data that can reproduce the error, I'll take a look at it.

  2. #12

    Default

    Thx for sharing

    I'll figure out how to use it, I was about to do the same CRUDGridPanels

  3. #13

    Default

    curzonj

    I have got it working, the problem was actually caused by 2 errors in the js files. FF seem didn't seem to throw any errors about them, but IE did.

    tree_combo.js - extra comma at the end of line 47 should not be there
    data_store_tree.js - extra comma at the end of line 147 should not be there

    Fixed those and it seems to be working now.

    Thanks

  4. #14

    Default

    curzonj, thank you for this public release, it is very interesting

  5. #15

    Default Fixes for IE

    disfusion, Thanks for those fixes. I have checked them into the source.

  6. #16
    Ext JS Premium Member
    Join Date
    Jun 2007
    Posts
    44

    Default

    any idea how i can set a value onload?
    nothing defined right now?

  7. #17

    Default

    Quote Originally Posted by Thomas_K View Post
    any idea how i can set a value onload?
    nothing defined right now?
    The only component I assume you could be refering to is the CrudEditor (which wraps a form). Crud Editor has two methods: beforeload and load. It also relays the form events of beforeaction, actionfailed, and actioncomplete. If you are using the TabbedCrudEditor, make sure the form the event fired on is the form you want.

    Here is an example of how to use the load action to set values in the form just before show() is called on the dialog:

    Code:
    editor.on('load', function(form, record) {
       form.findField('portion[notes]').setValue("This is the value of the form field");
    });
    Here is an example of using the 'beforeload' method to set some defaults:

    Code:
    editor.on('beforeload', function(form, record) {
      if(record.newRecord) {
        //Load defaults. You could use record.set() here if you wanted to.
        record.data.runtime_markup = 100
        record.data.setup_markup = 100
        record.data.programming_markup = 100
      }
    });
    Using the the load and beforeload actions you can customize the form a lot. To customize other parts of it's behavior, my situations have each been so unique that I haven't made events for anything else, I just override functions when I need heavy one-off customizations. I do such customizations frequently because I use the editor to represent the data models in my javascript and so they are pretty tightly bound. Let me know if you would like some more events added, because I assume others would benefit.

    Does that answer your question?

  8. #18
    Sencha User
    Join Date
    Mar 2007
    Location
    Spain
    Posts
    1,164

    Default

    Hi,

    Is posible view a live demo of treecombobox?


    Thanks in advance,

  9. #19
    Ext User
    Join Date
    Apr 2007
    Location
    Rochester, MI
    Posts
    461

    Default

    Nevermind... the issue was elsewhere...

    Still having a problem but I think it might be an issue with the JSON format used to create the store... still investigating.



    BTW Happy New Years!

  10. #20

    Join Date
    Aug 2007
    Location
    Romania
    Posts
    42

    Default

    1. How can I put a loadMask for the tree_combo?
    2. Is there a timout for the store response, because not always is waiting for the response from the server side script?
    Thanx in advance,

Page 2 of 6 FirstFirst 1234 ... LastLast

Posting Permissions

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