how to use "OnClick" Attribute of JqGridColumnFormatter

Aug 29, 2016 at 10:08 AM
hay, can anyone give an example or reference of how to use the "OnClick" property of the "JqGridColumnFormatter".
i have the following property definition on my string Name property
    [JqGridColumnFormatter("$.NameFormatter", OnClick = "$.NameClick")]
    public string Name { get; set; }
i expect that on clicking the Name on the grid will execute the following javascript method $.NameClick(), but nothing is happening.
       $.NameClick = function (cellvalue, options, rowObject) {
        console.debug(cellvalue);
         };
Coordinator
Aug 31, 2016 at 10:11 PM
Please be aware that this whole project has been moved to GitHub (https://github.com/tpeczek/Lib.Web.Mvc), I have noticed this thread by accident only because of an email notification.

To answer your question, the OnClick property is affective only when the formatter is JqGridColumnPredefinedFormatters.JQueryUIButton.