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

Hello,

I have a Server binded Scheduler with a Timeline View set to group by but it does not work.

My ASPX code:
    <telerik:RadScheduler runat="server" ID="RadScheduler1" EnableAdvancedForm="false" AllowDelete="false"
        AllowEdit="false" AllowInsert="false" CssClass="test" ShowFooter="false"          
        SelectedView="TimelineView" Height="500"
        onappointmentdatabound="RadScheduler1_AppointmentDataBound"
        OnResourcesPopulating="RadScheduler1_ResourcesPopulating"  >

  <WebServiceSettings  Path="~/Controllers/SchedulerWebService.asmx" ResourcePopulationMode="ServerSide" />
        <TimelineView GroupingDirection="Vertical" NumberOfSlots="31"
                      ColumnHeaderDateFormat="dd" GroupBy="Car"  />                                                 
        <AdvancedForm Modal="false" />       
        <MultiDayView UserSelectable="false" />       
        <MonthView UserSelectable="true" />
        <WeekView UserSelectable="true" />
        <DayView  UserSelectable="true"  />
   
My code behind code:
        protected void Page_Load(object sender, EventArgs e)
        {                       
            List<Model> list = facade.List();
            foreach (Model obj in list)
            {
                RadScheduler1.Resources.Add(new Resource("Car", 
                    obj.Id, obj.BuyDate.ToString("dd/MM/yyyy")));
            }
        }

in the Web Service code I have implemented the GetAppointments and the GetResources methods. The GetAppointments returns a list of AppointmentData  objects which are created in this way:
                    AppointmentData appointment = new AppointmentData();                   
                    appointment.ID = obj.ID;
                    ResourceData rd= new ResourceData();
                    rd.Key=appointment.ID;
                    appointment.Resources.Add(rd);
                    appointment.Subject = obj.ID;
                    appointment.Start = obj.Visit;
                    appointment.End = appointment.Start.AddHours(8);
                    appointments.Add(appointment);

What I'm getting with this code is a Scheduler with the added resources in the first column but it does not show the appointments.
Please hellp me with this control. Thanks.

javier
Top achievements
Rank 1
 answered on 16 Oct 2013
2 answers
80 views
For the most part the Scheduler looks good with the Metro Touch skin.

However, there are a few issues such as the width of date pickers. Also, the checkboxes are not consistent with the Metro Touch style.

I have attached a sample screen shot. Is there a full CSS class document on the RadScheduler dialogs so that I can go in and make adjustments?

Thanks
Michael H
Top achievements
Rank 2
 answered on 16 Oct 2013
0 answers
106 views
I have a Radlistbox that I add items to manually, then I have a tooltip that contains the same items in a combobox. 

Once I add the item to the Radlist box and popup the tooltip it does not contain the newly added items.  How can I get the combobox in the tooltip to refresh?  I tried a databind on the combobox in the tooltip init and load and it only fires on the page load not when the actually tooltip is initiated.  I even tried a databind of the combo boxes after adding the item in the radlistbox and nothing.  the radlistbox is updating and rebinding correctly but the comboboxes are not?  I am guessing its because they are in a tooltip.  All of these controls are inside an radajaxpanel.  vb.net. 

Thanks for any suggestions.

ETA: Nevermind figured out I can do a databind in ItemsRequested.
Stefan
Top achievements
Rank 2
 asked on 16 Oct 2013
2 answers
145 views
Hi Team Telerik,

Is there an event to which I can subscribe that creates the new row on the client side in batch editing mode so that I can add custom logic? I need to execute a JavaScript function when the user clicks the add record button in batch editing mode. Is this possible?

Thanks in advance,
Jonathan
Jonathan
Top achievements
Rank 1
 answered on 16 Oct 2013
6 answers
255 views
Hi,

I'm trying to use asp:radiobuttons in a radgridview, but I'm experiencing some problems. On each row two radiobuttons for male/female. When not in Editmode they have to be disabled, when in editmode they have to be enabled.
I use the code-behind function OnItemDataBound to "translate" to databasevalue M or F to check the right radiobutton. So far so good.
in my .aspx file:

<telerik

:GridTemplateColumn HeaderText="Male" UniqueName="Gender"> <ItemTemplate>
 <asp:RadioButton ID="RadioButtonMaleItem" runat="server" GroupName="" Enabled="false"/>
</ItemTemplate>
<EditItemTemplate>
<asp:RadioButton ID="RadioButtonMaleEditItem" runat="server" GroupName="MF" />
</
EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Female" UniqueName="Female">
<
ItemTemplate>
<asp:RadioButton ID="RadioButtonFemaleItem" runat="server" GroupName="MF" Enabled="false" />
</ItemTemplate>
<EditItemTemplate>
<asp:RadioButton ID="RadioButtonFemaleItem" runat="server" GroupName="MF" />
</EditItemTemplate>
</telerik:GridTemplateColumn>

