thalla thalla - 26 days ago 11
jQuery Question

jqGrid : make delete dialog non resizable

How to make jqgrid delete dialog non resizable and also i want to change cancel button icon.

enter image description here

Answer

You can use delete option resize and cancelicon. Be carefully that cancelicon (in the same way like delicon option) has array format with 3 elements (see the old documentation). In case of usage free jqGrid you can specify delete option inside of formDeleting option of jqGrid. For example

formDeleting: {
    delicon: [true, "left", "ui-icon-trash"],
    cancelicon: [true, "left", "ui-icon-closethick"],
    resize: false
}

changes the default Delete dialog (in case of usage jQuery UI icons) from default

enter image description here

to

enter image description here

You should of cause use the icon classes from the iconSet, which you use in the grid. For example, if you included Font Awesome CSS and the option iconSet: "fontAwesome", then default Delete dialog looks like

enter image description here

by usage

formDeleting: {
    delicon: [true, "left", "fa-scissors"],
    cancelicon: [true, "left", "fa-times"],
    resize: false
}

you can change it to the following

enter image description here