| <telerik:RadPageView ID="HomePage" runat="server"> |
| <iframe id="HomeIframe" width="100%" height="100%" runat="server" frameborder="0" /> |
| </telerik:RadPageView> |
| HomeIframe.Attributes["src"] = "www.google.com"; |
Then it would append the solution name to the url as: mysolution/www.google.com and display a 404 error on the page.
| HomeIframe.Attributes["src"] = "http://www.google.com"; |
If
item.Value <= 0 Then
item.Style.Add(
"font-weight", "bold")
item.IsSeparator =
True
End
If
Thanks,
Pradip
Hi Telerik Team,
In RadSliding Pane I want to display the table content in the bottom of the Pane. But currently content of the RadSliding Pane (eg: table) persists on the top. How to set this to the bottom of the Pane.
Please help me to solve this issue.
| <asp:Panel ID="pnlContents" Direction="LeftToRight" ScrollBars="Vertical" runat="server" |
| Height="400px" Width="330px"> |
| <table cellpadding="0" cellspacing="0" style="border: solid 1px #828282; background-color: #e5e5e5; |
| height: 400px; min-height: 400px; width: 302px;"> |
| <tr> |
| <td valign="top"> |
| <telerik:RadMenu runat="server" ID="rmLevel1" EnableEmbeddedSkins="true" ClickToOpen="true" |
| Flow="vertical" Width="300px" Skin="Default" OnItemClick="rm_ItemClick" Style="z-index: 10 !important;"> |
| <Items> |
| <telerik:RadMenuItem Text="U.S. Locations" Width="300px"> |
| </telerik:RadMenuItem> |
| <telerik:RadMenuItem Text="International Locations" Width="300px"> |
| </telerik:RadMenuItem> |
| </Items> |
| </telerik:RadMenu> |
| <telerik:RadMenu Visible="false" runat="server" EnableEmbeddedSkins="true" ID="rmLevel2" |
| Style="z-index: 10 !important;" ClickToOpen="true" Flow="vertical" Width="300px" |
| Skin="Default" OnItemClick="rm_ItemClick"> |
| </telerik:RadMenu> |
| <telerik:RadMenu Visible="false" runat="server" ID="rmLevel3" EnableEmbeddedSkins="true" |
| Style="z-index: 10 !important;" ClickToOpen="true" Flow="vertical" Width="300px" |
| Skin="Default" OnItemClick="rm_ItemClick"> |
| </telerik:RadMenu> |
| <telerik:RadMenu Visible="false" runat="server" ID="rmLevel4" EnableEmbeddedSkins="true" |
| Style="z-index: 10 !important;" ClickToOpen="true" Flow="vertical" Width="300px" |
| Skin="Default" OnItemClick="rm_ItemClick"> |
| </telerik:RadMenu> |
| </td> |
| </tr> |
| </table> |
| </asp:Panel> |
| protected void rmpCoverage_PageViewCreated(object sender, RadMultiPageEventArgs e) |
| { |
| string userControlName = "../UserControls/Question.ascx"; |
| userControlPage = Page.LoadControl(userControlName); |
| userControlPage.ID = e.PageView.ID + "_userControl"; |
| e.PageView.Controls.Add(userControlPage); |
| } |
| private void AddTab(string tabName) |
| { |
| RadTab tab = new RadTab(); |
| RadTab tabChild = new RadTab (); |
| tabChild.Text ="Additional Questions"; |
| RadTab tabChild1 = new RadTab(); |
| tabChild1.Text = "Questions"; |
| tab.Text = tabName; |
| tab.Tabs.Add(tabChild); |
| tab.Tabs.Add(tabChild1); |
| rtsCoverage.Tabs.Add(tab); |
| } |
Dear Sir,
I am using sitemap file to fill up RadMenu, it has only top level Image menu, no any subMenu.
To display image I have written following code inside ItemDataBound.
protected void RadMenu1_ItemDataBound(object sender, Telerik.Web.UI.RadMenuEventArgs e)
{
SiteMapNode node = e.Item.DataItem as SiteMapNode;
e.Item.ImageUrl = node["CustomImageURL"];
e.Item.HoveredImageUrl = node["HoverImageURL"];
}
In above code I have written to display imageUrl and MouseHourImage.
Now I want selected menu should have different image therefore I need selected menu index or name.
RadMenu contain ItemClick event but this event will be execute at the time of sub menu clicked.
When I check “sender” object parameter in QuickWatch I found that following line return selected page url .
((Telerik.Web.UI.HierarchicalControlItemContainer)(sender)).CurrentSiteMapUrl
But when I try to write in code it gives me compilation error that “The property or indexer 'Telerik.Web.UI.HierarchicalControlItemContainer.CurrentSiteMapUrl' cannot be used in this context because the get accessor is inaccessible.”
I want to know that, is there any another way to display Selected image in RadMenu?