or
I am tryin to use RadScheduler to display a month-vew with 5-6 events a month in the calendar. Each event has a Subject, start time, end time and description that needs to be displayed. None of the events will be on the same day. How can I get these events to fill up the entire cell (day) in the scheduler so that all of the info is visible (about 85 pixels high)? Adjusting the row height allows for this display but it also makes each cell longer and I can not fit the entire calendar in a single screen without scrolling. My code is as follows:
<telerik:RadScheduler ID=
"RadScheduler1"
runat=
"server"
DataDescriptionField=
"description"
DataEndField=
"end_time"
DataKeyField=
"pk_training_session_id"
DataSourceID=
"SqlDataSource1"
DataStartField=
"start_time"
DataSubjectField=
"session_type"
EnableDescriptionField=
"True"
FirstDayOfWeek=
"Monday"
Height=
"550px"
LastDayOfWeek=
"Friday"
SelectedView=
"MonthView"
CustomAttributeNames=
"registration_link"
>
<AppointmentTemplate>
<div style=
"margin-bottom: 4px;"
>
<b>
<asp:HyperLink ID=
"RegistrationLinkHyperLink"
runat=
"server"
Text=
'<%# Eval("Subject") %>'
NavigateUrl=
'<%# Eval("registration_link") %>'
ToolTip=
"Click to Register"
></asp:HyperLink>
</b>
</div>
<div>
<span style=
"width: 60px; display: inline-block;"
>Start Time:</span> <%# Eval(
"Start"
,
"{0:t}"
) %></div>
<div style=
"margin-bottom: 4px;"
>
<span style=
"width: 60px; display: inline-block;"
>End Time:</span> <%# Eval(
"End"
,
"{0:t}"
) %></div>
<p>
<%# Eval(
"Description"
) %>
</p>
</AppointmentTemplate>
</telerik:RadScheduler>
Does anyone know of a solution?
<
system.webServer
>
<
handlers
>
<
add
name
=
"Telerik_Web_UI_WebResource_axd"
path
=
"Telerik.Web.UI.WebResource.axd"
type
=
"Telerik.Web.UI.WebResource"
verb
=
"*"
preCondition
=
"integratedMode,runtimeVersionv2.0"
/>
</
handlers
>
</
system.webServer
>
protected void RadGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
{
if ((e.CommandName == RadGrid.PerformInsertCommandName))
{
//the dropdown list will be the first control in the Controls collection of the corresponding cell
DropDownList list = (e.Item as GridEditableItem)["ddlContactName"].Controls[0] as DropDownList;
}
}
protected void ObjectDataSource1_Inserting(object sender, System.Web.UI.WebControls.ObjectDataSourceMethodEventArgs e)
{
((DAL.DTO.DataTypeObject)e.InputParameters[0]).product.product_id = (int)Session["CustomerID"];
//These dont work...how can I access my Edit form or GridCommandEventArgs from this event in objectDatasource
//inserting event to access my dropdownlist??
//Telerik.Web.UI.GridEditFormInsertItem myInsertForm = ((Telerik.Web.UI.GridEditFormInsertItem)RadGrid1.FindControl("EditFormControl"));
//Telerik.Web.UI.GridEditFormInsertItem myInsertForm = ((Telerik.Web.UI.GridEditFormInsertItem)RadGrid1.EditItems[0]);
<
asp:RadioButtonList
ID
=
"rbl_radio_list"
runat
=
"server"
Enabled
=
"false"
>
<
asp:ListItem
Text
=
"Radio List Item 1"
Value
=
"1"
></
asp:ListItem
>
<
asp:ListItem
Text
=
"Radio List Item 2"
Value
=
"2"
></
asp:ListItem
>
<
asp:ListItem
Text
=
"Radio List Item 3"
Value
=
"3"
></
asp:ListItem
>
</
asp:RadioButtonList
>
<
asp:RadioButton
ID
=
"rdb_radio"
runat
=
"server"
Text
=
"Radio 1"
Enabled
=
"false"
Checked
=
"false"
/>
<
asp:CheckBoxList
ID
=
"cbl_check_list"
runat
=
"server"
Enabled
=
"false"
>
<
asp:ListItem
Text
=
"Check List Item 1"
Value
=
"1"
></
asp:ListItem
>
<
asp:ListItem
Text
=
"Check List Item 2"
Value
=
"2"
></
asp:ListItem
>
<
asp:ListItem
Text
=
"Check List Item 3"
Value
=
"3"
></
asp:ListItem
>
</
asp:CheckBoxList
>
<
asp:CheckBox
ID
=
"cbx_check"
runat
=
"server"
Text
=
"Check 1"
Enabled
=
"false"
Checked
=
"false"
/>
<
telerik:RadFormDecorator
ID
=
"rfd_radio"
runat
=
"server"
DecoratedControls
=
"RadioButtons"
/>
<
telerik:RadFormDecorator
ID
=
"rfd_check"
runat
=
"server"
DecoratedControls
=
"CheckBoxes"
/>