Telerik Forums
Kendo UI for jQuery Forum
4 answers
272 views
Hello

I was trying evaluate the scheduler widget in appbuilder and found very interesting thing. I created three views and the third view contains the scheduler div which got initialized on data-init event of that view.

Everything worked very well before I tried to dig deeper and wanted to do something on click of save button under the event view. On save I tried to navigate to another view  which i successfully able to but when i come back again to scheduler, I found everything got freeze in scheduler and scheduler becomes unselectable.

I was thinking to reinitialize scheduler whenever I navigate to that view. Please let me know the best possible solution in this case.

I have created a sample project. Please have a look at the following URL:

http://trykendoui.telerik.com/ataX

In order to reproduce the issue, open Drawer, click scheduler, navigate to event details, there is one button " Go to Home" click that and again try to come back on scheduler using drawer menu.




test
Top achievements
Rank 1
 answered on 23 May 2014
4 answers
368 views
Hi, 

I have following code,

$("#activities").kendoScheduler({
date: new Date("2014/5/19"),
startTime: new Date("2014/5/19 00:00 AM"),
endTime: new Date("2014/5/19 08:00 PM"),
views: [
{ type: "day", selected: true },
"week",
"month"
],
editable: false,
timezone: "Etc/UTC",
dataSource: {
batch: true,
transport: {
read: {
type: 'POST',
contentType: "text/xml",
url: "https:///xxx:8443/xxx/rest/xxxapp/api/xxxGetActivities",
processData: false,
dataType: "xml",
headers: { 'X-xxx-Token': '8430694659957936307' }
},
parameterMap: function() {
return '<?xml version="1.0" encoding="UTF-8" standalone="no"?><xxxGetActivitiesRequest xmlns="http://www.xxx.net/xxx/1.0"><RecordLimit>30</RecordLimit><RequestFields><Activities><Activity><ActivityNo/><AccountName/><AccountNumber/><ContactFullName/><ContactName/><ContactNameSequence/><ActivitySubject/><ActivityPriority/><ActivityPriorityCode/><ActivityText1/><ActivityText2/><ActivityText3/><ActivityStatus/><ActivityStatusCode/><ActionDate/><ActionTime/><ActionDateTime/><EndDate/><Location/><ActivityResolution/><ActivityResolutionCode/><ActivityType/><ActivityTypeCode/><LeadOpportunityNo/><LeadOpportunityTypeCode/><LeadOpportunityDetails/></Activity></Activities></RequestFields><Filters><ActivityStatusCode><Like>%</Like><NotLike>F</NotLike><NotLike>C</NotLike></ActivityStatusCode><ActionDate><Range><From>D-30</From><To>D+30</To></Range></ActionDate></Filters></xxxGetActivitiesRequest>'
}
},
schema: {
model: {
id: "activityNo",
fields: {
activityNo: { from: "ActivityNo", type: "number" },
title: { from: "ActivitySubject", defaultValue: "No title", validation: { required: true } },
start: { type: "date", from: "ActionDate" , format: "{0:dd-MMM-yyyy}"},
end: { type: "date", from: "EndDate", format: "{0:dd-MMM-yyyy}" },
atendees: { from: "ContactFullName", nullable: true },
startTimezone: { from: "StartTimezone",nullable: true  },
endTimezone: { from: "EndTimezone",nullable: true  },
description: { from: "Description",nullable: true  },
recurrenceId: { from: "RecurrenceID",nullable: true  },
recurrenceRule: { from: "RecurrenceRule",nullable: true  },
recurrenceException: { from: "RecurrenceException",nullable: true  },
roomId: { from: "RoomID", nullable: true },
isAllDay: { type: "boolean", from: "IsAllDay" , nullable: true }
}
}
}
}
}); 


Even though I can see the call is made to the web service and correct data is downloaded, no activities are not displayed in the scheduler as I expect. Few questions,

1. In the service I don't have all the schema models. So I have put dummy from fields with nullable true. is that correct
2. Dates are passed back from the web service in dd-MMM-yyyy format (ex: 14-May-2014). How can I map it to underlying dates in Kendo (is it automatically done?). I am not talking about visual aspects here but background mapping. 
3. Is there anything else wrong in my code? 


You help is highly appreciated.
Asat


Vladimir Iliev
Telerik team
 answered on 23 May 2014
4 answers
1.1K+ views
Is there a demo showing the exact same functionality at this link http://demos.kendoui.com/web/grid/remote-data.html 
using JSON instead of ODATA?

I would like to implement this in ASP.NET MVC 3, WCF, and EF 4.3 using JSON
Garry
Top achievements
Rank 2
Veteran
 answered on 23 May 2014
3 answers
131 views
Hi,

I have a single data source but I need to show the same data on different views, with custom filters, so the data will be presented according to my needs. 

Can you suggest a simple way to achieve that?

Thanks
Kiril Nikolov
Telerik team
 answered on 23 May 2014
3 answers
759 views
Hi Experts,

