Telerik Forums
Kendo UI for jQuery Forum
1 answer
166 views
I'm working with a Date Column thats part of the Data Grid. I'm using the following filter for my DateClosed Column. The template display a button in the column cell if the DateClosed value = '01/01/0001' and the date closed value when its not equal to that '01/01/0001'.
My problem is I want to allow users to filter to only show the Closed or Not Closed records. Records. 
Using the ui: datepicker does not allow me to do this. 
please help
Grid....
 {
                           field: 'DateClosed',
                           title: 'Closed',
                           format: '{0:MM/dd/yyyy}',
                           filterable: {
                               extra: true,
                               ui: 'datepicker'
                           },
                           template: kendo.template($("#closeActionItem").html())
                       },
Alexander Valchev
Telerik team
 answered on 14 Nov 2013
8 answers
1.2K+ views
Hi,
I have this problem with kendo mobile.

  • I have a kendo observable object onto which I bind the change event. 
    accViewModel = kendo.observable({
        id: null,
        type: null,
        accountingKey: null,
        selectedItems : [],
        resultObj: []
    });

  • After some input fields, corresponding to selectedItems in observable have changed I do an AJAX request.
  • Then I update a nested objects inside the observable with .set() method
    accViewModel.set("resultObj", response.resultObj);
    accViewModel.set("selectedItems ", response.selectedItems);

  •  However after the updating the observable it no longer calls the change event handler when I edit input fields by hand (not using the set method) that are bound via MVVM in the HTML.
However, I can still trigger the change event by updating the fields with .set() method, however it calls the method twice. What could be happening here? Any ideas?
Alexander Valchev
Telerik team
 answered on 14 Nov 2013
1 answer
51 views
I observe that in IE 10, the grid height extends to the number of rows where as in IE 11, the grid height is equivalent to only one row and gets a vertical scrollbar automatically if the number of rows is more than one ! This looks really ugly and I don't want to specify height of grid explicitly - it must occupy the height size to be all rows included.
Iliana Dyankova
Telerik team
 answered on 14 Nov 2013
1 answer
172 views
Is there any way to tame KendoUI Grid to use a:visited {color: #4a637a;} sytle so that the hyperlink change the color after use clicks on them.
Currently I am able to add a:visited {color: #4a637a;}  for the grids in div tag where the grid is embedded but as soon as I refersh the grid or browser through the grid pages, the sytle is gone.

Any help is appreciated.
Alexander Valchev
Telerik team
 answered on 14 Nov 2013
1 answer
110 views
Hello !

i'm currently trying to use the template system with data binding from a json local file but i've got a preblem to make it work.

here is my json code which is into a data.json local file:

[
{ "Nom": "Test", "Pays": "FR", "Adresse1": "Rue du test", "CP": "59000" }
]
here is my javascript code

var dataSource = new kendo.data.DataSource({
    transport: {
        read: {
            url: "./data.json",
            dataType: "json"
        },
    }
});
 
$("#PointRelaisList").kendoMobileListView({
    dataSource: dataSource,
    template: $("#PointRelaisListTemplate").text()
});
here is my template

<script id="PointRelaisListTemplate" type="text/x-kendo-template">   
<span class="PointRelaisImage" style="background-image: url('http://www.mondialrelay.fr/img/dynamique/pr.aspx?id=#: Pays ##: kendo.toString(ID, '0000000') #')" ></span>
<div class="PR-Name">
#: Nom #
<span class="value">(0.2 km)
<a class="button" data-role="button" href="\#DetailPointRelais?Id=#: Pays ##: kendo.toString(ID, '0000000') #&Nom=#: Nom #" data-icon="info" style="font-size:10px;background-color:\#7184a2"></a>
<a class="button" data-role="button" data-context="#:ID#" data-click="setFavorite" data-icon="toprated" style="font-size:10px;background-color:\#7184a2"></a>
</span>
</div>
<div class="PR-Adress"> #: Adresse1 #
<br/> #: Pays # - #: CP #  #: Ville #
</div>
</script>
and here is the div where the html is added:

<div data-role="scroller" class="scroller-content" >
  <ul data-role="listview" data-style="inset" class="MRW-Results" id="PointRelaisList" data-template="PointRelaisListTemplate">
  </ul>
</div>
if someone could help me out to solve that problem ... ;)

thanks you ! :)
guillaume
Top achievements
Rank 1
 answered on 14 Nov 2013
1 answer
152 views
I'm having some issues with tooltips & seriesClick on my chart.  Here is a jsFiddle demonstrating the issue.

In chart 1, there is no issue getting the tooltip data, but in chart 2, I am getting 'undefined' for some of the data I want to display (both chart 1 and chart 2 are using a template to format the tooltip data).  In addition on chart 2, if you click on a column chart series, I am also getting 'undefined' for some data.

FYI, I am using v2013.2.918

Thanks in advance,
--Ed
Iliana Dyankova
Telerik team
 answered on 14 Nov 2013
