Hi,
How to hide a group item using ultraweblistbar control. Guide me on this.
Thanks & Regards.
Hello,
On the Client do this:
<script id="igClientScript" type="text/javascript">
<!--
function WebImageButton2_Click(oButton, oEvent){
// hide item on client
if (myListBar.Groups[1].Items[1].Key == "HideMeOnClient"){
myListBar.Groups[1].Items[1].Element.style.display = 'none';
}
var myListBar;
function UltraWebListbar1_InitializeListbar(oListbar, oEvent){
myListBar = oListbar;
// -->
</script>
Since there is no SetVisible method for an Item we have to do it that way on the client.
On the Server do this:
protected void WebImageButton1_Click(object sender, Infragistics.WebUI.WebDataInput.ButtonEventArgs e)
{
this.UltraWebListbar1.Groups.FromKey("Group2").Items.FromKey("HideMeOnServer").DefaultStyle.Height = Unit.Pixel(0);
this.UltraWebListbar1.Groups.FromKey("Group2").Items.FromKey("HideMeOnServer").DefaultStyle.Width = Unit.Pixel(0);
Hi!
I try this code but not functionally. Nothing happened. Some help?
Thanks
Romulo
Element.style.display = 'none';
is HTML. We are not using the CSOM (Client Side Object Model) at this point in the code. We used the CSOM before this code to get to the HTML Element we were interested in.
I don't know how this code could works because it don't to be any "D" or "Display" property on an item.
Hello Romulo,
Let's work with Developer Support and get to the bottom of why it is not working, you can submit your incident here.