|
Requirements |
|
| RadControls version |
Q3 2008 |
| .NET version |
3.5 |
| Visual Studio version |
2008 |
| programming language |
vb.net |
| browser support |
all browsers supported by RadControls |
I have written a small code to test loding of menu from an object collection (Entity spaces)
RadMenu1.DataFieldID =
"MenID"
RadMenu1.DataFieldParentID =
"MenMenIDParent"
RadMenu1.DataNavigateUrlField =
"MenNavigateUrl"
RadMenu1.DataTextField =
"MenName"
Dim sp As MenuCollection = New MenuCollection
sp.GetMenuForUser(1)
RadMenu1.DataSource = sp
RadMenu1.DataBind()
the code runs but the menu is blank. any suggestion???
I checked my collection it is returning 16 entities/objects.
<Telerik:RadTreeNode runat="server" SkinID="District" ImageUrl="images/icons/folder.gif" /> |
| <Telerik:RadTreeNode runat="server" SkinID="Location" ImageUrl="images/icons/house.gif" /> |
What I would like to do, is based on the data being bound to the treeview is assign a different SkinID to each node as they are created.
My problem is that the 2 events I have to work with, NodeCreated and NodeDataBound, won't accomplish this. NodeCreated is too early because I can't determine the type of node being created because the DataItem value of e.Node is null. NodeDataBound is too late because the node has already been added to the Controls collection and the SkinID cannot be assigned.
How would I go about accomplishing this?
Thanks
In IE8 beta there is one annoying issue when using RadSplitter and async postbacks with RadAjaxPanel. The RadSplitter simply moves downwards a bit when the async postback completes, leaving a gap of empty space above it. This happens at least when the RadSplitter is the parent element in the page, and it occurs regardless of width/height settings.
As quite a few of our users have installed IE8 and are complaining about this issue, could you please check whether it is a bug in IE8 or if RadAjaxPanel adds some content to the page causing the RadSplitter to move? The problem is simple to reproduce using the following code:
| <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head id="Head1" runat="server"> |
| <title></title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <telerik:RadScriptManager runat="server"> |
| </telerik:RadScriptManager> |
| <telerik:RadSplitter ID="RadSplitter1" runat="server" Orientation="Horizontal"> |
| <telerik:RadPane ID="RadPane1" runat="server"> |
| <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"> |
| <asp:Button ID="Button1" runat="server" Text="Click" /> |
| </telerik:RadAjaxPanel> |
| </telerik:RadPane> |
| </telerik:RadSplitter> |
| </form> |
| </body> |
| </html> |
| Public Sub ShowPopupMessage(ByVal message As String) |
| Dim popupMessage As New Telerik.Web.UI.RadToolTip |
| pl.Controls.Add(popupMessage) |
| SetPopupControlProperties(popupMessage) |
| popupMessage.Text = message |
| End Sub |
| Public Sub ShowPopupMessage(ByVal lbl As Label) |
| Dim popupMessage As New Telerik.Web.UI.RadToolTip |
| pl.Controls.Add(popupMessage) |
| SetPopupControlProperties(popupMessage) |
| popupMessage.Controls.Add(lbl) |
| End Sub |
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
|
[NullReferenceException: Object reference not set to an instance of an object.] Telerik.Web.UI.GridTableView.PrepareExport() +14 Telerik.Web.UI.Grid.Export.TableViewExporter.PrepareForExport() +171 Telerik.Web.UI.Grid.Export.TableViewExporter.page_PreRender(Object sender, EventArgs e) +5 System.EventHandler.Invoke(Object sender, EventArgs e) +0 System.Web.UI.Control.OnPreRender(EventArgs e) +8679510 System.Web.UI.Control.PreRenderRecursiveInternal() +80 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842 |