Skip to main content

I have created a table in my skuid page. now on click of any field in the row of that table , i want to do some operation through javascript.

So is it possible to write the javascript on click of that field? Af of now i have created one row action and performing the operation but it is not user friendly.

Can anyone please help me on this urgently? Thanks in advance!

Have you thought about using a queue instead?

If you want to do it with a table you can use the following snippet:


var $ = skuid.$;<br>$('.actionOnRowTable tr').on('click', 'td', function(event) {<br> if($(event.currentTarget).find('.fa-eye').length &lt;= 0) {<br> $(event.currentTarget.parentElement).find('.fa-eye').click();<br> }<br>});


Replace “actionOnRowTable” with the class of your table and “fa-eye” with the class of your row action icon.

Execute this snippet on page load and on model requery.


You may be able to replace the standard fields with template fields. In the templates, you may be able to use a combination of merge syntax to bring in the fields you want and JavaScript to execute the in-click actions.


Hi Raymond ,

Is it possible to get the id of row or the row record which was clicked (anyone from table), without using item.row ?

because using model.getfirstrow() gives me only first row id even though i clicked on 2nd row.


Thanks in Advance!


Reply