I implement my page using MultiSelect controller, I request the data by using ajax request. The data item number is too large, so I want to implement a filter on the client side

1. The total select options are 10000.
2. By default in MultiSelect controller show 500.
3. When type in MultiSelect input controller, can dynamic filter in the 10000 options and show at most 500 in the options.

There is no example to do this, but there is a similar example to do filter on server side. Can you show me a example?
Kiril Nikolov
Telerik team
 answered on 23 May 2014
5 answers
421 views
Hi,

I like the new Scheduler,
I would like to change the date format in the pop up. so i try to create editable template ,
and my question how to add my recources input and All day event check box in that template ?  I only know how to add the start and end time from this example.

<script id="editor" type="text/x-kendo-template">
<h3>Edit meeting</h3>
<p><label>Title: <input name="title" /></label></p>
<p><label>Start: <input data-role="datetimepicker" name="start" /></label></p>
<p><label>Start: <input data-role="datetimepicker" name="end" /></label></p>
</script>

regards,
ben
Vladimir Iliev
Telerik team
 answered on 23 May 2014
3 answers
112 views
Hello,
i'm using multiselect with an id as DataTextField instead of a string value, When i try to search for a id in my multiselect i get a error  "".toLowerCase is not a function i'm guessing this is because i use id instead of string. Can i work around this somehow?

          .Name("BaPaymentMachine")
          .Placeholder("Choose value..")
          .DataTextField("Id")
          .DataValueField("BaNumber")
          .DataSource(ds => ds.Read("GetAllBaPayment", "Report"))
          .HtmlAttributes(new { @style = "width:200px;" }))

Thanks in advance
Petur Subev
Telerik team
 answered on 23 May 2014
1 answer
226 views
Hi, I´m trying to read an XML from a webservice to a datagrid, but I can´t fill the datagrid with the values. What I´m doing wrong?

The webservice returns:

<?xml version="1.0" encoding="UTF-8"?>
<ArrayOfTabela2 xmlns="http://tempuri.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <tabela2>
    <codigo>F</codigo>
    <descricao>Feminino</descricao>
  </tabela2>
  <tabela2>
    <codigo>M</codigo>
    <descricao>Masculino</descricao>
  </tabela2>
</ArrayOfTabela2>

And the HTML5 file is the following:

<!DOCTYPE html>
<html>
<head>
    <title></title>
    <link href="styles/kendo.common.min.css" rel="stylesheet" />
    <link href="styles/kendo.default.min.css" rel="stylesheet" />
    <script src="js/jquery.min.js"></script>
    <script src="js/kendo.all.min.js"></script>
</head>
<body>

<div id="grid"></div>
<script>
var dataSource = new kendo.data.DataSource({
  transport: {
    read: {
 type: 'POST',
 processData: false,
      dataType: "xml",
      url: "http://localhost:28301/Vacinacao.asmx/retornaDataTable?tabela=SEXO",
 contentType: "text/xml"
    }
  },
  schema: {
    type: "xml",
    data: "/ArrayOfTabela2/tabela2",
    model: {
      fields: {
        codigo: "codigo/text()",
        descricao: "descricao/text()"
      }
    }
  }
});
dataSource.read();
$("#grid").kendoGrid({
  dataSource: dataSource,
  pageable: true
});
</script>

</body>
</html>

If I change the block bellow for a fixed data, it works fine.
  transport: {
    read: {
 type: 'POST',
 processData: false,
      dataType: "xml",
      url: "http://localhost:28301/Vacinacao.asmx/retornaDataTable?usuario=DES_VALE&senha=DES_VALE&tabela=SEXO",
 contentType: "text/xml"
    }
  },
-------
data: '<?xml version="1.0" encoding="UTF-8"?><ArrayOfTabela2 xmlns="http://tempuri.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><tabela2><codigo>F</codigo><descricao>Feminino</descricao></tabela2><tabela2><codigo>M</codigo><descricao>Masculino</descricao></tabela2></ArrayOfTabela2>',

Thanks for any help!

Vitor
Rosen
Telerik team
 answered on 23 May 2014
1 answer
221 views
i saw in an older thread (http://www.telerik.com/forums/change-icon-in-chart-s-legend), that the option of changing the icons/markers in the legend is under consideration to be implemented.

has this been done? i have a chart with 3 different kind of series and each series has its on marker - but same colors for comparison.

at the moment the legend icons now have the same color as well, which is hard to distinguish - thats why i would need the same marker in the legend like in the chart it self for each series.

is that possible?

thx
sigi
Iliana Dyankova
Telerik team
 answered on 23 May 2014
3 answers
101 views
Hello,

We would like to display chart data outside the plotted area that vertically lines up with the corresponding category, for example displaying the time remaining above the categories. Please see attached image for further clarification.

We're currently using Kendo MVC version 2014.1.318

How can we achieve this? - I've been looking for a solution for this for 2 days now :(
Hristo Germanov
Telerik team
 answered on 23 May 2014
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Drag and Drop
Map
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?