Hello!
When I use this code to disable 2nd and 3rd tab in each detailed row I see that only first expanded row has those tabs disabled - and all other rows that I expand are enabled - what am I doing wrong? Thanks for help!
var tabStrip = $("#mytabstrip").kendoTabStrip().data("kendoTabStrip");
tabStrip.disable(tabStrip.tabGroup.children().eq(1));
tabStrip.disable(tabStrip.tabGroup.children().eq(2));
<script type="text/x-kendo-template" id="template"> <div class="tabstrip" id="mytabstrip"> <button id="gridButton">gridButton</button> <ul> <li class="k-state-active" id="AccountsTab"> Счета </li> <li id="AccountInfoTab"> Полная информация по счету: </li> <li id="BillEventsTab"> Просмотр событий по счету: </li> </ul> <div> <div id="account" class="Account"></div> </div> </div> </script>
I have a page with kendoui slider, where i am checking if slider value is valid inside slider change event.
If value isn`t valid, i want to roll back slider value to previous value,
But every time i set slider value (roll back to previous value) inside change event it doesn't work.
For instance, mySlider initial value is 2.
The user is trying set the value to 10 but my validation function returns false (illegal value) and set my Slider back to it's initial value (2).
For some reason, right after that, the value of my Slider has been set up to 10 (the user choise) again(!!)
So practically my validation function has no meaning!!
It happens inside kendo.all.js in the function :
trigger: function (eventName, e) {
var that = this, events = that._events[eventName], idx, length;
if (events) {
e = e || {};
e.sender = that;
e._defaultPrevented = false;
e.preventDefault = preventDefault;
e.isDefaultPrevented = isDefaultPrevented;
events = events.slice();
for (idx = 0, length = events.length; idx < length; idx++) {
events[idx].call(that, e); ////////////////////////////////////////////////Here it change back to the user choise
}
return e._defaultPrevented === true;
}
return false;
},
My Code:
var slider =$("#slider").kendoSlider({
orientation: "vertical",
smallStep:1000,
largeStep:5000,
min:0,
max:100000,
value:50000,
change:Calc
});
function Calc(e){
if (!(IsValid(e.value)))
{
$("#slider").data("kendoSlider").value(prevVal);
}
} ////////////////////////////////////////////////Here it calls to:trigger: function (eventName, e) which written above
Is there some any way to do it?
Tanks.
Hello,
I'm attempting to create a masked datepicker using AngularJS.
I tried something like this, but it's not working :
<input kendo-date-pickerk-mask="00/00/0000"k-options="{format: 'dd/MM/yyyy'}"ng-model="vm.Filters.ToDate" />Do you have a dojo of the solution ?
Thank you.
Hi,
I'm attached to task edit and save events. When I open the task edit popup and change one field, I need to update the task end date. I tried editing e.task.end, e.values.end fields. The problem is, that when I click save and the save event is triggered, the values in e.values are filled with old values so the task is saved with old values.
Is there any way to update those values in the "edit" event, so when the "save" event is triggered, my task values are updated?
Thanks a lot,
Paweł
Hi,
I have a function which opens kendowindow. I am writing a qunit test case to test that particular function whether the particular function is working or not. Please help me with below snippet, where am i going wrong.
Function: addNew: function (e) {
$("[data-Address]").data("kendoWindow").open();
}
Test case:
QUnit.test("address", function (assert) {
var wnd = $("[data-Address]").data("kendoWindow");
var test= wnd.element.is(":hidden");
cart.addNew();
assert.equal($("test", false, "address");
});
plz help me where am I gng wrong.
Thanks in advance.
I'm using kendo Telerik.UI.for.AspNet.Mvc5 version 2016.2.607 in .net 452
i have my culture type in web.config set as:
<globalization uiCulture="de" culture="de-DE" />
if i use the following code to localize my website, it works fine (see 'first.png')
<script src="@Url.Content("~/Scripts/kendo/2016.2.607/cultures/kendo.culture." + System.Globalization.CultureInfo.CurrentCulture.Name + ".min.js")"></script> <script type="text/javascript"> $(document).ready(function () { kendo.culture("@System.Globalization.CultureInfo.CurrentCulture.Name"); }); </script>if i remove that code and use @Html.Kendo().Culture() instead, i en-US date values (see 'second.png')
if i do a view source, the @Html.Kendo().Culture() seems to be working fine, see below.
<script>kendo.cultures["de-DE"]={name:"de-DE",numberFormat:{pattern:["-n"],decimals:2,",":".",".":",",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":".",".":",",groupSize:[3],symbol:"%"},currency:{pattern:["-n $","n $"],decimals:2,",":".",".":",",groupSize:[3],symbol:"€"}},calendars:{standard:{days:{names:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],namesAbbr:["So","Mo","Di","Mi","Do","Fr","Sa"],namesShort:["So","Mo","Di","Mi","Do","Fr","Sa"]},months:{names:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],namesAbbr:["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"]},AM:[""],PM:[""],patterns:{d:"dd.MM.yyyy",D:"dddd, d. MMMM yyyy",F:"dddd, d. MMMM yyyy HH:mm:ss",g:"dd.MM.yyyy HH:mm",G:"dd.MM.yyyy HH:mm:ss",m:"d. MMMM",M:"d. MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"HH:mm",T:"HH:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM yyyy",Y:"MMMM yyyy"},"/":".",":":":",firstDay:1}}};</script>what am i missing?
Hi,
I'm trying to create a stacked chart and i'm having trouble with the results - the stacked data is not a sum of all data points but rather an artificial number. I've made a dojo sample here http://dojo.telerik.com/EFIhUQ - the second column shoudl be 4 and it shows up as 120000... any idea why?
Hello developer,
Thanks for the support that you have provided in the course of time for the issues that I have faced during development.
I would like to put forward two issues that I'm facing with kendo scheduler(AngularJS)..
1)Is there any way that I could enable the pop up generated by double clicking on a date to be opened by a single click ?
2)Is there any way that I could define custom close event from my controller (I'm using AngularJS Kendo scheduler).
I tried by giving
$scope.scheduleroptionds.window.close=true;
which works for the very first time but I have to reload the page every time to make it work..
Awaiting your kind reply..
Thanks again..
Hi,
First, I am a bit confused about terminology. I've always thought that a classic grid system is like this:
http://webdesign.tutsplus.com/articles/all-about-grid-systems--webdesign-14471
A good example is Altair template:
http://preview.themeforest.net/item/altair-admin-material-design-uikit-template/full_screen_preview/12190654?_ga=1.221847640.132173243.1461239472
Kendo grid, in my opinion, is a table. Grid and table are totally different things.http://demos.telerik.com/kendo-ui/grid/index
I use Kendo UI Pro with AngularJS. I have to implement grid functionality like in Altair template. As I mentioned, "classical" grid and Kendo grid (table) are totally different things. So I am looking for a proper solution.
1. I can use Twitter Bootstrap - Kendo integration. Here is a nice example:
http://demos.telerik.com/kendo-ui/bootstrap
But -
2. Can I use Kendo UI only? It seems that Kendo has its own grid system, for example in Theme builder:
http://demos.telerik.com/kendo-ui/themebuilder/
Which solution is better? 1 or 2?
