or
{"person":[{"address":"Address1","name":"Person1"},{"address":"Address2","name":"Person2"},{"address":"Address3","name":"Person3"}]}$(document).ready(function() { $("#grid").kendoGrid({ dataSource: { transport: { read: { url: myURLFunc(), dataType: "json" } }, schema: { model: { fields: { name: {}, address: {} } } } }, height: 250, sortable: true, columns: [ { field: "name", title: "Person" }, { field: "address", title: "Address" } ] });});When creating a listview without specifying a template (ok, not very real situation, but still....) you get an error
In this lines:
that.template = kendo.template(options.template || "");that.altTemplate = kendo.template(options.altTemplate || options.template);
The second line should be:
that.altTemplate = kendo.template(options.altTemplate || options.template || "");Regards, Jaap
Which is the problem?, it seems to be loading the second culture or my browser localization.<script type="text/javascript"> kendo.culture("en-GB"); </script> cultures.current Object { name="en-GB" ... calendars ... patternsObject { d="dd/MM/yyyy" WRONG
function ted() {
var grid = $("#grid_clients").data("kendoGrid")
grid.refresh();
}
Hello,
I just want to click on a specific item in the list, on my local machine the following code works perfectly :public static void ClickScrollableControl( HtmlDiv uIPointsList, User accessPoint) { HtmlCell uICell = uIPointsList.GetControl<HtmlCell>(HtmlControl.PropertyNames.InnerText, accessPoint.Name) Mouse.Click(uICell); }
the playback engine scroll till the cell is visible, and it click on it.
When running the same code on the TestAgent (log automatically), the scrolling doesn't work.
My question is just how to scroll manually. I've tried this code but without success :
public static void ClickScrollableControl( HtmlDiv uIPointsList, User accessPoint) { HtmlCell uICell = uIPointsList.GetControl<HtmlCell>(HtmlControl.PropertyNames.InnerText, accessPoint.Name) Mouse.Click(uICell); Rectangle uICellRectangle = uICell.BoundingRectangle; Rectangle uIPointsListRectanle = uIPointsListRectangle.BoundingRectangle; int wheel = 1; while (!uIPointsListRectangle.Contains(uICellRectangle)) { Mouse.MoveScrollWheel(wheel); wheel = wheel + 1; HtmlCell uICell = uIPointsList.GetControl<HtmlCell>(HtmlControl.PropertyNames.InnerText, accessPoint.Name) Rectangle uICellRectangle = uICell.BoundingRectangle; } Mouse.Click(uICell); }