Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
163 views

I've just used the radSheduler for the first time and was impressed at how easy it was to setup from the on-line examples and demos. I am however experiencing one small problem with setting styles. I used the Telerik documentation on the subject here and everything seemed ok except that my styles are ignored but I can't figure out what I've missed.

Here is my aspx code for the Scheduler (it uses a SQLDataSource:

<telerik:RadScheduler ID="RadScheduler1" StartEditingInAdvancedForm="false" EnableExactTimeRendering="true"
    OnClientAppointmentEditing="AppointmentEditing" OnClientAppointmentInserting="AppointmentInserting"
    DataSourceID="ds_Logbook" DataDescriptionField="ProgComment"
    DataEndField="StopDate" DataKeyField="Logbook_Id" DataStartField="StartDate"
    DataSubjectField="ActivityDescription" SelectedView="MonthView" Height="100%" runat="server">
</telerik:RadScheduler>

 

Here is the DataBound event in the codebehind: 

Protected Sub RadScheduler1_AppointmentDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerEventArgs) Handles RadScheduler1.AppointmentDataBound
    e.Appointment.CssClass = "rsCategory" + Replace(e.Appointment.Subject, " ", "")
End Sub

 

Here is the CSS:  

.rsCategoryActivity1 {
    background-color: Blue;
    border-color: Blue;
    border-style: dotted;
    border-width: thin;
}
 
.rsCategoryActivity2 {
    background-color: Green;
    border-color: Green;
    border-style: dotted;
    border-width: thin;
}
 
.rsCategoryActivity3 {
    background-color: Yellow;
    border-color: Yellow;
    border-style: dotted;
    border-width: thin;
}
 
.rsCategoryActivity4 {
    background-color: Red;
    border-color: Red;
    border-style: dotted;
    border-width: thin;
}
 
.rsCategoryActivity5 {
    background-color: Orange;
    border-color: Orange;
    border-style: dotted;
    border-width: thin;
}

and here is a rendered appointment that should be shown in red but just shows up in the default skin colours:

<div id="RadScheduler1_3_0" title="Activity 4" class="rsApt rsCategoryActivity4" style="height:21px;width:500%;">
    <div class="rsAptOut" style="height:21px;">
        <div class="rsAptMid">
            <div class="rsAptIn">
                <div class="rsAptContent">
                    Activity 4<a class="rsAptDelete" href="#">delete</a>
                </div>
            </div><div class="rsAptResize rsAptResizeStart" style="z-index:80;top:0px;">
                <!-- -->
            </div><div class="rsAptResize rsAptResizeEnd" style="z-index:80;top:0px;">
                <!-- -->
            </div>
        </div>
    </div>
</div>

Can anyone help?

 

 

 

 

Geoff
Top achievements
Rank 1
 answered on 17 Apr 2015
0 answers
104 views

Hi,
I have  customize the inline editor. I want to save data in a database  on clicking  of customize button showing in red circle please see the  attach image. so how can i get the id of customize button so that can i save the data  using jquery.

Please Guide me on this issue.

gaurav
Top achievements
Rank 1
 asked on 17 Apr 2015
3 answers
116 views

Since upgrading to Telerik 2015.1.225.40, the Scheduler adds a horizontal scroll bar when switched to Week view (see attachment).

Is this a bug and/or is there a way to fix this?

Robert Helm
Top achievements
Rank 1
 answered on 17 Apr 2015
4 answers
788 views

What we currently have is an aspx page that contains a radgrid that allows users to modify a record.  The information is loaded into a user control contained within a javascript/css modal window and I would like to replace it with the RadWindow.  This is currently how it is:

<%@ Register Src="~/Common/camelScoreNotes.ascx" TagName="CamelNotes" TagPrefix="uc1" %>
 <%@ Register Src="~/Common/asiExamNotes.ascx" TagName="AsiNotes" TagPrefix="uc1" %>
<%@ Register Src="~/Common/auditWorkPapers.ascx" TagName="WorkPapers" TagPrefix="uc1" %>

 

<telerik:GridTemplateColumn UniqueName="OpenNotes" HeaderStyle-Width="40px" ItemStyle-HorizontalAlign="Center">
     <ItemTemplate>
          <div id="Div<%# FormatDateTime(Eval("Date"), 2).Replace("/", "")%>" class="audit-notes-window">
               <uc1:CamelNotes NoteDate='<%# Eval("Date").ToString%>' AuditID='<%# _hdnAuditID.Value %>' CamelScore='<%# Eval("CamelCAE_Score")%>' CamelComp='<%# Eval("CAMEL_Comp")%>' CreatedBy='<%# Eval("CreatedByName")%>' runat="server"/>
          </div>
     </ItemTemplate>
</telerik:GridTemplateColumn>
 

First, I am not sure if it is even possible?  Can I only define one RadWindow and still pass the required variables in or would each GridTemplateColumn be a new RadWindow?   Note: that I do have multiple user controls and would like to get them all being edited in a RadWindow; each require that I pass in variables.  Maybe I create 3 RadWindows (one for each of the user controls) and define its contenttemplate as the user control but how could I pass in the required information? 

 Your assistance is appreciated.

