Hello,
i need add a button and my self code in toolbar it's possible ?
Thinkyou
HI
I use the official Remote Binding example,But with no results returned, I get an empty GRID. could you help me to check my code? I'm sure there is no problem with JSON-Returning File Test02.php. It can return JSON results。
"autoload": {
"classmap": [
"src/Kendoui/lib"
]
}
Hi,
I use kendo diagram. There is a problem about HierarchicalDataSource that does not make a request to API to update of itself.
There is an example of the code on the below;
$transport = new \Kendo\Data\DataSourceTransport();
$create = new \Kendo\Data\DataSourceTransportCreate();
$create->url('/Api/Json/Security/Create?_token='.csrf_token())
->contentType('application/json')
->dataType("JSONP")
->type('POST');
$read = new \Kendo\Data\DataSourceTransportRead();
$read->url('/Api/Json/Security/Read?_token='.csrf_token())
->contentType('application/json')
->dataType("JSONP")
->type('POST');
$update = new \Kendo\Data\DataSourceTransportUpdate();
$update->url('/Api/Json/Security/Update?_token='.csrf_token())
->contentType('application/json')
->dataType("JSONP")
->type('POST');
$destroy = new \Kendo\Data\DataSourceTransportDestroy();
$destroy->url('/Api/Json/Security/Delete?_token='.csrf_token())
->contentType('application/json')
->dataType("JSONP")
->type('POST');
$transport->create($create)
->read($read)
->update($update)
->destroy($destroy)
->parameterMap('function(data) {
return kendo.stringify(data);
}');
$model = new \Kendo\Data\HierarchicalDataSourceSchemaModel();
$model->id("Id")
->addField("Title")
->addField("Type")
->addField("ParentId")
->children("items");
$schema = new \Kendo\Data\HierarchicalDataSourceSchema();
$schema->model($model);
$dataSource = new \Kendo\Data\HierarchicalDataSource();
$dataSource->transport($transport)
->requestEnd('reDesign')
->batch(true)
->schema($schema);
$layout = new \Kendo\Dataviz\UI\DiagramLayout();
$layout->type('tree')
->subtype('down')
->horizontalSeparation(100)
->verticalSeparation(50);
$shapeContent = new \Kendo\Dataviz\UI\DiagramShapeDefaultsContent();
$shape_defaults = new \Kendo\Dataviz\UI\DiagramShapeDefaults();
$shape_defaults->visual(new \Kendo\JavaScriptFunction('visualTemplate'))
->content($shapeContent);
$stroke = new \Kendo\Dataviz\UI\DiagramConnectionDefaultsStroke();
$stroke->color('#586477')
->width(2);
$connection_defaults = new \Kendo\Dataviz\UI\DiagramConnectionDefaults();
$connection_defaults->stroke($stroke)
->selectable(false);
$diagram = new \Kendo\Dataviz\UI\Diagram('diagram');
$diagram->dataSource($dataSource)
//->connectionsDataSource()
->layout($layout)
->editable(array("drag" => false, "resize" => false,
"tools" => (array) array(
array("name" => "createShape"),
array("name" => "edit"),
array("name" => "delete"),
array("type" => "button", "text" => "Resim", "click" => new \Kendo\JavaScriptFunction('function(e) { exportImg() }')),
array("type" => "button", "text" => "PDF", "click" => new \Kendo\JavaScriptFunction('function(e) { exportPdf() }')),
array("type" => "button", "text" => "SVG", "click" => new \Kendo\JavaScriptFunction('function(e) { exportSvg() }')),
),
"shapeTemplate" => new \Kendo\JavaScriptFunction('kendo.template(
"<
div
class=\"k-edit-label\"><
label
>Başlık</
label
></
div
>" +
"<
div
class=\"k-edit-field\"><
input
class=\"k-textbox\" type=\"text\" name = \"Title\" id=\"Title\"/></
div
>" +
"<
div
class=\"k-edit-label\"><
label
>İş Grubu</
label
></
div
>" +
"<
div
class=\"k-edit-field\"><
input
type=\"checkbox\" class=\"k-checkbox\" name = \"Type\" id=\"Type\"/></
div
>" +
"<
div
class=\"k-edit-label\"><
label
>Bağlı Departman</
label
></
div
>" +
"<
div
class=\"k-edit-field\"><
input
id=\"ParentId\" name = \"ParentId\"/></
div
>")')
))
->dataBound('onDataBound')
->shapeDefaults($shape_defaults)
->addEvent('dp')
->edit('dp')
->select('function(e) {
$.each(e.selected, function($k, $v){
if(typeof($v.type) == "function"){
console.log($v);
}
});
}')
->connectionDefaults($connection_defaults);
$render = $diagram->render();
$results = array("Render" => $render);
return response()->JSON($results);
Is it possible to display cards in grid?
Example:
- Have a 8 x 8 grid.
- Several cards displayed vertically in each cell.
- Ability to drag cards between cells
Hello!
I'm facing with a problem right now.
I tried to add the legend for the pie and the donut, but unfortunately it doesn't work.
My first try was to add legend inside of chart like example below:
$chart = new \Kendo\Dataviz\UI\Chart('chart');
$chart->dataSource($dataSource)
->autoBind(TRUE)
->tooltip($tooltip)
->addSeriesItem($seriesPieDonut)
->legend(array('visible' => true))
->seriesDefaults($seriesDefaults);
Also my second try was to add the legend into series like example below:
$seriesPieDonut = new \Kendo\Dataviz\UI\ChartSeriesItem();
$seriesPieDonut->field('datapoint')->visibleInLegend('visible');
Unfortunately the result is the same.
Maybe you guys have a solution for thins situation. I will greatly appreciate!
Thank you!
Yours,
Alexandru-Paul Ioneasa
Guys are you able to help me to hide/disable just a popup box when double click on tasks? http://demos.telerik.com/php-ui/gantt/index
I could add->editable(false); just below:
[code]// gantt $gantt = new \Kendo\UI\Gantt('gantt'); $gantt->dataSource($tasks)->dependencies($dependencies)->height(650)->addView('', array('type' => 'week', 'selected' => false),'month')->addColumn($idColumn, $titleColumn, $startColumn, $endColumn)->showWorkHours(false)->showWorkDays(true)->snap(false)->editable(false);[/code]
But then I cannot edit anything.
Any clue? Thanks.
Hi ,
Can any one help me how to show all days in month view of gantt chart . I am using php
This file is included in the latest version of the UI for PHP source file (telerik.ui.for.php.2017.1.223.commercial-source.zip), and has an invalid classname with a period. This just needs to be removed from the package because there is /DiagramConnectionDefaultsEndCapStroke.php in the same folder and same methods, with correct classname.
There should be an open event for the mobile actionsheet (according to the docs at: https://docs.telerik.com/kendo-ui/api/javascript/mobile/ui/actionsheet/events/open ) but looks like it never fires.
The code needs one additional line to trigger the event:
kendo.mobile.ui.ActionSheet.prototype.open = function(target, context) {
var that = this;
that.target = $(target);
that.context = context;
that.shim.show(target);
that.trigger('open', { target: target, context: context }); /* trigger open event*/
};