Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
198 views

Is there any way to create an AppointmentCollection and manually fill with Appointment objects, along the lines of:

Create new AppointmentCollection
Grab Appointments from database
Loop through, add new Appointment objects to AppointmentCollection
Call AppointmentCollection.GetAppointmentsInRange

Currently I am doing this, but there must be an easier way to do without having to use a RadScheduler.

                // Check for a conflict                  
                var appointments = dc.Appointments.Select(b => b.IsCancelled == false);  
                RadScheduler scheduler = new RadScheduler();  
                scheduler.DataKeyField = "AppointmentID";  
                scheduler.DataSubjectField = "Subject";  
                scheduler.DataStartField = "Start";  
                scheduler.DataEndField = "End";  
                scheduler.DataRecurrenceField = "RecurrenceRule";  
                scheduler.DataRecurrenceParentKeyField = "RecurrenceParentID";  
                scheduler.DataSource = appointments;  
                scheduler.DataBind();  
 
                return scheduler.Appointments.GetAppointmentsInRange(startTime, endTime).Count == 0; 


Cheers,
Mike

Plamen
Telerik team
 answered on 01 Nov 2012
1 answer
171 views
I'm exporting to excel using biff format and I need to implement the below.
1) How do I group ceratin column names and assign a group name to them. This group header name needs to span the columns grouped and appear at the top. Please see my sample excel sheet attached.

2) how do I specify different colors for different columns in the exported excel sheet while exporting to excel in radgrid. I do not want to use html formatting due to excel warning message.

Please help with code.
Kostadin
Telerik team
 answered on 01 Nov 2012
1 answer
191 views
Hi,

I've a radgrid and I export the contents to PDf.

1) How do I auto-fit my page height and page width to the data. I do not want to hard code values for page height and page width in my aspx. PDF need to automatically adjust according to the data in the grid.

2) How do I automatically open up a pdf with "75%" resolution while clicking the' export to PDF" button

Please explain with code samples.
Kostadin
Telerik team
 answered on 01 Nov 2012
1 answer
185 views
We are using RadNumericTextBox with decimal digits allowed:(see the markup below)

<telerik:RadNumericTextBox ID="txtSomeData" runat="server"
    Font-Names="tahoma, sans-serif" Font-Size="11px"
    MaxLength="5" MaxValue="24" MinValue="0" Width="90px"
    ShowSpinButtons="true" Type="Number" Value="0.0">
    <NumberFormat DecimalDigits="2" PositivePattern="n hours" DecimalSeparator="." AllowRounding="true" />
    <InvalidStyle ForeColor="Crimson" />
    <EnabledStyle HorizontalAlign="Center" CssClass="fieldlabelSmall" />
</telerik:RadNumericTextBox>

The problem we are facing is, when we manually put a decimal value, while using spin button to increment/ decrement, the value wont increase/ decrease after a random number.
e.g. type 5.2 in text box now try to decrease by clicking on down arrow(spin button), for me it wont decrease beyond 2.2
similarly for decimal value of 2 digit, problem would occur for both increment and decrement.(for me on giving 12.44, it give problem at 8.44 on decreasing and 15.44 on increasing)

Version Used: 2012.1.215.35
DFal
Top achievements
Rank 1
 answered on 01 Nov 2012
1 answer
60 views
Hi All,

I am using Custom Dropdown into RadEditor. I want to Set SelectedValue for this dropdown. i have attached image please check and let me know ASAP.

Thanks in Advance,
Dhamu
Rumen
Telerik team
 answered on 01 Nov 2012
1 answer
64 views
When i move mouse over my Grid a strange sign appears below it, like a small white square. See the attachments.
It appears in any browser and in any machine.
How can i remove it?
Eyup
Telerik team
 answered on 01 Nov 2012
1 answer
76 views
I'm still trying to wrap my head around this concept. 

For starters I have a RadGrid populated through the NeedDataSource.  I have it set up to edit individual records through a FormTemplate.  So far so good.  I can insert and update records.

What I need is to is add an attachment to each record in a varbinary(MAX) field.  The RadAsyncUpload control has to be within the FormTemplate.

Do I understand the process correctly? 

