I'm using a RadDoc which contains titlebar commands that trigger clientside javascript. This javascript uses jquery to increase and decrease the font sizes of the objects the RadDoc contains. The following sample increases the font size of the "a" and "span" elements.
function IncreaseFontSize(dock, args) {
var _contentId = new String(dock.get_handle().id);
_contentId = _contentId.substr(0, _contentId.length - 1) + "C";
var currFontSize = $("#" + _contentId).css('fontSize');
var _currentFontSize = parseFloat(currFontSize, 10);
_currentFontSize *= 1.15;
$("#" + _contentId).css('fontSize', _currentFontSize + "px");
$("#" + _contentId + " a").css('fontSize', _currentFontSize + "px");
$("#" + _contentId + " span").css('fontSize', _currentFontSize + "px");
etc...
}
This works great, however when I trigger an ajax call that updates the RadDoc, the objects reset back to their original font size. Even clicking on a RadGrid column header trigger the font reset. Any ideas how I can retain all font size changes? Is there an event I could tap into once the ajax call completes? If so, maybe I could use this event to change the fonts to the desired size. Thanks in advance for your help.
function IncreaseFontSize(dock, args) {
var _contentId = new String(dock.get_handle().id);
_contentId = _contentId.substr(0, _contentId.length - 1) + "C";
var currFontSize = $("#" + _contentId).css('fontSize');
var _currentFontSize = parseFloat(currFontSize, 10);
_currentFontSize *= 1.15;
$("#" + _contentId).css('fontSize', _currentFontSize + "px");
$("#" + _contentId + " a").css('fontSize', _currentFontSize + "px");
$("#" + _contentId + " span").css('fontSize', _currentFontSize + "px");
etc...
}
This works great, however when I trigger an ajax call that updates the RadDoc, the objects reset back to their original font size. Even clicking on a RadGrid column header trigger the font reset. Any ideas how I can retain all font size changes? Is there an event I could tap into once the ajax call completes? If so, maybe I could use this event to change the fonts to the desired size. Thanks in advance for your help.