I made this scheduler object:
<
telerik:RadScheduler
RenderMode
=
"Lightweight"
runat
=
"server"
ID
=
"RadScheduler"
FirstDayOfWeek
=
"Monday"
LastDayOfWeek
=
"Sunday"
OverflowBehavior
=
"Expand"
SelectedView
=
"MonthView"
DayStartTime
=
"08:00:00"
DayEndTime
=
"19:59:59"
WorkDayStartTime
=
"08:00:00"
WorkDayEndTime
=
"20:00:00"
ShowAllDayRow
=
"true"
ShowFullTime
=
"true"
AllowDelete
=
"true"
AllowEdit
=
"true"
AllowInsert
=
"true"
StartEditingInAdvancedForm
=
"true"
StartInsertingInAdvancedForm
=
"true"
EnableDescriptionField
=
"true"
EnableExactTimeRendering
=
"true"
ShowFooter
=
"true"
Reminders-Enabled
=
"false"
EnableRecurrenceSupport
=
"false"
OnAppointmentDataBound
=
"RadScheduler_AppointmentDataBound"
OnAppointmentInsert
=
"RadScheduler_AppointmentInsert"
OnAppointmentDelete
=
"RadScheduler_AppointmentDelete"
OnAppointmentUpdate
=
"RadScheduler_AppointmentUpdate"
AppointmentStyleMode
=
"Auto"
OnFormCreated
=
"RadScheduler_FormCreated"
DataKeyField
=
"ID"
DataSubjectField
=
"Subject"
DataStartField
=
"Start"
DataEndField
=
"End"
DataDescriptionField
=
"Description"
ToolTip
=
"Subject"
>
<
AdvancedForm
Modal
=
"true"
></
AdvancedForm
>
<
MultiDayView
UserSelectable
=
"false"
/>
<
TimelineView
UserSelectable
=
"false"
/>
<
MonthView
UserSelectable
=
"true"
/>
<
AgendaView
UserSelectable
=
"true"
/>
<
TimeSlotContextMenuSettings
EnableDefault
=
"true"
></
TimeSlotContextMenuSettings
>
<
AppointmentContextMenuSettings
EnableDefault
=
"true"
></
AppointmentContextMenuSettings
>
</
telerik:RadScheduler
>
When use, in code behind, the insert ("RadScheduler_AppointmentInsert") or delete ("RadScheduler_AppointmentDelete") methods the scheduler refresh the appoitments correctly, withouth the necessity to use a rebind() option.
protected
void
RadScheduler_AppointmentInsert(
object
sender, AppointmentInsertEventArgs e)
{
Bisiona.ACE.Eal.Tenders.Appointment appointment =
new
Bisiona.ACE.Eal.Tenders.Appointment();
appointment.ID =
null
;
appointment.Subject = e.Appointment.Subject;
appointment.Start = e.Appointment.Start;
appointment.End = e.Appointment.End;
appointment.Description = e.Appointment.Description;
appointment.Calendar = e.Appointment.Resources.GetResourceByType(
"Calendar"
).Key.ToString();
appointment.Color = e.Appointment.Resources.GetResourceByType(
"Color"
).Key.ToString();
if
(TenderActual !=
null
) {
appointment.TenderID = TenderActual.TenderID;
appointment.VersionID = TenderActual.Version.VersionID;
}
if
(UsuarioActual !=
null
)
{
appointment.RoleID = UsuarioActual.Role.RoleID;
appointment.CodUsuario = UsuarioActual.CodUsuario;
}
bool
result =
false
;
string
ID =
string
.Empty;
result = Bisiona.ACE.Bll.Tenders.CalendarBo.SetCalendarAppointment(appointment,
ref
ID);
if
(result)
{
e.Appointment.ID = ID;
e.Appointment.ToolTip = e.Appointment.Subject;
((Master)
this
.Page.Master).ShowNotification(GetLocalResourceObject(
"msgSaveAppointment"
).ToString(),
"save"
);
}
else
{
e.Appointment.Visible =
false
;
((Master)
this
.Page.Master).ShowNotification(GetLocalResourceObject(
"msgErrorAppointment"
).ToString(),
"error"
);
}
}
protected
void
RadScheduler_AppointmentDelete(
object
sender, AppointmentDeleteEventArgs e)
{
bool
result =
false
;
result = Bisiona.ACE.Bll.Tenders.CalendarBo.DelCalendarAppointment(e.Appointment.ID.ToString());
if
(result)
((Master)
this
.Page.Master).ShowNotification(GetLocalResourceObject(
"msgDeleteAppointment"
).ToString(),
"save"
);
else
((Master)
this
.Page.Master).ShowNotification(GetLocalResourceObject(
"msgErrorAppointment"
).ToString(),
"error"
);
}
But, when use the update method ("RadScheduler_AppointmentUpdate") I recived correctly the Appointment and ModifiedAppoitment objects.
In this method, I can persist the object in database but the scheduler doesn't refresh.
protected
void
RadScheduler_AppointmentUpdate(
object
sender, AppointmentUpdateEventArgs e)
{
Bisiona.ACE.Eal.Tenders.Appointment appointment =
new
Bisiona.ACE.Eal.Tenders.Appointment();
appointment.ID = e.Appointment.ID.ToString();
appointment.Subject = e.ModifiedAppointment.Subject;
appointment.Start = e.ModifiedAppointment.Start;
appointment.End = e.ModifiedAppointment.End;
appointment.Description = e.ModifiedAppointment.Description;
appointment.Calendar = e.ModifiedAppointment.Resources.GetResourceByType(
"Calendar"
).Key.ToString();
appointment.Color = e.ModifiedAppointment.Resources.GetResourceByType(
"Color"
).Key.ToString();
if
(TenderActual !=
null
)
{
appointment.TenderID = TenderActual.TenderID;
appointment.VersionID = TenderActual.Version.VersionID;
}
if
(UsuarioActual !=
null
)
{
appointment.RoleID = UsuarioActual.Role.RoleID;
appointment.CodUsuario = UsuarioActual.CodUsuario;
}
bool
result =
false
;
result = Bisiona.ACE.Bll.Tenders.CalendarBo.UpdateCalendarAppointment(appointment);
if
(result)
((Master)
this
.Page.Master).ShowNotification(GetLocalResourceObject(
"msgSaveAppointment"
).ToString(),
"save"
);
else
((Master)
this
.Page.Master).ShowNotification(GetLocalResourceObject(
"msgErrorAppointment"
).ToString(),
"error"
);
}
I try also to do a rebind at the end, but nothing happend.
I want to call to database as less as possible.
Any Ideas?
Thank you so much.
I am using radgird and allowing filters on all columns. I have 3 columns on grid and I am binding those columns dynamically using vb.net code behind.
On UI page I have only the below script:
<telerik:RadGrid ID="gridData" runat="server" Visible="true" RenderMode="Native"> </telerik:RadGrid>
The problem is that when I apply filter on one column that is worked fine now simultaneously I apply filter on second column then it removes the filter of first column. Please see the attached screenshot.
In code behind I have grid event like:
Protected Sub gridData_NeedDataSource(ByVal Source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles gridData.NeedDataSource
but this event is also not firing in any case.
Any idea about filtering on multiple columns issue?
I'm looking for a server side event that will fire after the menu has been rendured in the master page but before control is passed to the main page. So effectively before OnLoad.
Any suggestions?
The application is translating a website built with MS tools and they filter the menu system based on the logged in user on the computer.
Thanks!
Hi,
I generate RadTabStrip theme builder using following link https://themebuilder.telerik.com/aspnet-ajax.In that i used Material theme and color swatches as Blue Light, and generated css and imported in my same testing page - http://prntscr.com/qcyymj , and output is http://prntscr.com/qcyz40 ,
but in theme builder - http://prntscr.com/qcz00i
Pls reply asap
Thanks
Hi,
In one aspx page i have 2 tabs with 2 different css styles, both style i saved in external css pages. when i call both style pages and added in cssclass for radtab, both style reflect in both tabs. How to use different style for 2 or more tabs in same aspx page.Below is my code.
Css pages
<link href="CustomSkins/UnderlineTab.css" rel="stylesheet" /> - With bottom line
<link href="CustomSkins/RoundedTab.css" rel="stylesheet" /> - Rounded corner tab
First Tab:
<telerik:RadTabStrip ID="PageTab1" CssClass="UnderlineTab" RenderMode="Lightweight" EnableEmbeddedSkins ="false" OnClientTabSelecting="PageTab_OnClientTabSelecting" MultiPageID="MultiPage" runat="server" Orientation="HorizontalBottom" SelectedIndex="3">
Second Tab:
<telerik:RadTabStrip ID="PageTab2" CssClass="RoundedTab" RenderMode="Lightweight" EnableEmbeddedSkins ="false" OnClientTabSelecting="PageTab_OnClientTabSelecting" MultiPageID="MultiPage" runat="server" Orientation="HorizontalBottom" SelectedIndex="3">
Screenshots if hide one styles :
1.http://prntscr.com/tcio50
2.http://prntscr.com/tcios3
If i enable both css,both style reflect in same tabs -- http://prntscr.com/tcip58
Below are Rounded CSS style
div.RadTabStrip .rtsLevel {
border-color: transparent;
}
div.RadTabStrip .rtsLI,
div.RadTabStrip .rtsLI.rtsHovered {
margin-right: 10px;
border: none;
}
div.RadTabStrip .rtsLI .rtsLink,
div.RadTabStrip .rtsLI.rtsHovered .rtsLink,
div.RadTabStrip .rtsLI.rtsSelected .rtsLink {
background: none;
border: none;
box-shadow: none;
}
div.RadTabStrip .rtsLevel .rtsLI.rtsSelected .rtsLink:before {
background: none;
border: none;
}
div.RadTabStrip .rtsLI.rtsSelected {
background-color: orange;
border-radius: 25px;
}
div.RadTabStrip .rtsLI.rtsSelected .rtsLink {
color: white;
}
----------------------------------------------------------------------------------
Below are Underline Css Style
div.RadTabStrip .rtsLevel {
border-color: transparent;
}
div.RadTabStrip .rtsLI,
div.RadTabStrip .rtsLI.rtsHovered {
margin-right: 10px;
border: none;
color :black;
}
div.RadTabStrip .rtsLI .rtsLink,
div.RadTabStrip .rtsLI.rtsHovered .rtsLink,
div.RadTabStrip .rtsLI.rtsSelected .rtsLink {
background: none;
border: none;
box-shadow: none;
}
div.RadTabStrip .rtsLevel .rtsLI.rtsSelected .rtsLink:before {
background: none;
border: none;
}
div.RadTabStrip .rtsLI.rtsSelected {
color :cornflowerblue;
font-weight :700 ;
border-bottom-width :inherit;
border-bottom-style:solid ;
border-bottom-color :cornflowerblue;
border-radius: 0px;
}
div.RadTabStrip .rtsLI.rtsSelected .rtsLink {
color: cornflowerblue;
}
Pls reply Asap
Thanks
Hi.
We have a page with RadEditor placed into an iframe. Opening dialog when a size of dialog is bigger than the size of iframe looks not good (radwindow-dialog.png).
We tried to use browser modal dialog by calling client-side function set_useClassicDialogs(true). In this case, the popup dialog is smaller than the content and we need to scroll or maximize the window (browser-modal-dialog.png).
We use 2020.1.219.35 version.
Any suggestions to get auto-resized dialog over iframe would be much appreciated.
I have a landscape formated output directed to the PDF export from my RadGrid and the data has recently extended to a new page. Is there a way to scale to a single page? The below is what I'm using to setup the PDF prior to export.
grdScoreCardDashboard.ExportSettings.Pdf.BorderType = GridPdfSettings.GridPdfBorderType.AllBorders
grdScoreCardDashboard.ExportSettings.OpenInNewWindow = True
grdScoreCardDashboard.ExportSettings.IgnorePaging = True
grdScoreCardDashboard.ExportSettings.Pdf.PageHeight = Unit.Parse("162mm")
grdScoreCardDashboard.ExportSettings.Pdf.PageWidth = Unit.Parse("600mm")
grdScoreCardDashboard.ExportSettings.Pdf.PageRightMargin = Unit.Parse("5mm")
grdScoreCardDashboard.ExportSettings.Pdf.PageLeftMargin = Unit.Parse("5mm")
grdScoreCardDashboard.ExportSettings.Pdf.PageLeftMargin = Unit.Point(-1)
grdScoreCardDashboard.ExportSettings.Pdf.PageRightMargin = Unit.Point(-1)
grdScoreCardDashboard.ExportSettings.Pdf.PageTopMargin = Unit.Point(-2)
grdScoreCardDashboard.ExportSettings.Pdf.PageBottomMargin = Unit.Point(-2)
grdScoreCardDashboard.ExportSettings.Pdf.Title = "Score Card"
grdScoreCardDashboard.ExportSettings.Pdf.PaperSize = GridPaperSize.Letter
grdScoreCardDashboard.ExportSettings.FileName = String.Format("ScoreCardOutput-{0}", DateTime.Now.ToString("yyyyMMddhhmmss"))
grdScoreCardDashboard.ExportSettings.Pdf.AllowPrinting = True
grdScoreCardDashboard.ExportSettings.Pdf.AllowModify = True
grdScoreCardDashboard.ExportSettings.Pdf.AllowCopy = True
grdScoreCardDashboard.ExportSettings.ExportOnlyData = True
grdScoreCardDashboard.ExportSettings.Pdf.FontType = Telerik.Web.Apoc.Render.Pdf.FontType.Embed
grdScoreCardDashboard.Width = Unit.Percentage(100)
grdScoreCardDashboard.Height = Unit.Percentage(100)