When I switch to EditMode the radiobuttons on the editrow are both unchecked how come? And how can I read the new checked value and update the database (similar to OnItemDataBound, but then the other way around)

regards martin


Ida
Top achievements
Rank 1
 answered on 16 Oct 2013
1 answer
56 views

Hello,
I installed the trial version and started to fit your all kinds of controls but the controls are without formatting and I do not know where to download or installed on my computer where the style / skin of each control.

Is there a way to open a project in VS and in all Hsteilim DLL will already be built in the project?

Vessy
Telerik team
 answered on 16 Oct 2013
1 answer
155 views

I have a combo with load on demand and I refresh via javascript. What I want is the combo to populate items and then go and selected item that matches a value id. So for example:

  OlinCA.loadStates = function (country, selectedState) {
    var rcbContactState = $find("<%= rcbContactState.ClientID %>");
    rcbContactState.set_text("Loading...");
    rcbContactState.clearSelection();
    rcbContactState.requestItems((country + '~' + selectedState), false);
    rcbContactState.findItemByValue(selectedState).select();
}


As you see I am passing a value to populate the combo by a selected country and then select a matching state. Well every time I call that findItemByValue I get an error because that line fires before the list is populated. I need somehow to have the load request finish first. I tried to select a value via the server side code, but nothing gets selected. What is the way I can do the selection like I need to?



Hristo Valyavicharski
Telerik team
 answered on 16 Oct 2013
1 answer
136 views
Hi, I am new to the rad controls. I am using RadScheduler to creat a view where it is possible to see 5 exchange Room calendars grouped. I already accomplished to creat the view with 5 calendars. I also accomplished to show one calendar but only when I am not using the groupby And resources (so only in the standard view). Can anyone help me to sync with 5 calendars instead of one And assing each calendar appointment to the right room. If it easier to understand I can post my code. Thanks!!
Boyan Dimitrov
Telerik team
 answered on 16 Oct 2013
4 answers
97 views
Trying to utilize the RadPanelBar but I need it controlled by a RadDropDownList.  I am unsure of how to do this via the code-behind because there is no "ID" associated with them.  Currently they are set to visible=false but would like to make them visible when a user changes the DropDownList. 

If option 1 then show these RadPanelBar options
If Option 2 then show these RadPanelBar options,
etc...
Kurt Kluth
Top achievements
Rank 1
 answered on 16 Oct 2013
4 answers
106 views
Hello,

 

I have a problem with the RadScheduler control. When I move an appointment, sometime, the new start time is false…

 

I test with args.get_newStartTime() (client side) and e.ModifiedAppointment.Start (server side) and the twice send me the same value.


<telerik:RadScriptBlock runat="server">
                <script type="text/javascript">
 
                    function onAppointmentMoveEnd(sender, args)
                    {
                        alert(args.get_newStartTime());
                    }
                     
                </script>
            </telerik:RadScriptBlock>
 
            <div>
                <telerik:RadScheduler OnClientAppointmentMoveEnd="onAppointmentMoveEnd" runat="server"
                    ID="schPlanning" DataKeyField="Libelle" DataSubjectField="SujetEvenement"
                    DataDescriptionField="Libelle" DataStartField="Debut" DataEndField="Fin" Height="1000px">
                </telerik:RadScheduler>
            </div>

public partial class Calendrier : Page
{
    private void schPlanning_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)
    {
        DateTime newStartTime = e.ModifiedAppointment.Start;
 
        // Alert(newStartTime)
    }
     
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
         
        schPlanning.AppointmentUpdate += new AppointmentUpdateEventHandler(schPlanning_AppointmentUpdate);
    }
 
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            List<Evenement> evenements = new List<Evenement>();
 
            evenements.Add(new Evenement("Sujet", "Libelle", DateTime.Now.Date.AddHours(15), DateTime.Now.Date.AddHours(17)));
 
            schPlanning.DataSource = evenements;
        }
    }
}
 
public class Evenement
{
    public string SujetEvenement { get; set; }
 
    public string Libelle { get; set; }
 
    public DateTime Debut { get; set; }
 
    public DateTime Fin { get; set; }
 
    public Evenement(string sujetEvenement, string libelle, DateTime debut, DateTime fin)
    {
        SujetEvenement = sujetEvenement;
        Libelle = libelle;
        Debut = debut;
        Fin = fin;
    }
}

I join a screenshot when I have the error.

 

Information:

- Telerik 2013.2.717.35

- Internet Explorer 9.0.8112.16421

 

Sorry for my approximate English, I’m French.

 

Jérémy

CabinetZulian
Top achievements
Rank 1
 answered on 16 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?