protected
void grdProducts_ItemCommand(object sender, GridCommandEventArgs e)
{
if (e.CommandName== "Stock")
{
????
}
}
.two20 .RadDock .rdTitleBar em{ font-family:Verdana, Sans-Serif; font-size:16px; color:#fff; font-weight:bold; padding: 0 10px; line-height:18px;}.two20 .RadDock .rdContent {font-family:Verdana, Sans-Serif;}
public IList<CsMenuSection> GetMenuItems()
{
// go to DB to find menu items.
CsMenuSection section = new CsMenuSection("DataReview","");
section.AddMenuItem(
new CsMenuItem("Score ", "/Score/Index"));
section.AddMenuItem(
new CsMenuItem("Something else", "/something/something"));
CisMenuSection section2 = new CsMenuSection("Section 2", "");
section.AddMenuItem(
new CsMenuItem("Sample", "/Scoring/Selectreps"));
_menu_item_list.Add(section);
_menu_item_list.Add(section2);
return MenuItemList;
}
MY CsmenuItem looks lik this
namespace
CSModel
{
public class CsMenuItem
{
private String _text;
private String _link;
public CsMenuItem()
{
}
public CsMenuItem( String text, String link)
{
Text = text;
Link = link;
}
public String Text
{
get { return _text; }
set { _text = value; }
}
public String Link
{
get { return _link; }
set { _link = value; }
}
}
}
Can anyone please help me with this. I really need it urgently.
I'm working on a custom usercontrol that nests 2 RadPanelBars - one RadPanelBar inside each of its parent's RadPanelItem - in Sitefinity 3.7.2057.2. The parent RadPanelBar expands/collapses as it should, however the child RadPanelBar doesn't expand or collapse. Can you tell me how to fix it?
This is all that exists in my ascx.
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="RadPa... <telerik:RadPanelBar ID="RadPanelBarParent" runat="server" Skin="Default"> </telerik:RadPanelBar>foreach (Guid id in ListsIds) { //Create new bar RadPanelItem NewItem = new RadPanelItem(manager.GetList(id).Name); RadPanelItem InternalParentItem = new RadPanelItem(); // Create new PanelBar RadPanelBar ChildPanelBar = new RadPanelBar(); //Add to the child NewItem.Items.Add(InternalParentItem); // Add the panelbar to the new item InternalParentItem.Controls.Add(ChildPanelBar); //Add the parent RadPanelBarParent.Items.Add(NewItem); foreach(IListItem listItem in manager.GetListItems(id)){ //Create new bar RadPanelItem ChildItem = new RadPanelItem(listItem.Headline); RadPanelItem InternalChildItem = new RadPanelItem(); // Bind the template InternalChildItem.ItemTemplate = new TextBoxTemplate(); //Add to the child ChildItem.Items.Add(InternalChildItem); // Set the content InternalChildItem.Value = listItem.Content.ToString(); //Add to the parent ChildPanelBar.Items.Add(ChildItem); } }<%@ Page Language="VB" AutoEventWireup="true" CodeFile="ZTest_RadEditor.aspx.vb" Inherits="ZTest_RadEditor" %> <!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 runat="server"> <title></title> <link href="THDiStyles/Default.css" rel="stylesheet" type="text/css" /> </head> <body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager> <div> <br /><br /> <telerik:RadEditor ID="RadEditor1" runat="server" EnableEmbeddedSkins="true" Skin="Simple" ToolsFile="BasicTools.xml" > </telerik:RadEditor> <br /><br /> </div> </form> </body> </html>