I use CHtml::ajaxLink() in CGridView to make show/hide button. And for this purpose I need to know an ID of my <a></a> element. CHtml generates IDs like “yt0”. But how can I get this id? I need it inside ajaxOptions array to change element’s class after ajax request. I know that I can put my own ID in htmlOptions array, but me is very interesting to get the default one.
And the second question. How can I access the grid.settings, for example I want to know the class name for "loading" marker?