I need to use on of the group buttons as a "button"
TIA
HI,
I am attaching a sample webpage which prevents a weblistbar group from expanding.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="Infragistics2.WebUI.UltraWebListbar.v9.2, Version=9.2.20092.1003, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" Namespace="Infragistics.WebUI.UltraWebListbar" TagPrefix="iglbar" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title>
<script type="text/javascript" id="igClientScript"><!--
function UltraWebListbar1_BeforeGroupExpanded(oListbar, oGroup, oEvent){ //Add code to handle your event here. // debugger; if (oGroup.txt == "Group4") { oEvent.cancel = true; }
}// --></script></head><body> <form id="form1" runat="server"> <div> <iglbar:UltraWebListbar ID="UltraWebListbar1" runat="server" BorderWidth="" Height="200px" ViewType="ExplorerBar" Width="124px"> <Groups> <iglbar:Group Text="Group" TextAlign="Left"> <Labels Expanded="" Collapsed="" Selected=""> </Labels> <Items> <iglbar:Item Text="Item"> <Labels Selected="" /> </iglbar:Item> </Items> </iglbar:Group> <iglbar:Group Expanded="False" Text="Group" TextAlign="Left"> <Labels Collapsed="" Expanded="" Selected="" /> <Items> <iglbar:Item Text="Item"> <Labels Selected="" /> </iglbar:Item> <iglbar:Item Text="Item"> <Labels Selected="" /> </iglbar:Item> </Items> </iglbar:Group> <iglbar:Group Text="Group" TextAlign="Left"> <Labels Collapsed="" Expanded="" Selected="" /> <Items> <iglbar:Item Text="Item"> <Labels Selected="" /> </iglbar:Item> <iglbar:Item Text="Item"> <Labels Selected="" /> </iglbar:Item> <iglbar:Item Text="Item"> <Labels Selected="" /> </iglbar:Item> </Items> </iglbar:Group> <iglbar:Group Text="Group4" TextAlign="Left"> <Labels Collapsed="" Expanded="" Selected="" /> <Items> <iglbar:Item Text="Item"> <Labels Selected="" /> </iglbar:Item> <iglbar:Item Text="Item"> <Labels Selected="" /> </iglbar:Item> <iglbar:Item Text="Item"> <Labels Selected="" /> </iglbar:Item> <iglbar:Item Text="Item"> <Labels Selected="" /> </iglbar:Item> </Items> </iglbar:Group> </Groups> <DefaultGroupStyle Height="100%"> </DefaultGroupStyle> <ClientSideEvents BeforeGroupExpanded="UltraWebListbar1_BeforeGroupExpanded" /> </iglbar:UltraWebListbar> </div> </form></body></html>
Sincerely,
Matt
Developer Support Engineer