Posted 01 Feb 2012 Link to this post
Here is my code for Rad Schduler
HTML source
<
head
runat
=
"server"
>
title
></
link
href
"http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css"
rel
"stylesheet"
type
"text/css"
/>
script
"text/javascript"
src
"http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"
"http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"
$(function () {
$("#tabs").tabs();
});
</
style
.rsMonthView .rsApt
{
width: 100% !important;
}
body
form
id
"form1"
telerik:RadScriptManager
ID
"RadScriptManager1"
div
"tabs"
ul
li
><
a
"#tabs-1"
>Scheduler1</
"#tabs-2"
>Scheduler2</
"tabs-1"
telerik:RadScheduler
"RadScheduler1"
Height
"700px"
Skin
"Windows7"
DataStartField
"sdate"
DataSubjectField
"tasks"
DataEndField
DataKeyField
"ts_key"
AllowDelete
"false"
AllowEdit
TimelineView
UserSelectable
"tabs-2"
"RadScheduler2"
> code behind protected void Page_Load(object sender, EventArgs e) { SqlConnection con = new SqlConnection("Connection String"); SqlDataAdapter adp = new SqlDataAdapter(); adp.SelectCommand = new SqlCommand(); adp.SelectCommand.CommandType = CommandType.StoredProcedure; adp.SelectCommand.CommandText = "GetScheduleView"; adp.SelectCommand.Connection = con; DataSet ds = new DataSet(); con.Open(); adp.Fill(ds, "Appointment"); RadScheduler1.DataSource = ds.Tables[0].DefaultView; ; RadScheduler1.DataBind(); RadScheduler1.SelectedView = SchedulerViewType.MonthView; RadScheduler2.DataSource = ds.Tables[0].DefaultView; ; RadScheduler2.DataBind(); RadScheduler2.SelectedView = SchedulerViewType.MonthView; } this works fine in IE Browser but in mozilla firefox when I resize the browser then only radscheduler in 2nd tab is displayed. how can it be displayed on tab change only.means when 2nd tab is selected. how can i resolve this?
protected
void
Page_Load(
object
sender, EventArgs e)
SqlConnection con =
new
SqlConnection(
"Connection String"
);
SqlDataAdapter adp =
SqlDataAdapter();
adp.SelectCommand =
SqlCommand();
adp.SelectCommand.CommandType = CommandType.StoredProcedure;
adp.SelectCommand.CommandText =
"GetScheduleView"
;
adp.SelectCommand.Connection = con;
DataSet ds =
DataSet();
con.Open();
adp.Fill(ds,
"Appointment"
RadScheduler1.DataSource = ds.Tables[0].DefaultView; ;
RadScheduler1.DataBind();
RadScheduler1.SelectedView = SchedulerViewType.MonthView;
RadScheduler2.DataSource = ds.Tables[0].DefaultView; ;
RadScheduler2.DataBind();
RadScheduler2.SelectedView = SchedulerViewType.MonthView;
this works fine in IE Browser
but in mozilla firefox when I resize the browser then only radscheduler in 2nd tab is displayed.
how can it be displayed on tab change only.means when 2nd tab is selected.
how can i resolve this?