Hello,
Using kendo version 2015.2.624
In StockChart we experience that the graph draws too few points to our taste.
We use baseUnit = "fit" and no matter how we adjust autoBaseUnitSteps for days, weeks etc there is simply not enough detail.
We need to display from 1 day to 3 years of data allowing the user to zoom so setting a fix baseUnit = "days" does not work for all cases.
We have tried to act on the zoomEnd event but no matter what, there is no information in e.axisRanges in the event argument (axisRanges is undefined).
It also appears only to be triggered on mousewheel action?
Adjusting maxDateGroups to 10000 did not provide more datapoints per width.
Can you recommend a course of actions to give us more detail in the graph?
Hi
I am using the Kendo Grid with Angular but I was wondering what is the recommended way to have an editable text box in a cell within the grid.
I can't seem to get 2 way data binding working from the grid's own dataItem scope back to the original binding model.
Here's how I have done it using ng-change which works but seems like the incorrect way to me.
In my controller's init function I have:
vm.gridOptions = {
scrollable: false,
dataSource: new kendo.data.DataSource(),
columns: [
{
title: "Service Category",
field: "ServiceCategoryName"
},
{
title: "Service",
field: "ServiceName"
},
{
title: "Quantity",
width: "120px",
template: "<input type='text' ng-model='dataItem.Quantity' ng-change='vm.quantityChanged(dataItem)' />"
}
]
};
Later I call from the controller:
formCommonFactory.populateKendoGrid(vm.gridOptions, vm.costCentreGroups);
And this is my function I use to populate the grid called from the controller.
function populateKendoGrid(gridOptions, values) {
var d = new kendo.data.DataSource({
data: values
});
d.read();
gridOptions.dataSource.data(d.data());
};​
Thanks,
Oliver
Hello,
I'm using Kendo Grid with resizable columns and ClientDetailTemplateId. When I want to resize a column the resize cursor is not appear anymore (in Firefox and IE - is working perfectly in Chrome or Safari) but if I remove the ClientDetailTemplateId all is working fine in all browsers. How can I solve this problem ? Also I use kendo ui version 2015.2.624. I will put here a code snipped:
@{Html.Kendo().Grid<​MyModel>()
.Name("mymodel-grid")
.Scrollable(s => s.Height(500))
.DataSource(dataSource => dataSource.Ajax()
.Read(read => read
.Data("onDataBinding")
.Action("​MyActionResult", "​MyController"))
.PageSize(50)
.Sort(s => Papaya.Web.Misc.GridConfigurator.Sort<​MyModel>(s, Model.SortOrder))
.Filter(s => Papaya.Web.Misc.GridConfigurator.Filter<​MyModel>(s, Model.FilteredBy)))
.Columns(columns => columns.LoadSettings(Model.GridColumns))
.Resizable(r => r.Columns(true))
.Reorderable(r => r.Columns(true))
.Events(e =>
{
e.DetailExpand("onDetailExpand");
e.Change("onSelected");
e.DataBound("onDataBound");
e.ColumnResize("onColumnResize");
e.ColumnReorder("onColumnReorder");
e.FilterMenuInit("filterMenuInit");
})
.ClientDetailTemplateId("expandTemplate")
.Filterable(GridConfigurator.​MyModelFilter)
.Pageable(GridConfigurator.Page)
.Sortable()
.Selectable()
.EnableCustomBinding(true)
.Render();
}
<script id="expandTemplate" type="text/kendo-tmpl">
<div id="expand-template-content"></div>
</script>​
Thank you
.Model(m =>{ m.Id(c => c.WorkflowTypeEventID); m.Field(c => c.WorkflowTypeEventID).Editable(false); m.Field(c => c.Name).Editable(true); m.Field(c => c.Description).Editable(true); m.Field(c => c.SortOrder).Editable(false); m.Field(c => c.EventType).Editable(false); //m.Field(c => c.WorkflowTypeStateID).Editable(false); //m.Field(c => c.NextWorkflowTypeStateID).Editable(false); m.From(c => c.WorkflowTypeStateID); m.To(c => c.NextWorkflowTypeStateID);})
When I uncomment out the two lines both items are hidden when editing the connection but they do not pass the values to the Create method. If I comment them both out and create a connection it will pass both values to the models Create method.
I am looking to hide both on edit but still send the values to the controller.
Thanks
Hi,
I am adding a Shape via a drag and drop function. I am looking to also add a default dataItem to the options of this Shape.
$("#diagram").kendoDropTarget({ drop: function (e) { var item, pos, transformed; if (e.draggable.hint) { item = e.draggable.hint.data("shape"); pos = e.draggable.hintOffset; pos = new Point(pos.left, pos.top); transformed = diagram.documentToModel(pos); item.x = transformed.x; item.y = transformed.y; //Want to add default dataItem or find a better place to add. diagram.addShape(item); } }});
Here is what my current dataItem look like from other shapes added by Read method. Attached Item.
I want to be able to add this data item like the diagram would normally do but through a drag and drop action. So it can be saved back to the database.
Thanks
Hello,
Within the navigate event handler I need to know if user clicked on (...) button inside some day cell in month view or it was "day" button clicked from views toolbar. Is it possible somehow?
Thank you for your help.
Kind regards,​
