This is a migrated thread and some comments may be shown as answers.

Total height calculation after child item is expanded or collapsed

0 Answers 27 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
roger
Top achievements
Rank 1
roger asked on 29 May 2013, 06:35 PM
hi Telerik,

I try to recalculate the total height of the panel bar after its child item is expanded or collapsed and i did try the panel bar events like OnClientItemExpand/OnClientItemCollapse, OnClientClicked but in none of them i can get the real height of the panel bar since the panel bar always keeps the current height (not the actual height after child item expanded or collapsed)


function OnClientItemExpand(sender, args)
{
    var panelHeight = sender.get_element().offsetHeight; //always current height not after child item expanded
}

please help -- very appreciate!

thanks,

roger

No answers yet. Maybe you can help?

Tags
PanelBar
Asked by
roger
Top achievements
Rank 1
Share this question
or