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..
Currently it is controlled from lib\js\jqgrid\js\i18n\grid.locale-en.js
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.
Abu Ghufran - Dev Team
Grid 4 PHP Framework
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.
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 !!
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?