1. #1
    Ext User
    Join Date
    Apr 2007
    Posts
    43
    Vote Rating
    0
    aclavijo is on a distinguished road

      0  

    Default form like inbox email

    form like inbox email


    How can I create a form like this
    Attached Images

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    461
    Vote Rating
    1
    JorisA is on a distinguished road

      0  

    Default


    Except for the expanding groups (I think this is on the feature request list) you can achieve this with a grid.

    You could use this example for your general layout.
    http://extjs.com/deploy/ext/examples/grid/paging.html

    You can use the custom render functions to add checkboxes etc

    PHP Code:
    function renderCheckbox(valuecellrecord) {
        
    helper Ext.DomHelper.append(cell, {tag'input'type'checkbox'}, true);
        
    box = new Ext.form.Checkbox({...});
        
    box.applyTo(helper);
        
    box.setValue(record.data.someVal);
        
    box.on('check', function() { record.data.someVal this.getValue() }

        return 
    "";


  3. #3
    Ext User
    Join Date
    Apr 2007
    Posts
    43
    Vote Rating
    0
    aclavijo is on a distinguished road

      0  

    Wink


    thanks a lot by the your code(I

  4. #4
    Ext User
    Join Date
    Mar 2007
    Posts
    16
    Vote Rating
    0
    cmd.ares is on a distinguished road

      0  

    Talking


    Quote Originally Posted by JorisA View Post
    Except for the expanding groups (I think this is on the feature request list) you can achieve this with a grid.

    You could use this example for your general layout.
    http://extjs.com/deploy/ext/examples/grid/paging.html

    You can use the custom render functions to add checkboxes etc

    PHP Code:
    function renderCheckbox(valuecellrecord) {
        
    helper Ext.DomHelper.append(cell, {tag'input'type'checkbox'}, true);
        
    box = new Ext.form.Checkbox({...});
        
    box.applyTo(helper);
        
    box.setValue(record.data.someVal);
        
    box.on('check', function() { record.data.someVal this.getValue() }

        return 
    "";

    and how to call the renderCheckbox?

  5. #5
    Sencha User
    Join Date
    Mar 2007
    Posts
    461
    Vote Rating
    1
    JorisA is on a distinguished road

      0  

    Default


    This is just some scratch, not the exact code. but it should help you a bit, you should pass the renderCheckbox function to your columnmodel (see the example link):

    PHP Code:
    var cm = new Ext.grid.ColumnModel([{
           
    header"Check Collumn",
           
    dataIndex'read',
           
    width420,
           
    rendererrenderCheckbox,
        }

    ... 

  6. #6
    Ext User
    Join Date
    Apr 2007
    Posts
    43
    Vote Rating
    0
    aclavijo is on a distinguished road

      0  

    Wink



    what code I must post insede here


    box = new Ext.form.Checkbox({...});

  7. #7

  8. #8
    Ext User
    Join Date
    Apr 2007
    Posts
    43
    Vote Rating
    0
    aclavijo is on a distinguished road

      0  

    Wink


    HI. I saw the page you send me, but I

  9. #9
    Sencha User
    Join Date
    Mar 2007
    Posts
    461
    Vote Rating
    1
    JorisA is on a distinguished road

      0  

    Default


    Check some examples on how ext works.
    As you can see the manual states "Checkbox(Object config)" This mean you can pass an object with the configuration variables as listed at the bottom of that page. for example Checkbox({fieldClass: 'my-custom-css-class'));
    In this case I dont think you need any options since the defaults will do just fine.

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar