Our blazing fast Grid component built with pure JavaScript


Post by rayudu.pasumarthy »

Hi,

Is it possible to change the names of the buttons of the AssignmentPicker?

change_resource_option.png
change_resource_option.png (15.96 KiB) Viewed 401 times

We would like to change 'Save' to 'Ok' in this popup.

Any thoughts / suggestions?

Thanks,
Rayudu.


Post by mats »

Please try:

 columns                 : [
        { type : 'name', field : 'name', text : 'Name', width : 250 },
        {
            type        : 'resourceassignment',
            width       : 250,
            showAvatars : true,
            editor      : {
                type   : AssignmentField.type,
                picker : {
                    height   : 350,
                    width    : 450,
                    features : {
                        filterBar  : true,
                        group      : 'resource.city',
                        headerMenu : false,
                        cellMenu   : false
                    },
                    // The extra columns are concatenated onto the base column set.
                    columns : [{
                        text       : 'Calendar',
                        // Read a nested property (name) from the resource calendar
                        field      : 'resource.calendar.name',
                        filterable : false,
                        editor     : false,
                        width      : 85
                    }],

                bbar : {
                    items : {
                        saveBtn : {
                            text : 'Ok'
                        },
                        cancelBtn : {
                            text : 'Cancel'
                        }
                    }
                }
            }
        }
    }
],

Post by mats »

Please try:

 columns                 : [
        { type : 'name', field : 'name', text : 'Name', width : 250 },
        {
            type        : 'resourceassignment',
            width       : 250,
            showAvatars : true,
            editor      : {
                type   : 'assignmentfield',
                picker : {
                    height   : 350,
                    width    : 450,
                    features : {
                        filterBar  : true,
                        group      : 'resource.city',
                        headerMenu : false,
                        cellMenu   : false
                    },
                    // The extra columns are concatenated onto the base column set.
                    columns : [{
                        text       : 'Calendar',
                        // Read a nested property (name) from the resource calendar
                        field      : 'resource.calendar.name',
                        filterable : false,
                        editor     : false,
                        width      : 85
                    }],

                bbar : {
                    items : {
                        saveBtn : {
                            text : 'Ok'
                        },
                        cancelBtn : {
                            text : 'Cancel'
                        }
                    }
                }
            }
        }
    }
],

Post by rayudu.pasumarthy »

Thanks Mat, it's working great!

Thanks,
Rayudu.


Post Reply