or
<
ClientSettings
>
<
Scrolling
AllowScroll
=
"true"
UseStaticHeaders
=
"true"
ScrollHeight
=
"700"
EnableVirtualScrollPaging
=
"false"
SaveScrollPosition
=
"false"
/>
</
ClientSettings
>
<
ItemStyle
Height
=
"10px"
Font-Size
=
"X-Small"
></
ItemStyle
>
foreach
(var gi
in
rgVendorInvItems.MasterTableView.GetItems(GridItemType.GroupHeader))
{
gi.SetChildrenVisible(
false
);
}
<
telerik:RadMenu
runat
=
"server"
ID
=
"RadMenu1"
Skin
=
"Vista"
DataFieldID
=
"ItemId"
DataFieldParentID
=
"ParentItemId"
DataValueField
=
"ItemId"
DataTextField
=
"Text"
OnClientLoad
=
"OnClientMenuLoaded"
>
<
DefaultGroupSettings
RepeatColumns
=
"3"
RepeatDirection
=
"Vertical"
/>
</
telerik:RadMenu
>
namespace
WebApplication1
{
public
partial
class
ListViewIn_Menu : System.Web.UI.Page
{
protected
override
void
OnInit(EventArgs e)
{
RadMenu1.ItemTemplate =
new
TextBoxTemplate();
base
.OnInit(e);
}
protected
void
Page_Load(
object
sender, EventArgs e)
{
//Construct source list to bind to Menu
List<MenuSelection> lstV =
new
List<MenuSelection>();
MenuSelection lstItm;
for
(
int
i = 1; i<= 50 ; i++)
{
if
(lstV.Count == 0)
{
lstItm =
new
MenuSelection();
lstItm.ParentItemId = 0;
lstItm.ItemId = lstV.Count + 1;
lstItm.Checked =
false
;
lstItm.Text =
"MenuLevel1"
;
}
else
{
lstItm =
new
MenuSelection();
lstItm.ItemId = lstV.Count + 1;
lstItm.ParentItemId = 1;
lstItm.Checked = GetSelectedList().Contains(lstItm.ItemId);
lstItm.Text =
"MenuLevel2_"
+ (lstV.Count + 1).ToString();
}
lstV.Add(lstItm);
}
RadMenu1.DataSource = lstV;
RadMenu1.DataBind();
}
private
List<
int
> GetSelectedList()
{
//Get the selected checkbox text from hidden field (where checkbox is checked)
List<
int
> selList =
new
List<
int
>();
foreach
(
string
itm
in
hidSelectedList.Value.Split(
new
char
[] {
'|'
}))
{
if
(!
string
.IsNullOrEmpty(itm))
{
selList.Add(Convert.ToInt32(itm));
}
}
return
selList;
}
}
public
class
MenuSelection
{
public
MenuSelection()
{
}
public
int
ItemId {
get
;
set
; }
public
int
ParentItemId {
get
;
set
; }
public
string
Text {
get
;
set
; }
public
bool
Checked {
get
;
set
; }
}
class
TextBoxTemplate : ITemplate
{
public
void
InstantiateIn(Control container)
{
CheckBox cb =
new
CheckBox();
cb.DataBinding +=
new
EventHandler(cb_DataBinding);
container.Controls.Add(cb);
}
void
cb_DataBinding(
object
sender, EventArgs e)
{
CheckBox target = (CheckBox)sender;
RadMenuItem item = (RadMenuItem)target.BindingContainer;
MenuSelection ds = (MenuSelection)item.DataItem;
target.Checked = ds.Checked;
target.Text = ds.Text;
target.ID =
"ck"
;
target.Attributes.Add(
"onclick"
,
"OnMenuCheck_Click('"
+ ds.ItemId.ToString() +
"')"
);
}
}
I have a requirement in which I need to hide the recurrence check box form the Edit Appointment dialog. I wonder if this is possible
Thank you
J
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<
asp:Panel
ID
=
"pnlDefaultButtonSupport"
runat
=
"server"
DefaultButton
=
"btnOk"
>
<
fieldset
class
=
"noborder"
style
=
"width: 780px;"
>
<
telerik:RadSchedulerRecurrenceEditor
runat
=
"server"
ID
=
"rscr"
>
</
telerik:RadSchedulerRecurrenceEditor
>
</
fieldset
>
<
div
class
=
"ActionContainerNoBottom"
style
=
"width: 780px"
>
<
asp:Button
ID
=
"btnOk"
runat
=
"server"
Text
=
"Save"
SkinID
=
"CommandButton"
/>
<
asp:Button
ID
=
"btnClose"
runat
=
"server"
Text
=
"Close"
PostBackUrl
=
"javascript:GetRadWindow().close();"
SkinID
=
"CommandButton"
CausesValidation
=
"false"
/>
</
div
>
</
asp:Panel
>
<
telerik:RadWindowManager
ID
=
"rwmRecord"
runat
=
"server"
Height
=
"500"
Width
=
"900"
ShowOnTopWhenMaximized
=
"false"
Behaviors
=
"Close,Move,Resize,Maximize,Reload,Minimize"
ReloadOnShow
=
"true"
ShowContentDuringLoad
=
"false"
VisibleStatusbar
=
"false"
EnableShadow
=
"true"
OnClientClose
=
"OnClientClose"
OnClientCommand
=
"OnClientCommand"
>