Marin Bratanov
Telerik team
 answered on 17 Apr 2015
5 answers
101 views

hi

i have wich it's fill withe some items it's apear in the first pic i wnat items o combobox apear like the second pic and thank you

Magdalena
Telerik team
 answered on 17 Apr 2015
2 answers
306 views

Hi,
I am working on radcombobox and radtreview with checkbox property, where when i am cheking nodes from radtreeview that checked item  text must be shown.but three requirment  that is
1.if parent node is checked all child node must be checked and there text must be shown on radcombobox
2.if any one of child is unchecked then parent node must be unchecked
3.if all child node is checked then automatically parent node must be checked.
without using tristate,and checkchild node property.becoz if i use tristate property then text of parent child is also shown in radcombobox even all child is not checked.

so i want help for 3rd option i.e if all child node is checked then parent node must be checked withoout using tristate property. in my example i have 2 parent each parent have two child so how to identify that this particular parent have some child. 

reason behind to disabled tristate property is if any one of child is checked  then it shows the text of that child aloong with that parent child which i dont want.

​

Magdalena
Telerik team
 answered on 17 Apr 2015
3 answers
277 views

Hi Team,

I am facing an issue with RadAsyncUpload when i upload a file with size 6.22 MB we used to get RED mark as symbol.

But this is not happening all times. only happens sometimes we are getting Red symbol. But at the same time remaining files are uploading  successfully.

We have 6 Web Front servers in our environment. We are using following telerik version. "2012.3.1308.35" . 

Please help me out from this issue. 

Thanks in Advance.

Hristo Valyavicharski
Telerik team
 answered on 17 Apr 2015
7 answers
317 views
Hello,

 I've Sortting  with Date type but use telerik:GridTemplateColumn in radGrid. But it always sort like string type, note date type. My code is:

    <telerik:GridTemplateColumn HeaderText="Date" ItemStyle-Width="100"
                            SortExpression="Date" UniqueName="Date" DataField="Date"
                            CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true"
                            FilterControlWidth="100%">
                            <HeaderStyle Font-Bold="true" />
                            <ItemStyle Width="70" />
                            <ItemTemplate>
                                <%# (ConvertHelper.ToDateTime(Eval("Date"))).ToString("dd.MM.yyyy")%>
                            </ItemTemplate>
                             <EditItemTemplate>
                                <telerik:RadDatePicker ID="rdDate" runat="server" Culture="German (Switzerland)" Width="100"
                                    Skin="abc" EnableEmbeddedSkins="false" SelectedDate='<%# (ConvertHelper.ToDateTime(Eval("Date"))) %>'>
                                    <DateInput Width="70" runat="server">
                                    </DateInput>
                                </telerik:RadDatePicker>
                            </EditItemTemplate>
                        </telerik:GridTemplateColumn>

Please help me sortting in this case. Use <telerik:GridTemplateColumn>.....</telerik:GridTemplateColumn and Sortting by Date Type, not string type.

Thanks, 

Nguyen Quang Hung
Jaya
Top achievements
Rank 1
 answered on 17 Apr 2015
1 answer
112 views

hey guys - this is the code on a "stand alone" rad filter. my question is the alignment. how can I can the "apply button" to stay to the left or at least underneath the actual filter. it seems to have a mind of its own and want's to "drift" to the right.

thanks for any info (pic attached)

rik

 

 

<div style="margin: 0 0 14px 0;">
<table style="width: 100%">
<tr>
<td>
<telerik:RadFilter ID="PostResultsRadFilter" runat="server" Skin="WebBlue" ShowApplyButton="true" Width="200px"
OnApplyExpressions="PostResultsRadFilter_Apply" OnPreRender="PostResults_PreRender" ApplyButtonText="Filter Post Results">
<%--OnPreRender="WorkOrdersRadFilter_PreRender" OnFieldEditorCreating="RadFilter_FieldEditorCreating"--%>
<FieldEditors>
<telerik:RadFilterTextFieldEditor FieldName="JOINTNUMBER" DisplayName="Joint#" DataType="System.String" />
<telerik:RadFilterTextFieldEditor FieldName="DEFECTDESCRIPTION" DisplayName="Defect Desc"
DataType="System.String" />
</FieldEditors>
</telerik:RadFilter>
</td></tr></table></div>

Eyup
Telerik team
 answered on 17 Apr 2015
1 answer
87 views

Hello,

I want to create RadTreeView from java script.

 

I have used below code to create RadTreeView.

var treeview1 = new Telerik.Web.UI.RadTreeView();

 

But I am getting below error.

 

Microsoft JScript runtime error: Unable to set value of the property 'control': object is null or undefined

 

Please help me to create RadTreeView from java script.

 

Peter Filipov
Telerik team
 answered on 17 Apr 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?