Folks,
I recently migrated my project to version 11.2 .net 4.0. and i have UltraWebListbar control in my old project.
Which, should update after using version utility but its still showing me following error. and also i cannot find ultrawebslistbar control in control toolkit?
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: BC30652: Reference required to assembly 'Infragistics4.WebUI.Shared.v10.3, Version=10.3.20103.1013, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' containing the type 'Infragistics.WebUI.Shared.Style'. Add one to your project.Source Error:
Line 121: <asp:UpdatePanel ID="UpdatePanel8" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false"> Line 122: <ContentTemplate> Line 123: <iglbar:UltraWebListbar ID="UltraWebListbar1" runat="server" BarWidth="100%" BorderWidth="" Line 124: CssClass="igwlbExplorerBarMainBlue2k7" GroupSpacing="0px" ImageDirectory="eImages/" Line 125: ViewType="ExplorerBar" Height="100%" Width="197px">
Thank you for detailed reply..
Wondering, If you can attach a working project?
Hello Infra_Jag,
You can add items in the code behind like this.
Dim newItem1 As ExplorerBarItem = New ExplorerBarItem("Item 2", "Item2")
CType(WebExplorerBar1.Groups.FromValue("Group2"), ExplorerBarGroup).Items.Add(newItem1)
(this requires "Imports Infragistics.Web.UI.NavigationControls")
To reference a group's items from the code behind:
CType(WebExplorerBar1.Groups.FromValue("GroupValue"), ExplorerBarGroup).Items(Index)
"Index" is the number from 0 to X-1 when you have X items in that group.
Similarly, you can also use Items.FromValue("ItemValue"), as you do with the Groups.
Dim group1 As ExplorerBarGroup = CType(WebExplorerBar1.Groups.FromValue("Group2"), ExplorerBarGroup)
CType(group1.Items.FromValue("Item2"), ExplorerBarItem).Text = "Item 222"
I tried to add a new ExplorerBarItem to the Template and also to the placeholder, but it requires a System.Web.UI.Control. If possible, directly adding Items to a Group is simpler. I would recommend giving your ExplorerBarGroup a Value so you can easily reference it. You can then add to its Items collection directly.
Elizabeth AlbertLocalization Engineer
Elizabeth,
Thank you for your quick response.
Elizabeth Albert"]If you need to use the UpdatePanel, I can forward your post to Developer Support. They will be able to assist you in getting your project to work.
Dont think at this point i will go down that path, due to project commitments. (In a process of migrating legacy based application to infragistics based).
Yes, you are right about ajax UpdatePanel, if its easy fix i wiould like to use it.
Question : How to get "groups >> item(i am using template place holder)" level from codebehind. I am poppulating placeholder from codebehind with a list of tickets...
<%--<asp:UpdatePanel ID="UpdatePanel8" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false"> <ContentTemplate>--%> <ig:WebExplorerBar ID="WebExplorerBar1" runat="server" Width="197px"> <Groups> <ig:ExplorerBarGroup Text="New Tickets" TemplateId="NewTicket"> <Template> <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder> </Template> </ig:ExplorerBarGroup>
System.Windows.Forms is the namespace for the MessageBox. You don't need to import this namespace if you don't use the MessageBox.
I tried to put the WebExplorerBar code I already had inside an Ajax UpdatePanel, but it did not recognize the Infragistics controls (or the Button control) in there.
If you remove the UpdatePanel, does it work? I have attached my project that does not use the UpdatePanel. (I had to remove the ig_res folder so it would upload. If you view it in design mode, it should prompt you to add this folder.)
If you need to use the UpdatePanel, I can forward your post to Developer Support. They will be able to assist you in getting your project to work.
Thanks for the update.
I am using this control in web application. so, why i have to import system.windows.forms?
when i tried the code above i am getting following error. my code is in the Ajax UpdatePanel.
findGroup1 'findGroup1' is not declared. It may be inaccessible due to its protection level.