The RadAsyncUpload control will upload the object (most likely a doc) to a temp folder on the web application's server.  The OnFileUploaded event will then allow me to convert the file to a binary array which can be accessed from the RadGrid1_InsertCommand and added to the inserted record there?
Plamen
Telerik team
 answered on 01 Nov 2012
8 answers
139 views
Greetings, 

Yours PivotGrid is awesome, but would you mind to tell me eta on following functionality:
  • DrillDown (Recieve a part of datasource which fills the cell value);
  • Inline editor

Best Regards, Alex D.
Radoslav
Telerik team
 answered on 01 Nov 2012
1 answer
122 views
Hi
     In my radgrid, the commanditemtemplate consist of 'Add new record' and ;refresh' buttons. I would like to change the font size of those link buttons to large. Can anybody help me accomplish this.
Thanks in advance
RT
Shinu
Top achievements
Rank 2
 answered on 01 Nov 2012
1 answer
63 views
i am binding a dataTable. 

  1. How to re arrange views in this order DayView-WeekView-MultiDayView -MonthView- TimelineView

I want to do some work when i move my mouse over the appointment like displaying delete image on hover.

2. But there is no onmouseover event for the appointment. How can i achieve this.

3. I have multiple appoitnments on oct 1st. In my month view its not showing properly.But in Day view its showing properly.

 I have attached the Image.

Here is my RadSchedular code.
 
<telerik:RadScheduler ID="radScheduler" runat="server" Height="90%" Skin="Forest" EnableEmbeddedSkins="False"
                OnAppointmentCreated="radScheduler_AppointmentCreated" OnAppointmentDataBound="radScheduler_AppointmentDataBound"
                OnNavigationComplete="radScheduler_NavigationComplete" EnableResourceEditing="False" OnClientAppointmentDoubleClick="appointmentDoubleClick"
                AdvancedForm-Enabled="false" AllowInsert="False" RowHeight="20px" Localization-HeaderMultiDay="Work Week"
                NumberOfHoveredRows="1" EnableAdvancedForm="False" SelectedView="MonthView" EnableExactTimeRendering="True" Width="100%" >
 
                <AdvancedForm Modal="false" Enabled="false" />
 
                <DayView DayStartTime="08:00:00"  EnableExactTimeRendering="true" />
 
                <MonthView VisibleAppointmentsPerDay="4" />
 
                <WeekView DayStartTime="08:00:00" EnableExactTimeRendering="true" />
 
                <MultiDayView DayStartTime="08:00:00" UserSelectable="true" NumberOfDays="5" />
 
                <Localization HeaderMultiDay="Work Week"></Localization>
 
                <TimelineView SlotDuration="1:00:00" ColumnHeaderDateFormat="HH:mm" EnableExactTimeRendering="True" NumberOfSlots="7" />
 
                <Reminders Enabled="true" />
 
                <AppointmentTemplate>
 
                    <div style="float: left;">
                        <a id="achSubject" href="javascript:alert('Navigate to Open Appointment')">
                            <%# Eval("Subject") %>
                        </a>
                    </div>
                    <div>
                        <div class="rsAptReminder" style="display: <%# Eval("alarm_on") %>"></div>
                        <%--<img alt="" src="Images/reminder.gif" height="16px" width="16px" style="display: <%# Eval("alarm_on") %>" />--%>
                    </div>
                    <div class="rsAptAct" style="padding-left: 2px; float: left; padding-top:2px; vertical-align:bottom;"">
                        <img alt="" width="12px" height="10px"  src="<%# AppointmentTypeImage(Eval("act_type")) %>" />
                    </div>
                    <div style="float: left; padding-left: 0px;">
                        <div style="float: left; display: <%# AppointmentRecuuringImage(Eval("recurring_id"),Eval("outlook_recurrence_id_range")) %>;" class="rsAptRecurrence">
                        </div>
                        <%--<img alt="" height="16px" width="16px" src="Images/recur.gif" style="display: <%# AppointmentRecuuringImage(Eval("recurring_id"),Eval("outlook_recurrence_id_range")) %>" />--%>
                    </div>
                </AppointmentTemplate>
</telerik:RadScheduler>
Bhas
Top achievements
Rank 1
 answered on 01 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?