adding the 'onclick' event to coloumn headers - is it possible?

Nov 13, 2015 at 2:51 PM
When a column title is clicked I would like to execute a JavaScript function. Is it possible? for example:

columns.Add(x => x.FirstName).Sortable(false).Filterable(false).Titled("First Name"); onclick="doSomeFunction(someParms)"
Jan 6, 2016 at 9:35 PM
I'm not sure how/if you can do this for the Column Headers, but I have an onclick() JavaScript call made when a User Clicks a Glyphicon/Hyperlink I have in a Column:
columns.Add().Encoded(false).Sanitized(false).RenderValueAs(o => @<a href="#" class="btn btn-default btn-xs noDecoration classForBtn" onclick="javascriptMethodCall(@o.MODEL_ID)"><span class="glyphicon glyphicon-ok"></span></a>).SetWidth(15);
Don't know if it will help any with what you are trying, but thought I'd post.