<
telerik:RadCodeBlock
ID
=
"RadCodeBlock1"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function openWinRefClinic() {
window.radopen("FrmReferralClinicGrid.aspx", "RefClinicDialog");
}
function confirmCallBackFn(arg) {
if (arg == true) {
document.getElementById("Button1").click();
}
else {
document.getElementById("Button2").click();
}
}
function alertAndNavigateDr() {
window.location.href = "FrmReferralDoctorGrid.aspx";
}
</
script
>
</
telerik:RadCodeBlock
>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
<Windows>
<telerik:RadWindow ID="RefClinicDialog" Title="Referral Clinic Data" runat="server" Height="550px" Width="550px"
Left="150px" Behaviors="Close" />
</Windows>
</telerik:RadWindowManager>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RCCountry">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RCCity" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="RbSave">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RbSave" />
<telerik:AjaxUpdatedControl ControlID="Message" />
<telerik:AjaxUpdatedControl ControlID="lblerror" />
<telerik:AjaxUpdatedControl ControlID="lblName" />
<telerik:AjaxUpdatedControl ControlID="emailValidator" />
<telerik:AjaxUpdatedControl ControlID="lblContact" />
<telerik:AjaxUpdatedControl ControlID="lblLicence" />
<telerik:AjaxUpdatedControl ControlID="lblScript" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="RbClose">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RbClose" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
///
protected
void
RbSave_Click1(
object
sender, EventArgs e)
{
if
(RCDrName.Text ==
""
)
{
lblName.Visible =
true
;
RCDrName.Focus();
return
;
}
if
(RCClinic.SelectedIndex == 0)
{
lblerror.Visible =
true
;
RCClinic.Focus();
return
;
}
if
(RTMobile.Text ==
""
)
{
lblContact.Visible =
true
;
RTMobile.Focus();
return
;
}
if
(RTLicenceNo.Text ==
""
)
{
lblLicence.Text =
"Please enter Health Authority License No!"
;
lblLicence.Visible =
true
;
RTLicenceNo.Focus();
return
;
}
if
(!
string
.IsNullOrEmpty(Id))
{
bool
statusU = _refDoctorService.UpdateDoctor(refdoctor);
if
(statusU ==
true
)
{
RadWindowManager1.RadAlert(
"Referral doctor data updated successfully!"
, 300, 100,
"Update Referral Doctor"
,
"alertAndNavigateDr"
,
"myAlertImage.png"
);
}
else
{
Message.InnerHtml =
"Referral doctor data update failed"
;
return
;
}
}
else
{
//check if ref doctor exist
string
search =
" where Fld_RefDocName='"
+ refdoctor.Fld_RefDocName +
"'"
+
" and "
+
" Fld_ClinicID="
+ refdoctor.Fld_ClinicID;
bool
check = _refDoctorService.DoctorExists(search);
if
(check ==
true
)
{
RadWindowManager1.RadConfirm(
"Referral Doctor already exist!Do you want continue?"
,
"confirmCallBackFn"
, 300, 100,
null
,
"Warning"
,
"myConfirmImage.png"
);
}
else
{
bool
result = _refDoctorService.SaveRefDoctor(refdoctor);
if
(result ==
true
)
{
RadWindowManager1.RadAlert(
"Referral doctor added successfully!"
, 300, 100,
"Add Referral Doctor"
,
"alertAndNavigateDr"
,
"myAlertImage.png"
);
}
else
{
Message.InnerText =
"Referral doctor is not added.Please try again!"
;
return
;
}
}
}
}
protected
void
Button1_Click(
object
sender, EventArgs e)
{
//moving the fields
bool
result = _refDoctorService.SaveRefDoctor(refdoctor);
if
(result ==
true
)
{
RadWindowManager1.RadAlert(
"Referral doctor added successfully!"
, 300, 100,
"Add Referral Doctor"
,
"alertAndNavigateDr"
,
"myAlertImage.png"
);
}
else
{
Message.InnerText =
"Referral doctor is not added.Please try again!"
;
return
;
}
}
I want to know if it is possible to change the day, week, month, and timeline from horizontal along the top to be display vertically on the left hand side then change the time which is vertically on the left hand side to horizontal along the top.
I have attached an image of what I need.
cheers
John M
<
telerik:RadGrid
runat
=
"server"
ID
=
"rgdThongTin"
Height
=
"350px"
Width
=
"100%"
AutoGenerateColumns
=
"false"
GridLines
=
"None"
onneeddatasource
=
"rgdThongTin_NeedDataSource"
ondeletecommand
=
"rgdThongTin_DeleteCommand"
onupdatecommand
=
"rgdThongTin_UpdateCommand"
oninsertcommand
=
"rgdThongTin_InsertCommand"
>
<
MasterTableView
DataKeyNames
=
"STT"
AllowMultiColumnSorting
=
"True"
Width
=
"100%"
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"STT"
UniqueName
=
"STT"
HeaderText
=
"STT"
Visible
=
"false"
>
<
HeaderStyle
Width
=
"0px"
HorizontalAlign
=
"Left"
VerticalAlign
=
"Middle"
Font-Bold
=
"True"
/>
<
ItemStyle
Width
=
"0px"
HorizontalAlign
=
"Left"
VerticalAlign
=
"Middle"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridEditCommandColumn
ButtonType
=
"LinkButton"
UniqueName
=
"EditCommandColumn"
EditText
=
"Cáºp nháºt"
>
<
HeaderStyle
Width
=
"100px"
HorizontalAlign
=
"Left"
VerticalAlign
=
"Middle"
Font-Bold
=
"True"
/>
<
ItemStyle
Width
=
"100px"
HorizontalAlign
=
"Left"
VerticalAlign
=
"Middle"
/>
</
telerik:GridEditCommandColumn
>
</
Columns
>
<
EditFormSettings
CaptionFormatString
=
"Edit details for employee with"
CaptionDataField
=
"MA_SO"
>
</
EditFormSettings
>
</
MasterTableView
>
<
ClientSettings
AllowColumnsReorder
=
"true"
EnableRowHoverStyle
=
"true"
>
<
Selecting
AllowRowSelect
=
"true"
/>
<
Scrolling
AllowScroll
=
"true"
UseStaticHeaders
=
"true"
/>
<
ClientEvents
OnRowDblClick
=
"RowDblClick"
/>
</
ClientSettings
>
</
telerik:RadGrid
>
Hi,
I am having a user control in RadAjaxPanel of a content page. Now i want to include an image button in the usercontrol which on clicking should export the page content to a .doc file. i tried this code :
protected void Export(object sender, EventArgs e)
{
HttpContext.Current.Response.Clear();
Response.ContentType = "application/msword";
Response.AddHeader("Content-Disposition", "attachment;filename=Export.doc");
StringBuilder strHTMLContent = new StringBuilder();
strHTMLContent.Append("<html>");
strHTMLContent.Append(lbExp.Text);
strHTMLContent.Append("</html>");
Response.Write(strHTMLContent);
Response.End();
}
This is working fine in a demo application with a single button,shows the download window and exports the content but in my application, it is showing the Sys.WebForms.PageRequestmanager.ParserErrorException owing to the RadAjaxPanel used.
I went through several methods of excluding the controls, etc but none works..
Please help me regarding this..