Is it possible to get hold of the StyleSetName for a control from JavaScript?
I am changing icons from clientside code and need to be able to take account of the theme (i.e. StyleSetName) when specifying the path to the icons.
Thanks.
No, that's fine. I had done that anyway, but just wanted to check that there wasn't a better way. Thanks.
Hello AlistairWood,
I am just following and see if you have any questions.
At the moment, the StyleSetName property is not accessible on the clientside. It, may however, be possible to reference it indirectly as it is accessible on the serverside. On PageLoad event, we may access the StyleSetName and store it temporarily within a hidden field. And on DataFiltered, PageIndexChanged clientside events, you may access the hidden field.
If you have any questions, please let me know as well.
There are two places:
(1) WebHierarchicalDataGrid, in the clientside DataFiltered event, I want to change the icon on the FilterButton.
(2) WebHierarchicalDataGrid custom pager, in the clientside PageIndexChanged event, I want to substitute different icons for "First page", "Last page" etc, depending on whether they are appropriate or not.
The path to the icons that I want to use will depend on the theme that has been configured, hence I'd like to access the StyleSetName.
Hello Alistair,
Thank you for contacting Infragistics!
Please let me know of which control and at which event you would like to change the icon. If you have any questions, please let me know as well.