here Country Label should be a hyperlink to another window. I do not know whether it is possible or not. If it is possible, would you please share the demo here.
Asked
Active
Viewed 80 times
1
1 Answers
2
The feature exists in old versions of jqGrid too. You need just add formoptions.label
in the definition of the corresponding column in the colModel
. Try the following example
formoptions: {
label: "<a target='_blank' " +
"href='https://en.wikipedia.org/wiki/List_of_sovereign_states'>Country</a>"
}
See the demo: http://jsfiddle.net/OlegKi/qzxwfquq/1/

Oleg
- 220,925
- 34
- 403
- 798
-
Thank you Oleg. Is it possible to return a value from opened page and assign to this form field? – Guru N Oct 26 '15 at 03:12
-
@GuruN: No. The second page works absolutely separately. You should consider to use Ajax call to get some data an click on "" and then display some dialog **on the same page** over the Edit form. Look at [the old answer](http://stackoverflow.com/a/19404013/315935) for example. Select2 control can make Ajax request to the server to show all countries available. If the user type substring then the dropdown reduce the list. After pressing Enter the chosen country will be inserted in the `` control of the Edit form. – Oleg Oct 26 '15 at 06:24
-
@Oleg: I am trying to use this method but it is not working. In my form label I have label:"Affected Dash Number(s):" and on the main form I have $('#displayDashNumbers').on("click", function(){alert("here"}); but it never fires. – Steve Dyke Oct 13 '22 at 16:41