Scheduler Keyboard Support gives javascript error

6 posts, 0 answers
  1. it-workz
    it-workz avatar
    22 posts
    Member since:
    Mar 2007

    Posted 20 Oct 2011 Link to this post

    Hi,

    I followed the instructions on the demo page: http://demos.telerik.com/aspnet-ajax/scheduler/examples/keyboardsupport/defaultcs.aspx , but do not get the required result.

    In IE a javascript error is shown: Line: 17846
    Error: Object doesn't support property or method '_getContentTable'

    Line 17846 and surroundings:
    var r=i.KeyboardNavigation.Models.createMap(d.get_activeModel()._getContentTable(),function(u){q=false;
    var w=u.get_targetSlot().get_domElement();
    var v=w.cellIndex;
    var t=w.parentNode.rowIndex;
    m.x=t;
    m.y=v;
    });


    FF and Chrome do not show the javascript error, but no keyboard support eighter.

    Any idea what might cause this?

    Sceduler code:
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadScheduler ID="rs_Planner" runat="server" Culture="Dutch (Netherlands)"  AccessKey="F" TabIndex="1"
        HoursPanelTimeFormat="HHtt" LastDayOfWeek="Sunday" FirstDayOfWeek="Monday" RowHeight="30px" 
        OverflowBehavior="Expand" Width="100%">
        <AppointmentContextMenus>
            <telerik:RadSchedulerContextMenu runat="server" ID="SchedulerAppointmentContextMenu">
                <Items>
                    <telerik:RadMenuItem Text="Ga naar klant" Value="1" />
                    <telerik:RadMenuItem IsSeparator="True" />
                    <telerik:RadMenuItem Text="Niveau aanpassen" Value="2" />
                    <telerik:RadMenuItem IsSeparator="True" />
                    <telerik:RadMenuItem Text="Klant is niet geweest" Value="3" />
                    <telerik:RadMenuItem IsSeparator="True" />
                    <telerik:RadMenuItem Text="Klant toevoegen aan werkvoorraad" Value="4" />
                    <telerik:RadMenuItem IsSeparator="True" />
                    <telerik:RadMenuItem Text="Mail boekingen naar klant" Value="5" />
                    <telerik:RadMenuItem IsSeparator="True" />
                    <telerik:RadMenuItem Text="Losse verkoop aan deze klant" Value="6" />
                </Items>
            </telerik:RadSchedulerContextMenu>
            <telerik:RadSchedulerContextMenu runat="server" ID="RadSchedulerContextMenu1">
                <Items>
                    <telerik:RadMenuItem IsSeparator="True" />
                </Items>
            </telerik:RadSchedulerContextMenu>
        </AppointmentContextMenus>
        <WeekView ColumnHeaderDateFormat="ddd, d MMM" HeaderDateFormat="d-MMM-yyyy" />
        <Localization AdvancedAllDayEvent="All day" AdvancedCalendarCancel="Annuleren" AdvancedCalendarToday="Vandaag"
            HeaderDay="Dag" HeaderMonth="Maand" HeaderToday="Vandaag"></Localization>
        <AdvancedForm DateFormat="d-M-yyyy" TimeFormat="H:mm" Modal="true"></AdvancedForm>
        <AppointmentTemplate>
            <%#GetAppointment(Eval("Onderwerp"), Eval("Plaatsenover"), Eval("start"), Eval("Type"), Eval("Naam"), Eval("Niveau"), Eval("RoosterStatusOmschrijving"), Eval("Boeking"), Eval("RoosterOpmerking"), Eval("Koppel"), Eval("OpenstaandBedrag"), Eval("Geboortedatum"), Eval("AlertMemo"), Eval("lesnummer"), Eval("KlantNietGeweest"))%>
        </AppointmentTemplate>
    </telerik:RadScheduler>

    Thanks for any help that you can give me
  2. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1600 posts

    Posted 25 Oct 2011 Link to this post

    Hello It-Workz,

    There were a lot of issues with the RadScheduler keyboard navigation, however, we have done our best to address them for the upcoming release. In the next days, we are releasing the Q3 beta version. Upon release, could you check this url and observe whether the issues appear again? The link is going to work forth from tomorrow.

    All the best,
    Genady Sergeev
    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
  3. it-workz
    it-workz avatar
    22 posts
    Member since:
    Mar 2007

    Posted 26 Oct 2011 Link to this post

    Hi,

    Installed Q3 Beta, but still no luck.

    So i tried rebuilding the page 1 piece at a time and found a line of code that seems to trigger te error:

     

     

    ' set up grouping

     

    rs_Planner.GroupBy =

     

    "Date,Resource"

     


    If i comment this line, no more error. Uncomment it again and the error re-apears.

    Full sceduler configuration code:
    Sub SetUpPlanningScheduler()
        ' set up views 
        rs_Planner.MonthView.UserSelectable = False 'nog geen invulling voor
        rs_Planner.WeekView.UserSelectable = True
        rs_Planner.TimelineView.UserSelectable = False
        rs_Planner.DayView.UserSelectable = True
        ' appearance 
        rs_Planner.DayView.HeaderDateFormat = "dddd, dd MMMM yyyy"
        rs_Planner.ShowFooter = False
        rs_Planner.ShowAllDayRow = False
        ' set up Resources 
        rs_Planner.ResourceTypes.Clear()
        Dim rt As New ResourceType("Resource")
        rt.KeyField = "resource_id"
        rt.ForeignKeyField = "resource"
        rt.TextField = "resource_omschrijving"
        rs_Planner.ResourceTypes.Add(rt)
        ' add available resources
        Dim dsresources As DataSet
        dsresources = SqlHelper.ExecuteDataset(Conn, "GET_Resources", True)
        rs_Planner.Resources.Clear()
        For i As Integer = 0 To dsresources.Tables(0).Rows.Count - 1
            If ddlResourcegroep.SelectedValue <> "" Then
                If dsresources.Tables(0).Rows(i)("resource_groep") = ddlResourcegroep.SelectedValue Then
                    rs_Planner.Resources.Add(New Resource("Resource", dsresources.Tables(0).Rows(i)("resource_id"), dsresources.Tables(0).Rows(i)("resource_omschrijving")))
                End If
            Else
                rs_Planner.Resources.Add(New Resource("Resource", dsresources.Tables(0).Rows(i)("resource_id"), dsresources.Tables(0).Rows(i)("resource_omschrijving")))
            End If
        Next
        ' set up data source 
        rs_Planner.DataKeyField = "ID"
        rs_Planner.DataStartField = "start"
        rs_Planner.DataEndField = "stop"
        rs_Planner.DataSubjectField = "Onderwerp"
        ' set up custom attributes 
        rs_Planner.CustomAttributeNames = New String() {"Boeking", "start", "Plaatsenover", "Onderwerp", "Type", "Kleur", "TekstKleur", "Naam", "KlantID", "Niveau", "Rooster", "Boeking", "Resource", "RoosterStatus", "RoosterStatusOmschrijving", "RoosterOpmerking", "Koppel", "OpenstaandBedrag", "Geboortedatum", "AlertMemo", "lesnummer", "KlantNietGeweest", "boeking_ek_id", "trainer_naam_opgemaakt"}
        ' bind data 
        rs_Planner.DataSource = Session("roosterslots")
        ' set up grouping 
        rs_Planner.GroupBy = "Date,Resource"
        ' set up editting (disable it) 
        rs_Planner.AllowDelete = False
        rs_Planner.AllowEdit = True ' needed for events (click)
        rs_Planner.AllowInsert = False
        rs_Planner.ReadOnly = True 'dissallows moving, makes timeslots respond to single-click
    End Sub
  4. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1600 posts

    Posted 31 Oct 2011 Link to this post

    Hi,

    Thank you for reporting this problem to us, there is indeed an issue with the keyboard navigation when there is group for resources enabled. We will try to get it resolved for the upcoming release, or for one of the latest internal builds following the release, at latest.

    I've also updated your telerik points for pointing this problem to us.

    Greetings,
    Genady Sergeev
    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
  5. it-workz
    it-workz avatar
    22 posts
    Member since:
    Mar 2007

    Posted 02 Dec 2011 Link to this post

    Hi,

    I'm sorry to report this issue is still present in the latest release (2011.3.1115.35)

    Line: 18026
    Error: Object doesn't support property or method '_getContentTable'



    var r=i.KeyboardNavigation.Models.createMap(d.get_activeModel()._getContentTable(),function(u){q=false;

    var w=u.get_targetSlot().get_domElement();

    var v=w.cellIndex;

    var t=w.parentNode.rowIndex;

    m.x=t;

    m.y=v;

    });

  6. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1600 posts

    Posted 07 Dec 2011 Link to this post

    Hi It-Workz,

    Unfortunately we didn't manage to fix the problem for the Q3 release. I've now increased the bug priority and we will get it resolved for the next internal build.

    Regards,
    Genady Sergeev
    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
Back to Top