This is a migrated thread and some comments may be shown as answers.

AdvancedForm Modal Popup CSS Definition

7 Answers 244 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Steven asked on 13 Jun 2012, 09:00 PM
The code that Telerik provides for a Use custom modal advanced template includes many css classes such as rsAdvanceEdit and rsAdvanceModal.  I would like to style these but I don't know where they are defined. 

Can someone please tell me where I can find the css for them?

<AdvancedEditTemplate>
   <div class="rsAdvancedEdit rsAdvancedModal" style="position: relative">
       <div class="rsModalBgTopLeft">
       </div>
       <div class="rsModalBgTopRight">
       </div>
       <div class="rsModalBgBottomLeft">
       </div>
       <div class="rsModalBgBottomRight">
       </div>    
       <div class="rsAdvTitle">         
           <h1 class="rsAdvInnerTitle">
               <%# Container.Appointment.Owner.Localization.AdvancedEditAppointment %></h1>
           <asp:LinkButton runat="server" ID="LinkButton1" CssClass="rsAdvEditClose"
               CommandName="Cancel" CausesValidation="false" ToolTip='<%# Container.Appointment.Owner.Localization.AdvancedClose %>'>
<%# Container.Appointment.Owner.Localization.AdvancedClose%>
           </asp:LinkButton>
       </div>
       <div class="rsAdvContentWrapper">
           <telerik:RadTextBox ID="SubjectTextBox" runat="server" Text='<%# Bind("Subject") %>'
               Label='<%# Container.Appointment.Owner.Localization.AdvancedSubject%>'>
           </telerik:RadTextBox>
           <p>
               Custom content here...
           </p>
           <asp:Panel runat="server" ID="Panel1" CssClass="rsAdvancedSubmitArea">
               <div class="rsAdvButtonWrapper">
                   <asp:LinkButton CommandName="Update" runat="server" ID="LinkButton2" CssClass="rsAdvEditSave">
<span><%# Container.Appointment.Owner.Localization.Save%></span>
                   </asp:LinkButton>
                   <asp:LinkButton runat="server" ID="LinkButton3" CssClass="rsAdvEditCancel" CommandName="Cancel"
                       CausesValidation="false">
<span><%# Container.Appointment.Owner.Localization.Cancel%></span>
                   </asp:LinkButton>
               </div>
           </asp:Panel>
       </div>
   </div>
</AdvancedEditTemplate>

7 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 14 Jun 2012, 05:55 AM
Hi Steven,

You can override the default CSS using "!important" as follows.

CSS:
<style type="text/css">
 .RadScheduler .rsAdvancedEdit
  {
   position: relative !important;
  }
 .RadScheduler .rsAdvancedEdit .rsAdvTitle
  {
   your own style
  }
 .RadScheduler .rsAdvancedEdit .rsAdvInnerTitle
  {
   your own style
  }
 .RadScheduler .rsAdvancedEdit .rsAdvEditClose
  {
   your own style
  }
 .RadScheduler .rsAdvancedModal
  {
   your own style
  }
 .RadScheduler .rsModalBgTopLeft, .RadScheduler .rsModalBgTopRight, .RadScheduler .rsModalBgBottomLeft, .RadScheduler .rsModalBgBottomRight
  {
   your own style
  }
 .RadScheduler .rsAdvancedEdit .rsAdvancedSubmitArea
  {
   your own style
  }
 .RadScheduler .rsAdvancedEdit div.rsAdvancedSubmitArea a.rsAdvEditSave
  {
   your own style
  }
 .RadScheduler .rsAdvEditClose
  {
   your own style
  }
</style>

Hope this helps.

Thanks,
Shinu.
0
Steven
Top achievements
Rank 1
answered on 18 Jun 2012, 08:19 PM
When I use this method, how do I access the Save and Cancel buttons?  I see they have a commandname but I do not know how to write code for when the user clicks save.

Edit: This event handles it:
schMasterScheduler_AppointmentUpdate
0
Steven
Top achievements
Rank 1
answered on 18 Jun 2012, 08:35 PM
How do I access the controls inside of the popup?
0
Peter
Telerik team
answered on 19 Jun 2012, 12:42 PM
Hello Steven,

Please, review the help topics on Customizing the advanced form using:
To your original questions, the styles are automatically served as embedded resources by RadScheduler. If you want to override them, you need to set EnableEmbeddedBaseStylesheet="false" for RadScheduler and manually register the css file. Instructions on this can be found here.


Regards,
Peter
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
khadeer
Top achievements
Rank 1
answered on 30 Mar 2016, 12:04 PM
Can u please share the default css for advanced form 
0
khadeer
Top achievements
Rank 1
answered on 30 Mar 2016, 12:11 PM

as am using multiple radschedulers i can't able to show the delete confirmation popup in the middle of the screen/above all the scheduler. Can any one help me in this??

 

0
Ivan Danchev
Telerik team
answered on 04 Apr 2016, 08:14 AM
Hello,

You can find the styles for the advanced form in the Scheduler.css file located in: {Default Installation Path}\Telerik\UI for ASP.NET AJAX {version}\Skins

As for the issue with the dialog being cut off by the next Scheduler on the page you can apply the following CSS rule to remedy that:
html .RadScheduler,
html .RadScheduler .rsTopWrap {
    overflow: visible;
}


Regards,
Ivan Danchev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Scheduler
Asked by
Steven
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Steven
Top achievements
Rank 1
Peter
Telerik team
khadeer
Top achievements
Rank 1
Ivan Danchev
Telerik team
Share this question
or