I am using Kendo tabstrip and load tree view (inside a table).
I am setting the height of the table that holds the tree based on window size, everything works fine when the window is resized but for some reason I am not able to set the height of the table during initial load of my application. I am calling the same function that is being called when window is resized on ready,
$(document).ready(function()
setTimeout(function() { update_size(); }, 250);
.....
But even then the table is not getting sized properly (especially in some screen resolution - ex: 1280*1024) during initial load but when I resize the screen, the table is getting sized properly...
var update_size = function() {
var height = $(this).height() - ($("#vertical").height()+30);
$('#dictionaryTree').height(height-120);
$('#groupTree').height(height-120);
}
$(window).resize(function() {
clearTimeout(window.refresh_size);
window.refresh_size = setTimeout(function() { update_size(); }, 250);
});