Hi,
just wanted to expand my panelbar client side and found the code in the online documentation. But it didn't work, but i i found another working way.
- not working:
http://www.telerik.com/help/aspnet-ajax/panel_clientsidebasics.html
function expandItem(text)
{
var panelBar = $find("<%= RadPanelBar1.ClientID %>");
var item = panelBar.findItemByText(text);
if (item)
{
item.expand();
}
else
{
alert("Item with text not found.");
}
}
- working:
function ExpandPanelBarItem()
{
var panelBar = $find("<%= RadPanelBar1.ClientID %>");
panelBar.get_allItems()[0].expand();
}
(Care -> in this example this is enough because its just 1 panelbaritem in the panelbar which i want to be opened.)
- Mario
just wanted to expand my panelbar client side and found the code in the online documentation. But it didn't work, but i i found another working way.
- not working:
http://www.telerik.com/help/aspnet-ajax/panel_clientsidebasics.html
function expandItem(text)
{
var panelBar = $find("<%= RadPanelBar1.ClientID %>");
var item = panelBar.findItemByText(text);
if (item)
{
item.expand();
}
else
{
alert("Item with text not found.");
}
}
- working:
function ExpandPanelBarItem()
{
var panelBar = $find("<%= RadPanelBar1.ClientID %>");
panelBar.get_allItems()[0].expand();
}
(Care -> in this example this is enough because its just 1 panelbaritem in the panelbar which i want to be opened.)
- Mario