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">
Here's the code in VB.NET:
Imports Infragistics.Web.UI.NavigationControls Imports System.Windows.Forms
Dim findGroup1 As ExplorerBarGroup = CType(WebExplorerBar1.Groups.FromValue("Group1"), ExplorerBarGroup) MessageBox.Show("Found group " + findGroup1.Text)
ExplorerBarGroup is in the Infragistics.Web.UI.NavigationControls namespace. Try adding:
using Infragistics.Web.UI.NavigationControls;
to the top of the code-behind file. I also needed to add
using System.Windows.Forms;
for the message box.
If you're using VB, it would be imports statements instead, and the casting to ExplorerBarGroup would require using CType or DirectCast. I was using C#.
On ExploresBar i am getting the following error check the picture
Dont know what i am missing?
Hello Infra_Jag,
You can use the Value property as the key. Text is what is displayed to the user, and Value is used internally as the key. To get a Group based on the key, you can use FromValue.
<ig:WebExplorerBar ID="WebExplorerBar1" runat="server" Width="250px" GroupExpandBehavior="SingleExpanded"> <Groups> <ig:ExplorerBarGroup Text="Group 1" Value="Group1"> <Items> <ig:ExplorerBarItem Text="Item 1" Value="Item1" /> </Items> </ig:ExplorerBarGroup> <ig:ExplorerBarGroup Text="Group 2" Value="Group2" /> <ig:ExplorerBarGroup Text="Group 3" Value="Group3" /> </Groups> </ig:WebExplorerBar>
ExplorerBarGroup findGroup1 = (ExplorerBarGroup)WebExplorerBar1.Groups.FromValue("Group1"); MessageBox.Show("Found group " + findGroup1.Text);
Let me know if you have further questions.
Elizabeth AlbertLocalization Engineer
I noticed in webexplorerbar there is not key attribute.
i was using
UltraWebListbar1.Groups.FromKey(
"ActiveTicket").Text
earlier.
what i am suppose to use now ?
any ideas?