3 answers
567 views
For instance if I have editable table and have column for Enter Qty, Is there a way to press enter and save it and go down and will do same until it reach the end of the row that particular table?

Advance Thanks for awesome help!
Dimiter Madjarov
Telerik team
 answered on 14 Nov 2013
6 answers
219 views
Anyone can give me guide how to Close modal view onBackPressed in android..
cause it's feel wierd if someone press back key and the page changed.. but the modal view still there.. 

Thanks before..

Petyo
Telerik team
 answered on 14 Nov 2013
2 answers
164 views
Parameters:  date and type  in method refresh  not working correctly:

1. date - server dosen't  receive any data
2. type - server always receive GET (independently type is setting for POST or GET)




Wladyslaw
Top achievements
Rank 1
 answered on 14 Nov 2013
1 answer
252 views
Having trouble using the navigate function to call a controller that returns json. The call is going to the controller and back to the client side, so I know that is working.


@(Html.Kendo().Scheduler<EPR.Web.Entities.Patient.Appointment>()
                .Name("scheduler")
                .AllDaySlot(false)
                .Date(DateTime.Now)
                .StartTime(new DateTime(2013, 6, 28, 08, 00, 00))
                .EndTime(new DateTime(2013, 6, 28, 18, 00, 00))
                .Editable(false).Views(views =>
                {
                    views.DayView(dayView => dayView.Selected(true));
                })
                .Events(e =>
                {
                    e.Navigate("scheduler_navigate");
                })
                .DataSource(d => d.Read(r => r.Action("ConsultantClinic_Read", "Calendar")))
                .Views(m => m.DayView(d => d.EventTemplate(DayView)))
                .Views(m => m.WeekView(d => d.EventTemplate(DayView)))
                .Views(m => m.AgendaView(d => d.EventTemplate(AgendaView)))
                .BindTo(Model)
                .Resources(resource =>
                {
                    resource.Add(m => m.SourceClinic)
                        .Title("Owner")
                        .DataTextField("Text")
                        .DataValueField("Value")
                        .DataColorField("Color")
                        .BindTo(details);
                })
                .Events(e => e.DataBound("scheduler_dataBound"))
                .Views(m => m.DayView(d => d.EventTemplate(DayView)))
                .Views(m => m.WeekView(d => d.EventTemplate(DayView)))
                .Views(m => m.AgendaView(d => d.EventTemplate(AgendaView)))
                )


Later in the page inside a script element:-

    function scheduler_navigate(e) {

        var date = kendo.toString(e.date, "dd-MM-yyyy");

        $.ajax({
            type: "GET",
            url: "/Calendar/Navigate",
            data:
                {
                    date: date
                }
        })
              .done(function (result) {
                  var scheduler = $("#scheduler").data("kendoScheduler");
                  var dataSource = new kendo.data.SchedulerDataSource({
                      data: [
                          new kendo.data.SchedulerEvent(
                              {
                                  "AppointmentId": 4031761, "AppointmentDate": "2013-11-13T08:50:00", "Status": 0,
                                  "StatusString": "New", "StatusCode": "NW", "AppointmentDateFormatted": "13 Nov 2013 08:50",
                                  "AppointmentDateOnlyFormatted": "13 Nov 2013", "AppointmentTimeFormatted": "08:50",
                                  "Patient":
                                  {
                                      "PatientID": 0, "Casenote": "E101/10101", "Forenames": "Test", "Surname": "Test", "Gender": "F", "DOB": "1900-01-11T00:00:00", "NHSNumber": null,
                                      "DistrictNumber": null, "Age": 81, "Appointments": [], "CurrentAdmission": null, "Allergies": [],
                                      "ContactDetails":
                                      {
                                          "Address": null, "HomeTelephone": null,
                                          "WorkTelephone": null
                                      },
                                      "Medications": [], "Admissions": [], "PatientName": "Test TEST", "PatientNameInGender": "Test TEST (F)", "PatientNameInitial": "T TEST",
                                      "Heading": "Test TEST (F) 11 Jan 1900 ()", "DOBIncAge": "11 Jan 1900 ()", "PatientTemplate": "Test TEST (F) Test TEST (F) 11 Jan 1900 ()"
                                  },
                                  "ClinicCode": "REFCLIN", "SourceClinic": "TestClinic", "AppointmentType": "Planned", "Description": "TestCLIN",
                                  "Consultant": "AA", "End": "2013-11-13T09:10:00", "IsAllDay": false, "RecurrenceException": null, "RecurrenceRule": null,
                                  "Start": "2013-11-13T08:50:00", "Title": "Test TEST (F)"
                              }

                          )
                      ]
                  });

                  scheduler.setDataSource(dataSource);

              });

    }

I know this function is getting fired because I can log it to the console. So it is just down to the databinding, nothing shows up in the view except an empty calendar. No errors either are getting logged.

Any help would be great thanks.
Vladimir Iliev
Telerik team
 answered on 14 Nov 2013
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
Map
Drag and Drop
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?