Note that there are some explanatory texts on larger screens.

plurals
  1. POTelerik & Jquery
    primarykey
    data
    text
    <p>On my project, i'm using RadScheduler. </p> <p>In result of the needs, i had to create a custom edit "window". </p> <p>Basically in the main page i have:</p> <pre><code>&lt;telerik:RadScheduler runat="server" ID="radScheduler" SelectedView="TimelineView" EnableExactTimeRendering="True" DayStartTime="00:00:00" DayEndTime="23:59:59" DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End" DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentId" AllowInsert="false" AllowDelete="False" AllowEdit="false" ColumnWidth="100px" OnAppointmentCreated="radScheduler_AppointmentCreated" AdvancedForm-Modal="true" Width="100%" FirstDayOfWeek="Monday" ShowHoursColumn="False" Skin="Telerik" ShowsConfirmationWindowOnDelete="False" OnFormCreated="radScheduler_FormCreated"&gt; &lt;TimelineView UserSelectable="true" GroupingDirection="Vertical" NumberOfSlots="24" ColumnHeaderDateFormat="HH:mm" ShowInsertArea="false" StartTime="00:00:00" SlotDuration="01:00:00" GroupBy="Room" /&gt; &lt;DayView UserSelectable="false" /&gt; &lt;MonthView UserSelectable="false" /&gt; &lt;WeekView UserSelectable="false" /&gt; &lt;AdvancedEditTemplate&gt; &lt;scheduler:AdvancedForm runat="server" ID="AdvancedInsertForm1" Mode="Edit"/&gt; &lt;/AdvancedEditTemplate&gt; &lt;/telerik:RadScheduler&gt; </code></pre> <p>and also a RadAjaxManager.</p> <p><code>&lt;scheduler:AdvancedForm&gt;</code> points to AdvancedForm.ascx</p> <p>In AdvancedForm.ascx i have this javascript block </p> <pre><code>&lt;script type="text/javascript"&gt; var chart; // global /* * Request data from the server, add it to the graph */ function requestData() { $.ajaxSetup({ cache: false }); $.getJSON('exampleurl', function (data) { //Clear the "old" series while (chart.series.length &gt; 0) { chart.series[0].remove(true); } //declare Json var jsonObj = { series: [] }; //Cycle through each JSONobjcect returned by the url $.each(data, function (i, item) { var key = item['tag']; var value = item['data']['Velocity']; jsonObj.series.push({ "name": key, "data": value }); }); //Add each of the key:value pair to the series for (var i in jsonObj.series) { chart.addSeries(jsonObj.series[i]); } // call it again after ten seconds setTimeout(requestData, 10000); }); } $(document).ready(function () { chart = new Highcharts.Chart({ chart: { renderTo: 'container', defaultSeriesType: 'column', events: { load: requestData } }, title: { text: 'Test Chart' }, xAxis: { title: { text: 'Viaturas' }, categories: [''] }, yAxis: { min: 0, title: { text: 'Velocidade (Km/h)' } }, tooltip: { formatter: function () { return '' + this.series.name + ': ' + this.y + ' Km/h'; } }, }); }); </code></pre> <p></p> <p>the problem i have is that the $(document).ready is never called...</p> <p>Thanks in advance for the help..</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload