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">
Hello Infra_Jag,
To set a hyperlink, you can use the NavigateUrl property on the ExplorerBarItem.
In HTML:
<ig:ExplorerBarItem Text="Google" Value="Google" NavigateUrl="http://www.google.com" Target="_blank" />
<ig:ExplorerBarItem Text="Infragistics" Value="Infragistics" NavigateUrl="http://ko.infragistics.com" Target="_blank" />
For the VB code on setting these properties, please reference this topic.
The Target property specifies where the link should open. I set it to "_blank" which will use a new tab in the browser.
Alternatively, you can create a dialog window and handle the ItemClick event to populate and show the dialog window.
I am asking Developer Support to follow up with you so we can help you implement your scenario.
Elizabeth AlbertLocalization Engineer
Obviously i selected post before as answer.
But, wondering how can i add a attribute to item. As eaarlier i was using linkbutton. check my code below you will get clearer picture.
For Each rw As DataRow In dtSet.Tables("dtset").Rows
Dim lbAt As New LinkButton
lbAt.Attributes.Add(
"onmouseover", "Tip('" & myDiaryText & "', SHADOW, true, WIDTH, 600, BGCOLOR, '#FFE347', DELAY, 100, FONTWEIGHT, 'bold',TITLE, '" & reqNm & "', TITLEFONTSIZE, '12px', TITLEBGCOLOR ,'#C6AF37')")
"onmouseout", "UnTip()")
lbAt.PostBackUrl =
"~/Pages/Main.aspx?SecureEnc=" & "2" & "&eTicketID=" & dtSet.Tables("dtset").Rows(r).Item("TicketNo") & ""
'Dim plHolder As New PlaceHolder
'plHolder = TryCast(FindControl("PlaceHolder2"), PlaceHolder)
'PlaceHolder2.Controls.Add(New LiteralControl(" <img src='../eImages/Active.gif' alt='Active' /> "))
'PlaceHolder2.Controls.Add(lbAt)
'PlaceHolder2.Controls.Add(New LiteralControl("<br>"))
Now I Have commented the above code and using the code below. its adding group and items. but, how can i add the popup screen and hyperlink?
Dim item2 As New ExplorerBarItem()
item2.Text = dtSet.Tables(
"dtSet").Rows(r).Item("TicketNo") & " " & Format(dtSet.Tables("dt").Rows(r).Item("DateRaised"), "dd-MMM-yyyy HH:mm:ss") & ""
group2.Items.Add(item2)
Thank you four detailed explaination and code sample...
In setting up our WebExplorerBar programmatically, a PlaceHolder is not required. You may directly add an ExplorerBarItem to an ExplorerBarGroup using the following code:
ExplorerBarGroup group = new ExplorerBarGroup(); group.Text = "Folders"; this.WebExplorerBar1.Groups.Add(group);
ExplorerBarItem item = new ExplorerBarItem(); item.Text = "Documents"; group.Items.Add(item);
item = new ExplorerBarItem(); item.Text = "Samples"; group.Items.Add(item);
For more details please refer to the sample attached.
With regards to the inaccessibility error due to protection level error you are having, I suggest creating a new aspx page within the solution/project you are working on. For additional details please refer to the following forum thread:
http://forums.asp.net/p/1548091/3788635.aspx
I hope this helps.
If you have any questions, please let me know as well.
I have attached my project. I cleaned it up to be concise and added comments in the code-behind.
It shows how to get a group from code, and also how to access and add items from code.
I had to remove the ig_res folder so I could upload it. If you view the default.aspx page in design view, it should prompt you to add this folder. I also removed the licenses.licx file, but that should be automatically created for you. I'm using build 11.2.20112.1019, so remember to change the @Register lines at the top of Default.aspx and the add lines in web.config if you have a different version.