Results 1 to 2 of 2

Thread: RadioColumn

  1. #1
    Sencha User
    Join Date
    May 2012
    Location
    Los Angeles
    Posts
    6

    Default RadioColumn

    Hi ,

    I wanted to use the radioColumn for the entire rows instead of just a single (name,radio) pair.
    I have used the following code snippet for the same : -

    Code:
    //Following radioColumn definition uses the custom radioColumn
            var selectColumn = new Hypo.grid.RadioColumn({            header: '',
                id: 'sColumn',
                dataIndex: 'selected',
                sortable: false,
                align: 'center',
                width: 25
            });
                
    //Following declarations are for initializing the dataStore
            var memoryProxy = new Ext.data.MemoryProxy(Hypo.reports.advisors.data); 
    
    
            var nameRecord = Ext.data.Record.create([ 
                {name: 'userId', mapping: 'userId'},
                {name: 'fname', mapping: 'firstName', sortType: Ext.data.SortTypes.asUCString},
                {name: 'lname', mapping: 'lastName', sortType: Ext.data.SortTypes.asUCString},
                {name: 'login', mapping: 'login', sortType: Ext.data.SortTypes.asUCString},
                {name: 'email', mapping: 'email', sortType: Ext.data.SortTypes.asUCString},
            ]);
    
    
            var arrayReader = new Ext.data.ArrayReader({}, nameRecord); 
    
    
            var dataStore = new Ext.data.Store({ 
                reader: arrayReader,
                proxy : memoryProxy,
                data : Hypo.reports.advisors.data
            });
    
    //Following is the declaration of the grid which displays the data with 5 columns showing data and last one
    //for radioColumn
            var grid = new Hypo.grid.GridPanel({
                store: dataStore,
                id: 'grid',
                columns: [
                {
                    header: "UserId",
                    width: 50,
                    sortable: true,
                    dataIndex: 'userId',
                    id: 'userId'
                },{
                    header: "First Name",
                    width: 200,
                    sortable: true,
                    dataIndex: 'fname',
                    id: 'fname'
                },{
                    header: "Last Name",
                    width: 200,
                    sortable: true,
                    dataIndex: 'lname',
                    id: 'lname'
                },{
                    header: "Login",
                    width: 200,
                    sortable: true,
                    dataIndex: 'login'
                },
                {
                    header: "Email",
                    width: 200,
                    sortable: true,
                    dataIndex: 'email'
                },
                
                selectColumn
                ],
                frame: true,
                autoHeight: true,
                loadMask: true,
                plugins: selectColumn
            });
    Can anyone suggest how can I retrieve the value of the row which is being selected by the radioColumn, in this case ?

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

    Default

    Is the a UX? Is there a mousedown or change event you can track?

    Scott.

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
  •