I think I made maybe a mistake in my explanation.My problem doesnt concern the standard buttons but customized buttons.
i may have a lot of buttons. its based on the languages to be translated on the line.
so, on each line I could have n buttons to translate for the targeted languages.
the targeted language is dynamic.
so, i have the solution to prepare all button, and use the visible attribute to display it… but every time we had a new language… I have to modify the cgridview to add the language as potential button…
or have dynamic buttons…
example :
-the business maybe translated in en, fr, tl, ko ( so 4 potential languages)
on very business promo, depending of my business ( the cgrid is on the businesspromo)
I add a button to translate in the languages when the translation is not already done…
but for an other business, the targeted languages may be de, ko, ja, it
and so i wanted tto make a function, to create the buttons based on the 2 parameters, and so… be able to transmit some information to template… or even to generate directly an array for the cbutton.
Any way… thank for your help, it maybe the only solution… prepare all buttons , and use just ‘visible’, in waiting to find a better solution.