Hello, I'm a customer of and am using "RadControls for ASPNET AJAX Q1 2008", specifically the RadMenu control, and am attempting to bind it to a Microsoft SQL database table. I have the following table defined (simplified):
tblPages
[Column Name], [Data Type], [Allow Nulls]
PageID, int, false -- (an identity field)
PageParentID, int, true
PageTitle, varchar(50), true
PageContent, text, true
In an ASCX, I have the following,
I don't have any problems with the menu displaying, however, what I'm unclear about, is how to take the "PageID" from the database above and simply have the RadMenu take a click and go to something like:
~/page.aspx?id=[PAGEID]
Where [PAGEID], would of course, be an integer that could be looked up (if necissary, using my own code), which would allow me to display the content.
I just want a click on the menu to go to something like "~/page.aspx?id=[PAGEID]". Is there an event or something where I can set this to happen? Is there something built into the control (realize, I'm using the Q1 2008 version)?
Thanks for any assistance or help or even ideas you can supply.
tblPages
[Column Name], [Data Type], [Allow Nulls]
PageID, int, false -- (an identity field)
PageParentID, int, true
PageTitle, varchar(50), true
PageContent, text, true
In an ASCX, I have the following,
<telerik:RadMenu ID="NavMenu" runat="server" DataSourceID="NavigationSqlDataSource" Width="100%" DataFieldID="PageID" DataFieldParentID="PageParentID" DataTextField="PageTitle"> |
<CollapseAnimation Duration="200" Type="OutQuint" /> |
</telerik:RadMenu> |
<asp:SqlDataSource |
ID="NavigationSqlDataSource" |
runat="server" |
ConnectionString="[OMITTED]" |
SelectCommand="SELECT * FROM [tblPages]"> |
</asp:SqlDataSource> |
I don't have any problems with the menu displaying, however, what I'm unclear about, is how to take the "PageID" from the database above and simply have the RadMenu take a click and go to something like:
~/page.aspx?id=[PAGEID]
Where [PAGEID], would of course, be an integer that could be looked up (if necissary, using my own code), which would allow me to display the content.
I just want a click on the menu to go to something like "~/page.aspx?id=[PAGEID]". Is there an event or something where I can set this to happen? Is there something built into the control (realize, I'm using the Q1 2008 version)?
Thanks for any assistance or help or even ideas you can supply.