Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
330 views

Hi,

I am using the scheduler control for a project, and I am quite new to it, your guidance on below 3 problems would be very helpful.

I have a list of free time, and time booked for appointment etc. Now based on this the remaining timeslots should be disabled. 
i.e. for example if for today I have my time available from say 9:00 AM to 10:00AM then an appointment from 10:00AM to 12:AM and then a available time from 12:PM to 3:00PM . except for these time the remaining timeslots should be disabled. How can I achieve this.

I am loading the appointment from the server side, hence using the TimeSlotCreated event I was not able to change the timeslots.

Also if you can help me on how to add a tooltip to the available timeslots(in the above example 9:00AM to 10:00AM, I have to show a tool tip as say "available from 9:00AM - 10:00AM".

 

Third how can I clear a scheduler, say today I have data in scheduler horizontally 3 users in header and each having some appointment, when I move to next day if there are no users and no appointment, I want to clear the scheduler so that the old data is removed. I Tried to clear using below code, but still the see that the header and appointment persist.

DiarySchedule.ResourceTypes.Clear();
Appointments.Clear();
DiarySchedule.DataKeyField = "ID";
DiarySchedule.DataStartField = "Start";
DiarySchedule.DataEndField = "End";
DiarySchedule.DataSubjectField = "Subject";
DiarySchedule.DataDescriptionField = "Description";
DiarySchedule.DataRecurrenceField = "RecurrenceRule";
DiarySchedule.DataRecurrenceParentKeyField = "RecurrenceParentID";
DiarySchedule.DataSource = Appointments;


Thank you

Arvind

 

Ibrahim
Top achievements
Rank 1
 answered on 11 Apr 2016
3 answers
142 views
I have the following telerik grid and need to pass the data value from the nested table into the ItemCommand so when
the user clicks the grid button the code is executed I am stuck on where to go with this

<telerik:RadGrid ID="grdRegions" runat="server" Skin="Metro" AllowCustomSorting="True"
                ShowHeader="True" PageSize="10" ShowGroupPanel="False"     OnItemCommand="grdRegions_ItemCommand"
                ShowStatusBar="True" AutoGenerateColumns="False"
                AllowSorting="True" AllowPaging="True" DataSourceID="RegionDS" Width="500px">
                <PagerStyle Mode="Slider" />
                <MasterTableView DataSourceID="RegionDS" DataKeyNames="RegionCode" AllowMultiColumnSorting="True" Width="100%">

                    <DetailTables>
                        <telerik:GridTableView runat="server" DataKeyNames="RegionCode,DealerId" DataSourceID="DealerDS" AllowFilteringByColumn="True" >
                            <ParentTableRelation>
                                <telerik:GridRelationFields DetailKeyField="RegionCode" MasterKeyField="RegionCode"  />
                            </ParentTableRelation>
                            <Columns>
                                <telerik:GridBoundColumn SortExpression="DealerId" HeaderText="Dealer" HeaderButtonType="TextButton"
                                    DataField="Dealer" UniqueName="DealerId">
                                </telerik:GridBoundColumn>

                                <telerik:GridBoundColumn SortExpression="RegionCode" HeaderText="FDAF Region Code" HeaderButtonType="TextButton"
                                    DataField="RegionCode" UniqueName="RegionCode" AllowFiltering="False">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="DealerId" HeaderText="DealerId" HeaderButtonType="TextButton"
                                    DataField="DealerId" UniqueName="Dealer">
                                </telerik:GridBoundColumn>
                               <telerik:GridTemplateColumn ItemStyle-Width="22px" AllowFiltering="false">
                                <ItemTemplate>
                                    <asp:ImageButton ID="EditDealer" runat="server" AlternateText="Edit Dealer" ToolTip="Edit Dealer"
                                        ImageUrl="Images/edit.png" CommandArgument='<%# DataBinder.Eval(Container,"DataItem.DealerId")%>'
                                        CommandName="EditDealer" CausesValidation="false" />
                                </ItemTemplate>
                                <ItemStyle Width="22px"></ItemStyle>
                            </telerik:GridTemplateColumn>
                            </Columns>
                        </telerik:GridTableView>
                    </DetailTables>
                    <Columns>
                        <telerik:GridBoundColumn SortExpression="RegionName" HeaderText="FDAF Region" HeaderButtonType="TextButton"
                            DataField="RegionName" UniqueName="RegionName" AllowFiltering="False">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="RegionCode" HeaderText="FDAF Region Code" HeaderButtonType="TextButton"
                            DataField="RegionCode" UniqueName="RegionCode">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="RegionDealerCount" HeaderText="Dealers In Region" HeaderButtonType="TextButton"
                            DataField="RegionDealerCount" UniqueName="RegionDealerCount" AllowFiltering="False">
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>






                     protected void grdRegions_ItemCommand(object sender, GridCommandEventArgs e)
                        {
                            objDealerDL.DealerId = Convert.ToInt32((e.Item as GridDataItem).OwnerTableView.DataKeyValues[e.Item.ItemIndex]["DealerId"].ToString());
                            GridDataItem item = (GridDataItem)e.Item;                       
                            if (e.CommandName == "EditDealer")
                            {
                                try
                                {
                                  do work
                                }
                                catch (Exception ex)
                                {

                                }
                            }
                        }
Eyup
Telerik team
 answered on 11 Apr 2016
5 answers
308 views
When you click and open a radgrid date picker, you need to click on the date at top to get another window to open so that you can pick the button with todays date.

1.  How do you seet that button with todays date.  I went into the properties but can never find the right syntax for it to take.
2. Is there a way to put it on the datepicker at the bottom such as the Microsoft one that has it at the bottom so there is no need to pick agian to get to todays date button.
Eyup
Telerik team
 answered on 11 Apr 2016
3 answers
117 views

Hi

I am new to Telerik I am looking for working independent sample  project or web site of Scheduler - Resource Grouping (http://demos.telerik.com/aspnet-ajax/scheduler/examples/resourcegrouping/defaultcs.aspx?skin=Silk).  Where can I download such a sample?

Thanks

abahrami

Nencho
Telerik team
 answered on 11 Apr 2016
2 answers
223 views

Hi,

We are using Telerik Web UI for AJAX (version 2015.2.729.45). In grid we have data with double quotes (") and filter control is TextBox. Searching text with double quotes fails the search.

please see the attachment.

Code being used - Using the aspx standard script.

 <telerik:GridBoundColumn DataField="Name" HeaderText="Header" UniqueName="Name" FilterControlWidth="260px" AllowFiltering="true" ShowFilterIcon="false" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" />

Kindly let us know for the solution.

Thanks.

Neelesh

Eyup
Telerik team
 answered on 11 Apr 2016
1 answer
119 views
Good morning, we are refining their controls and we have a problem with RadSearchBox, this control does not support the ('Ñ') character , and when to return a result with the same shows nothing.

there is a way I can use that character?

For in Spain and Latin America it is all used
Veselin Tsvetanov
Telerik team
 answered on 11 Apr 2016
1 answer
226 views

Hello,

we have updated one of our solutions from .NET 3.5 to 4.0 with a new Telerik version. Right now we are having an critical issue we are not able to solve.

We are opening an selection form in an modal dialog. All available items are displayed in an GridView where the user can select a single item. On post back the form is handing the user selection back to the previous form. From the theory quite easy going. Right now we have recognized an ciritical issue with our post back.

On postback we are loosing the ViewState and the ControlState of the GridView. Due to this case, it will reload the data source, without the selected sort, filter and page options and returns the wrong user selection.

For example:

If we select the 3rd item on page 2, while all items are sorted alphabetically ascending, it will return the 3rd item from the datasource, without any filtering, paging, or sorting. So on postback the selected page is always 0, the sort order null... filtering null.

This strange behaviour only occurs in modal dialogs. If we do use the same kind of grid (cause it's based on a adapter pattern will complete same implementation) it will work correctly.

Grid implementation:

<telerik:RadAjaxManagerProxy  ID="AjaxManagerProxy" runat="server" >
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="PanelButtonBar">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="PanelButtonBar" LoadingPanelID="RadAjaxLoadingPanel1"/>
                <telerik:AjaxUpdatedControl ControlID="pnlMessage"/>
                <telerik:AjaxUpdatedControl ControlID="RadWindowManagerInGrid" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="Grid">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="Grid" LoadingPanelID="RadAjaxLoadingPanel1"/>
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

If you already know this kind of issue and fixed it, please let me know. I realy do require an idea :)

Best Regards,

Jan

 

Konstantin Dikov
Telerik team
 answered on 11 Apr 2016
7 answers
165 views
We've just upgraded the controls we're using from Q2 to Q3 and note that the font used in the RadSplitter seems to have changed from 'Arial, Helvetica, sans-serif' to '"Segoe UI", Arial, Helvetica, sans-serif'.

There was no mention of this in the release docs.

I have to say I consider changes to things like colours and fonts at least as important as changes to functionality and, therefore worth of note in the docs.

You may consider it a petty complaint, but end-users get really up-tight about things like this if they're not forwarned, and as I have to explain these changes to those further up the food chain internally, it'd be nice to get some advance warning.

--
Stuart
Vessy
Telerik team
 answered on 11 Apr 2016
15 answers
451 views
Hello,

I'm using an instance of the Telerik.Web.UI.Appointment class and the RadScheduler.ExportToICalendar method to export as iCalendar.
I managed to set basics properties of my appointement:
                    Appointment objAppointment = new Appointment()
                            {
                                Subject = "TEST",
                                Start = datStart,
                                End = datStart.AddHours(2)
                            };
and to get the ics file which is readable by Outlook.
But I'd like to set some advanced properties like a reminder.
I've open an other ics which has a 2 days reminder and I can see the following code:
BEGIN:VALARM
TRIGGER:-PT2880M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM

How can I produce something like that with the Appointment's members?

Thanks.
Plamen
Telerik team
 answered on 11 Apr 2016
3 answers
144 views
Ok So I have got the valarm text saving to db thanks to amazing support here but the reminder dialog refuses to show
01.<asp:UpdatePanel ID="UpdatePanel1" runat="server">
02.                          <ContentTemplate>
03.                              <div>
04.                                  <legend>Calendar Layout</legend>
05.                                  <asp:RadioButtonList ID="rbDisplay" CellSpacing="5" AutoPostBack="true" RepeatDirection="Horizontal" runat="server">
06.                                      <asp:ListItem Value="1"> Verticle </asp:ListItem>
07.                                      <asp:ListItem Value="2"> Horizontal </asp:ListItem>
08.                                  </asp:RadioButtonList>
09.                              </div>
10.                              <telerik:RadScheduler OnTimeSlotCreated="apertureAppointments_TimeSlotCreated" OverflowBehavior="Auto" runat="server" WeekView-ShowDateHeaders="true" ID="apertureAppointments"
11.                                  TimelineView-UserSelectable="false" DayView-UserSelectable="true" AgendaView-UserSelectable="True" DataKeyField="ID" DataSubjectField="Subject" AllowInsert="false" AllowDelete="false" AllowEdit="false"
12.                                  DataStartField="Start" DataEndField="End" DataRecurrenceField="RecurrenceRule" DayView-EnableExactTimeRendering="true" WeekView-UserSelectable="True" SelectedView="WeekView"
13.                                  DataRecurrenceParentKeyField="RecurrenceParentID" DataSourceID="EntityDataSource1" StartInsertingInAdvancedForm="True" MonthView-UserSelectable="True" AgendaView-NumberOfDays="5" RowHeight="40px"
14.                                  RenderMode="Classic" EnableExactTimeRendering="True" Reminders-Enabled="true" Width="800px" Height="1000px" EnableDatePicker="true" ShowHeader="true"
15.                                  DayStartTime="09:00:00" ShowFooter="false" DayEndTime="18:00" FirstDayOfWeek="Monday" LastDayOfWeek="Friday" HoursPanelTimeFormat="HH:mm tt" OnAppointmentClick="apertureAppointments_AppointmentClick" OnTimeSlotContextMenuItemClicking="apertureAppointments_TimeSlotContextMenuItemClicking"
16.                                  EnableDescriptionField="true" AppointmentStyleMode="Default" Skin="Metro">
17. 
18.                                  <AdvancedForm Modal="True" />
19. 
20.                                  <TimeSlotContextMenuSettings EnableDefault="false" />
21.                                  <AppointmentContextMenuSettings EnableDefault="false" />
22.                                  <DayView EnableExactTimeRendering="True" />
23.                                  <AdvancedForm Modal="true"></AdvancedForm>
24. 
25.                                  <ResourceTypes>
26.                                      <telerik:ResourceType KeyField="lookup_code" Name="Managers" TextField="lookup_description" ForeignKeyField="managerId"
27.                                          DataSourceID="ManagersDataSource"></telerik:ResourceType>
28.                                  </ResourceTypes>
29.                                  <ResourceStyles>
30.                                      <%--AppointmentStyleMode must be explicitly set to Default (see above) otherwise setting BackColor/BorderColor
31.                          will switch the appointments to Simple rendering (no rounded corners and gradients)--%>
32.                                      <telerik:ResourceStyleMapping Type="Managers" Text="Natalie Edgar"
33.                                          BackColor="#512479" ApplyCssClass="appointment" />
34.                                      <telerik:ResourceStyleMapping Type="Managers" Text="Clare Coyle"
35.                                          BackColor="#512479" ApplyCssClass="appointment" />
36.                                      <telerik:ResourceStyleMapping Type="Managers" Text="Christine Clarke"
37.                                          BackColor="#512479" ApplyCssClass="appointment" />
38.                                      <telerik:ResourceStyleMapping Type="Managers" Text="Adam Adair"
39.                                          BackColor="#512479" ApplyCssClass="appointment" />
40.                                  </ResourceStyles>
41.                              </telerik:RadScheduler>
42.                          </ContentTemplate>
43.                      </asp:UpdatePanel>
44. 
45.                      <asp:EntityDataSource runat="server" ID="EntityDataSource1" ConnectionString="name=aperturenetEntities"
46.                          DefaultContainerName="aperturenetEntities" EntitySetName="Appointments" EnableDelete="true"
47.                          EnableInsert="true" EnableUpdate="true">
48.                      </asp:EntityDataSource>
49. 
50.                      <asp:SqlDataSource ID="RoomsDataSource" runat="server"
51.                          ProviderName="System.Data.SqlClient" ConnectionString="<%$ ConnectionStrings:aperturenetSql %>"
52.                          SelectCommand="SELECT * FROM [Rooms]"></asp:SqlDataSource>
53. 
54.                      <asp:SqlDataSource ID="ManagersDataSource" runat="server"
55.                          ConnectionString="<%$ ConnectionStrings:aperturenetSql %>" SelectCommand="SELECT * FROM [tblApertureNetLookUps] WHERE lookup_type='11787CA6-DE99-4E0E-83D2-7D96E0FD11A3'"></asp:SqlDataSource>

 

Now i dont no why its not firing as per the demo but the dialog is not appearing when it should have tested it but no ball

 

Veselin Tsvetanov
Telerik team
 answered on 11 Apr 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?