Hi,
When I upload a file to a cell with the option “$ col [” edittype “] =” file “;”, then I want to change the file (edit) and a button with the text “Reset” is shown.
How can I change the text of that button?
please, thank you very much in advance..
Mhiker
Currently it is controlled from lib\js\jqgrid\js\i18n\grid.locale-en.js
jQuery.jgrid.search.Reset
However if you change it, it will also change in search dialog.
If you want some different text, you can search ‘jQuery.jgrid.search.Reset’ and replace it with your text.
If you want some different text, you can search in lib/inc/jqgrid_dist.php file ‘jQuery.jgrid.search.Reset’ and replace it with your text.
Hi Abu,
Finally, and as indicated in your message, i could change the button text.
But this is done by editing the file "jqgrid_dist.php" and in the function "function link_upload (el, field)":
Change the line "jQuery (el) .parent (). append (" <input type='button' value='Reset' onclick..." by "value='Cambiar Adjunto' onclick..."
Thanks a lot Abu !!
There are 2 places to be replaced. Make sure you replace all occurrences of ‘jQuery.jgrid.search.Reset’.