Hi Telerik Team,
is it possible to get the current row & column level for one mesure? The intention is to create a link to an another page for "detailed" information.
Example is attached:
[a href="detailpage?contactTitle=Order Administrator&Allcountries=Germany&All Companies=Drachblut"] 1 [/a]
Cheers
Boris
I am building a test app with kendo ui php.
I am using a grid following the examples I have found on telerik web site.
The grid works correctly on a single table, but I am not able to get it working if I try adding a field from another table.
In the example I have, which is working correctly, you set the read table fields in this way:
$read_columns
=
array
(<br>
'p.ProductID'
, <br>
'p.ProductName'
, <br>
'p.UnitPrice'
, <br>
'p.UnitsInStock'
, <br>
'p.SupplierID'
,<br>
'(select s.CompanyName From Suppliers s Where s.SupplierID = p.SupplierID) as SupplierName'
,<br>
'p.CategoryID'
,<br>
'(select c.CategoryName From Categories c Where c.CategoryID = p.CategoryID) as CategoryName'
,<br> );
I was able to setup the datagrid without foreign fields:
$read_columns2
=
array
(<br>
'idAnagraficaPDV'
,<br>
'data'
,<br>
'ora'
,<br>
'downloadStatusId'
,<br>
//'(select s.descrizione From downloadstatus s Where s.downloadStatusId = d.downloadStatusId) as downloadstatus',<br> // '(Select s.descrizione From downloadstatus s Where s.downloadStatusId IN (Select d.downloadStatusId From d)) as descrizione'<br> // '(Select s.descrizione From downloadstatus s Where s.downloadStatusId IN (Select d.downloadStatusId From downloadlogs d))'<br><br><br> );
but if I try adding the foreign fields - removing the comments from one of the commented lines, I get no more data in datagrid. Note that the script passes to the browser a json array with the correct count of records but without data:
{
"total"
:2,
"data"
:[]}
while removing commenting the query line it retrieves the correct data, but of course without the field I need:
{
"total"
:3,
"data"
:[{
"idAnagraficaPDV"
:
"2"
,
"data"
:
"2015-11-07"
,
"ora"
:
"15:55:00"
,
"downloadStatusId"
:
"1"
},{
"idAnagraficaPDV"
:
"2"
,
"data"
:
"2015-10-06"
,
"ora"
:
"06:20:00"
,
"downloadStatusId"
:
"2"
},{
"idAnagraficaPDV"
:
"2"
,
"data"
:
"2015-11-09"
,
"ora"
:
"05:00:07"
,
"downloadStatusId"
:
"3"
}]}
Note the query I have set in string works correctly in the database.
Any suggestion?
I am trying kendo ui for php grid.
I cannot find in documentation how to set a fixed grid width and how to customize Update, Cancel buttons on edit popup and how to set popup title text.
Any help appreciated
Requirements |
|
Telerik Product and Version |
|
Supported Browsers and Platforms |
|
Components/Widgets used (JS frameworks, etc.) |
PROJECT DESCRIPTION
[enter description here, together with step-by-step instructions on how to use the project]
Generally an issue however there is a useful way of utilizing and reading Read-Only dates on PHP platforms. Credit to Cody from Telerik who has provided a brilliant easy to follow Screen cast for this:
Cody's response:
"This video walks you through the approach I recommend you try:
http://screencast.com/t/JY3GfP3d
Here is the code I used in the video:
Pages.HotelsBookDirectAnd.CheckInDateText.Value = DateTime.Now.AddDays(5).ToString("d");
Pages.HotelsBookDirectAnd.CheckOutDateText.Value = DateTime.Now.AddDays(10).ToString("d");
You'll need to adapt it to fit your UI elements plus the needs of your application."
Symptoms
Loading kendo.all.min.js file in IE 8 results in multiple JavaScript errors.
Typically the error message will be "Object doesn't support this property or method" and will be caused by a call to map, forEach or bind.
Root Cause
The errors are due to the inclusion of the Kendo UI Spreadsheet which requires IE9 and later.
It was nevertheless bundled in kendo.all without the necessary run-time checks.
Mitigation
<!--[if lt IE 9]>
<
script
src
=
"https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.1.13/es5-shim.min.js"
></
script
>
<
script
src
=
"https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.1.13/es5-sham.min.js"
></
script
>
<![endif]-->
Solution
A permanent fix will be included in the next internal build, version 2015.3.1002, due for release on 2 Oct 2015.
Future Service Packs and official releases will be free of this defect as well.
Apologies for the caused inconvenience.
I take a tabstrip on my website. But when loaded the page it need be hidden. If the user click a checkbox then tabstrip must be display. It is ok, but I use scrollable tabs. But it is display not scrollable tab..
It is the code:
<!DOCTYPE html>
<html>
<head>
<meta charset=
"utf-8"
/>
<title>Telerik Line Chart</title>
<link rel=
"stylesheet"
href=
"TelerikPHPUI/styles/kendo.common.min.css"
/>
<link rel=
"stylesheet"
href=
"TelerikPHPUI/styles/kendo.default.min.css"
/>
<script src=
"TelerikPHPUI/js/jquery.min.js"
></script>
<script src=
"TelerikPHPUI/js/kendo.all.min.js"
></script>
</head>
<body>
<input type=
"checkbox"
onclick=
"if (this.checked) { $('.demo-section').css('display', 'inline-block') } else { $('.demo-section').css('display', 'none') }"
/>
<?php
require_once
'TelerikPHPUI/Kendo/Autoload.php'
;
echo
'<div class="demo-section" style="max-width:400px; display:none;">'
;
$tabstrip
=
new
\Kendo\UI\TabStrip(
'tabstrip'
);
$item
=
new
\Kendo\UI\TabStripItem();
$item
->text(
"Tab 1 with long text"
)
->selected(true)
->startContent();
echo
'<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer felis libero, lobortis ac rutrum quis, varius a velit.</p>'
;
$item
->endContent();
$tabstrip
->addItem(
$item
);
$item
=
new
\Kendo\UI\TabStripItem();
$item
->text(
"Tab 2 with long text"
)
->startContent();
echo
'<p>Donec lacus erat, cursus sed porta quis, adipiscing et ligula. Duis volutpat, sem pharetra accumsan pharetra, mi ligula cursus felis, ac aliquet leo diam eget risus.</p>'
;
$item
->endContent();
$tabstrip
->addItem(
$item
);
$item
=
new
\Kendo\UI\TabStripItem();
$item
->text(
"Tab 3 with long text"
)
->startContent();
echo
'<p>Integer facilisis, justo cursus venenatis vehicula, massa nisl tempor sem, in ullamcorper neque mauris in orci.</p>'
;
$item
->endContent();
$tabstrip
->addItem(
$item
);
$item
=
new
\Kendo\UI\TabStripItem();
$item
->text(
"Tab 4 with long text"
)
->startContent();
echo
'<p>Ut orci ligula, varius ac consequat in, rhoncus in dolor. Mauris pulvinar molestie accumsan. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae.</p>'
;
$item
->endContent();
$tabstrip
->addItem(
$item
);
echo
$tabstrip
->render();
echo
'</div>'
;
?>
</body>
</html>