<
asp:SqlDataSource
ID
=
"SqlDataSource1"
runat
=
"server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
ProviderName="System.Data.SqlClient" SelectCommandType="StoredProcedure" SelectCommand="Net_DepechesTest" />
<
telerik:RadListView
ID
=
"Liste"
DataSourceID
=
"SqlDataSource1"
runat
=
"server"
ClientIDMode
=
"Static"
onitemdatabound
=
"Liste_ItemDataBound"
AllowPaging
=
"True"
ItemPlaceholderID
=
"ArticlesHolder"
DataKeyNames
=
"IDDepeche"
PageSize
=
"15"
>
<
LayoutTemplate
>
<
telerik:RadDataPager
ClientIDMode
=
"Static"
ID
=
"PagerUp"
SEOPagingQueryPageKey
=
"pager"
AllowSEOPaging
=
"true"
runat
=
"server"
PagedControlID
=
"Liste"
PageSize
=
"15"
Visible='<%# Container.PageCount != 1%>'>
<
Fields
>
<
telerik:RadDataPagerButtonField
FieldType
=
"NextLast"
/>
<
telerik:RadDataPagerButtonField
FieldType
=
"Numeric"
/>
<
telerik:RadDataPagerButtonField
FieldType
=
"FirstPrev"
/>
<
telerik:RadDataPagerTemplatePageField
><
PagerTemplate
>Page(s) : </
PagerTemplate
></
telerik:RadDataPagerTemplatePageField
>
</
Fields
>
</
telerik:RadDataPager
>
<
div
id
=
"ListDepeches"
>
<
asp:Panel
ID
=
"ArticlesHolder"
ClientIDMode
=
"Static"
runat
=
"server"
/>
</
div
>
<
telerik:RadDataPager
ClientIDMode
=
"Static"
ID
=
"PagerDown"
SEOPagingQueryPageKey
=
"pager"
AllowSEOPaging
=
"true"
runat
=
"server"
PagedControlID
=
"Liste"
PageSize
=
"15"
Visible='<%# Container.PageCount != 1%>'>
<
Fields
>
<
telerik:RadDataPagerButtonField
FieldType
=
"NextLast"
/>
<
telerik:RadDataPagerButtonField
FieldType
=
"Numeric"
/>
<
telerik:RadDataPagerButtonField
FieldType
=
"FirstPrev"
/>
<
telerik:RadDataPagerTemplatePageField
><
PagerTemplate
>Page(s) : </
PagerTemplate
></
telerik:RadDataPagerTemplatePageField
>
</
Fields
>
</
telerik:RadDataPager
>
</
LayoutTemplate
>
<
ItemTemplate
>
<
asp:Literal
ID
=
"LesArticles"
runat
=
"server"
></
asp:Literal
>
</
ItemTemplate
>
<
EmptyDataTemplate
>Aucune actualité disponible</
EmptyDataTemplate
>
</
telerik:RadListView
>
Private Sub UpdateButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles UpdateButton.Click
Dim AppointmentBE as New AppointmentBE
Dim ProspectToolDAL As New ProspectToolDAL
Dim startDateString as String
Dim startTimeString as String
Dim endDateString as String
Dim endTimeString as String
AppointmentBE.Subject = SubjectText.Text
AppointmentBE.AppointmentKey = Appointment.ID
startDateString =
"#" & Format(StartDate.SelectedDate, "MM/dd/yyyy")
startTimeString = StartTime.SelectedDate.Value.ToShortTimeString &
"#"
AppointmentBE.StartTime =
CDate(startDateString & " " & startTimeString)
endDateString =
"#" & Format(EndDate.SelectedDate, "MM/dd/yyyy")
endTimeString = EndTime.SelectedDate.Value.ToShortTimeString &
"#"
AppointmentBE.EndTime =
CDate(endDateString & " " & endTimeString)
Dim appointmentKey as Int32 = ProspectToolDAL.SaveAppointment(AppointmentBE, "U")
End Sub
2. The second problem is once the window is closed (by clicking 'Cancel'), the appointment does not show it's new values. How can I get the scheduler to 'refresh' once the modal window is closed?
Thanks,
Susan
public
SchedulerResult InsertAppointment(SchoolCalendarInfo schedulerInfo, AppointmentData appointmentData)
{
SchedulerResult result = null;
result = new SchedulerResult();
result.Appointments = Controller.InsertAppointment<
AppointmentData>(schedulerInfo, appointmentData);
result.Code = 2;
}
return result;
}
The error is "Unknown web method InsertAppointment".
Can this be done? If it can, what is wrong with our setup?
-- code
<telerik:RadSplitter id="RadSplitter1" runat="server" BorderWidth="0" height="600px" Width="100%" LiveResize="True">
<telerik:RadPane id="left" runat="server" BorderWidth="0" minwidth="30" maxwidth="200" width="100">
<telerik:RadPanelBar runat="server" ID="RadPanelBar1" Width="100px" >
<CollapseAnimation Type="None"></CollapseAnimation>
<Items>
</Items>
</telerik:RadPanelBar>
</telerik:RadPane>
<telerik:RadPane id="main" runat="server" BorderWidth="0" minwidth="600" maxwidth="1500" width="1000">
</telerik:RadPane>
</telerik:RadSplitter>
Message: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500 |
Line: 6 |
Char: 62099 |
Code: 0 |
URI: http://localhost:53177/Website/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ScriptManagerMain_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ad0c4ca6e-6b5d-49b6-922d-5244924fb100%3aea597d4b%3ab25378d2 |
Message: 'PersonToDoRowContextMenu' is undefined |
Line: 204658269 |
Char: 5 |
Code: 0 |
URI: http://localhost:53177/Website/Contacts/Contacts.aspx |
<form id="MAPPNHSTDAfrm" runat="server">
<telerik:RadScriptManager ID="RdScptMgrMAppNHSTDAfrm" EnablePartialRendering="true"
AsyncPostBackTimeout = "36000" runat="server">
</telerik:RadScriptManager>
<telerik:RadStyleSheetManager ID="RdStyMgrMAppNHSTDAfrm" EnableStyleSheetCombine="true"
runat="server">
</telerik:RadStyleSheetManager>
<asp:UpdatePanel ID="unGeneralInformation" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<div class="contentcontainer">
<fieldset style="width:98%;height:93%">
<div style="overflow: auto; height: 100%; width: 99%" id="Div1" runat="server">
<div style="height: 100%; width: 98%" id="ManifestDiv" runat="server">
<table border="0" cellpadding="3" cellspacing="2" width="100%">
<tr>
<td colspan="7">
<fieldset>
<legend>General Information</legend>
<table border="0" cellpadding="3" cellspacing="2" width="100%">
<tr>
<td class="datafield width0" width="4%">
</td>
<td class="datatext width1" width="20%">
MISIS ID.
</td>
<td class="datafield" width="26%">
<asp:TextBox ID="uxMISISNo2" runat="server" Enabled="false" />
</td>
<td id="Td3" runat="server" width="26%">
</td>
<td id="Td4" class="datafield" width="24%">
</td>
</tr>
<tr>
<td class="datafield width0">
</td>
<td class="datatext width1">
Birth Date
<br />
(DD-MMM-YYYY)
</td>
<td class="datafield">
<telerik:RadDatePicker ID="uxDateofBirth2" runat="server" DateInput-DateFormat="dd-MMM-yyyy"
Enabled="false" Skin="Default2006">
<DateInput ID="DateInput6" runat="server" LabelCssClass="radLabelCss_Default2006"
Skin="Default2006">
</DateInput>
<Calendar ID="Calendar5" runat="server" Skin="Default2006" UseColumnHeadersAsSelectors="False"
UseRowHeadersAsSelectors="False" ViewSelectorText="x">
</Calendar>
<DatePopupButton CssClass="radPopupImage_Default2006" />
</telerik:RadDatePicker>
</td>
<td id="Td5" runat="server" style="width: 100%;">
Cohort :
<asp:DropDownList ID="uxCohort" runat="server">
<asp:ListItem Value="1">--Select--</asp:ListItem>
<asp:ListItem Value="2">Green</asp:ListItem>
<asp:ListItem Value="3">Yellow</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td class="datafield width0">
</td>
<td class="datatext width1">
Trust and Allocation Code
</td>
<asp:UpdatePanel ID="unTACDetails" runat="server" UpdateMode="Conditional" >
<ContentTemplate>
<td id="Td7" runat="server">
Branch :
<asp:DropDownList ID="TrustAllocationBranch" runat="server"
AutoPostBack="true" OnSelectedIndexChanged="TrustAllocationBranch_SelectedIndexChanged">
</asp:DropDownList>
</td>
<td id="Td8" runat="server">
Trust :
<asp:DropDownList ID="TrustAllocationTrust" runat="server" Width="85%">
</asp:DropDownList>
</td>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="TrustAllocationBranch" EventName="SelectedIndexChanged" />
</Triggers>
</asp:UpdatePanel>
</tr>
</table>
</div>
</div>
</fieldset>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</form>
========================================================
This is i put it in the above aspx page inside:
--------------------------------------------------------
<asp:UpdatePanel ID="unTACDetails" runat="server" UpdateMode="Conditional" >
<ContentTemplate>
<td id="Td7" runat="server">
Branch :
<asp:DropDownList ID="TrustAllocationBranch" runat="server"
AutoPostBack="true" OnSelectedIndexChanged="TrustAllocationBranch_SelectedIndexChanged">
</asp:DropDownList>
</td>
<td id="Td8" runat="server">
Trust :
<asp:DropDownList ID="TrustAllocationTrust" runat="server" Width="85%">
</asp:DropDownList>
</td>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="TrustAllocationBranch" EventName="SelectedIndexChanged" />
</Triggers>
</asp:UpdatePanel>
=====================================================================================
This is my server side code
======================
protected void TrustAllocationBranch_SelectedIndexChanged(object sender, EventArgs e)
{
TrustAllocationTrust.ClearSelection();
TrustAllocationTrust.Items.Clear();
if (TrustAllocationBranch.SelectedIndex == 1)
{
FillForBranchAdult();
}
if (TrustAllocationBranch.SelectedIndex == 2)
{
FillForBranchChild();
}
if (TrustAllocationBranch.SelectedIndex == 3)
{
FillForBranchMentalHealth();
}
}
What is the problem? I solved this problem without update panel. But without updatepanel, the page is refreshed and my tab is disappeared. So i choose this way. Give me a solution.
Thanks
Ashok