Hello,
I am having a weird bug with the tooltip when using Firefox. The tooltip works correctly on Chrome and Safari, but with Firefox, the tooltip opens, closes, and reopens several times within a second and is stuck in an endless loop. I tried removing animations, changing the structure that invokes the tooltip, took out the onClick event and several other things, but nothing works. Firefox still has a bug on the tooltips.
The tooltip on the bottom left side of the page works, but the tooltip on the bottom right is the problematic tooltip. Both tooltips shared the same code, but I broke the code into two sections and changed the logic, the tooltip on the left has the tooltip position on the left, whereas the tooltip on the right has the tooltip position to show on the left. I had thought that this may be the problem as the position was not right, but that did not solve the issue either.
When debugging, I am seeing a k-animation container go from various classes. When the tooltip is shown, I see a tt_active class with display block, and when hidden, no class but display none. I have attached the files.
The bug can be reproduced by clicking on the map marker image at the bottom right of the page for every scene. The tooltip that works is on the bottom left. The URL is gregoryalexander.com/indexNew.cfm. The bug only exists when using firefox. Chrome works.
On another note, I wanted the tooltip (that is working) on the left to be colored blue, and the tooltip to the right (that is broken) to be colored green. These are the two colors of my logo at the top of the page. I tried to use the ID of the element and the k-tooltip class like so, but it did not work. I tried many other options, and can't seem to get the tooltips to use different colors without breaking the tooltip. How can I prefix the class or element when I style the .k-tooltip class like so?
#aboutThisImage .k-tooltip {
background: #698A50 !important;
width: var(--toolTipWidth);
height: var(--toolTipHeight);/*<cfif session.isMobile>175<cfelse>215</cfif>px;*/
font-size: var(--toolTipFontSize);
border-radius: 10px;
/* Subtle drop shadow on the main layer */
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
On my website I have three charts of type "Bar" displayed side by side. Each chart has a different count of data. What I like to achieve:
1. each chart area should have the same height no matter if there are 1 or 10 bars in it
2. the bars should align on top, not center inside the chart area
How can I achieve that?
Regards
Heiko
Hi
I'm trying to enable/disable a button base on the datepicker value. If I pick the value from the calendar the change event triggers perfectly fine but if I clear the textbox selecting the value and hit "backspace" the change event trigger only if I click out the control. Here is what I have now. I will appreciate your help, Thank you in advance.
$('#dtpDOB, #dtpEffDate, #dtpRecDate').kendoDatePicker({
format: "MM/dd/yyyy",
change: paramChange
});
function paramChange()
{
var count = 0;
var dtpDOB = $("#dtpDOB").data("kendoDatePicker");
var dtpRecDate = $("#dtpRecDate").data("kendoDatePicker");
var dtpEffDate = $("#dtpEffDate").data("kendoDatePicker");
var button = $("#btnSearch").data("kendoButton");
if (dtpDOB.value() !== null)
count += 1;
if (dtpRecDate.value() !== null)
count += 1;
if (dtpEffDate.value() !== null)
count += 1;
if(count >= 2)
button.enable(true);
else
button.enable(false);
}
Hi everyone, I've a scheduler with 2 different resources: buildings and classes.
a building is like this:
{ id: 1, name:
"house A"
}
a class is like this:
{ id: 1, name:
"class A"
, buildingId: 1 }
Now, classes is a "subresource" of buildings, can I group the 2 resources so that for each building i see only the related classes?
I hope you can help me.
David
Hi,
This Gantt in has Custom Field called "actualStart".
The default value of this field is null, but the view at this time want to blank rather than a "null" string.
Do you have any way?
actualStart: {
from:
"actualStart"
,
type:
"date"
,
defaultValue:
null
},
columns: [
{ field:
"title"
, title:
"title"
},
{ field:
"actualStart"
, title:
"actualStart"
, format:
"{0:d}"
},
],
thanks.
Hi,
i would like to know whether the logic in kendo.date.weekInyear() method consider the browser local when calculating the week number.
Because the first day of the first week does not always fall on the first day of the year
For example, in the US, the week that contains Jan 1 is always the first week. In the US, weeks also start on Sunday. If Jan 1 was a Monday, Dec 31 would belong to the same week as Jan 1, and thus the same week-year as Jan 1. Dec 30 would have a different week-year than Dec 31.
And i know that we can pass a parameter to kendo.date.weekInyear() method for weekStart(number between 0 to 6), If you consider browser local in method logic, how ti will behave once we also input weekStart as a paramter?
Hello,
I have a problem in my angular Kendo Grid not passing specified values to the controller.
This problem is very similar to these posts but the solutions didn't make a difference.
http://www.telerik.com/forums/how-do-i-use-the-datasourcerequest-object-as-an-asp-net-mvc-action-parameter
and
http://www.telerik.com/forums/datasourcerequest-sort-is-null
Here is the description:
I am so close and yet so far...
I am using an angular kendo grid with MVC end point for data. I have no problem getting the data to show so then I moved on to paging. Client side paging works but since the record count is high I would prefer serverside paging.
This is where I am missing something. My grid displays "Showing 1-5 of 18" so it is somehow parsing the count for the grid legend but the actual grid shows all 18 rows??
my _layout has among other files:
<
script
src
=
"@Url.Content("
~/Scripts/kendo/2016.1.412/kendo.aspnetmvc.min.js")"></
script
>
my grid:
$("<
div
/>").appendTo(e.detailCell).kendoGrid({
dataSource: {
transport: {
read: function (f) {
$http.get('http://localhost:59722/SCat/GetSubCategories?categoryid=' + e.data.Id).
success(function (data, status, headers, config) {
f.success(data)
}).
error(function (data, status, headers, config) {
alert('something went wrong with subCategories')
console.log(status);
});
},
create: function (c) {
alert('adf');
$http.post('http://localhost:59722/Cat/AddNewSubCategory').
success(function (data, status, headers, config) {
f.success(data)
}).
error(function (data, status, headers, config) {
alert('something went wrong with update')
console.log(status);
});
}
},
pageSize: 5,
serverPaging: true,
serverFiltering: true,
schema: {
data: "Data",
total: "Total",
errors: "Errors"
}
},
pageable: true,
filterable: true,
editable: "inline",
toolbar: ["create"],
columns: [
{ field: "SubCategoryName", title: "Category Name" },
{ field: "SCategoryId", title: "Parent Id" },
{ command: ["edit"]}
]
})
}
})
MVC Action:
public
async Task<JsonResult> GetSubCategories([DataSourceRequest] DataSourceRequest request,
int
? categoryid)
{
int
categoryId = categoryid ?? -9999;
if
(categoryId == -9999)
{
return
Json(
"[{Error -9999 for categoryId}]"
); }
HttpResponseMessage responseMessage = await client.GetAsync(url +
"/"
+ categoryId);
if
(responseMessage.IsSuccessStatusCode)
{
var responseData = responseMessage.Content.ReadAsStringAsync().Result;
var x = JsonConvert.DeserializeObject<List<SubCategories>>(responseData);
return
Json(x.ToDataSourceResult(request) , JsonRequestBehavior.AllowGet);
}
return
Json(
"[{Error}]"
);
}
Fiddler 200 json
{
"Data"
:[
{
"Id"
:1,
"SubCategoryName"
:
"asdfe"
,
"CategoryId"
:1},
{
"Id"
:3,
"SubCategoryName"
:
"Self-Righteousness"
,
"CategoryId"
:1},
...removed brevity...
{
"Id"
:18,
"SubCategoryName"
:
"Viuyhj"
,
"CategoryId"
:1}
{
"Id"
:19,
"SubCategoryName"
:
"zcxv"
,
"CategoryId"
:1}
],
"Total"
:18,
"AggregateResults"
:
null
,
"Errors"
:
null
}
Now I think I am missing something in my angular grid because my DataSourceRequest is ALWAYS full of default values.
Further if I explicitly assign the page value everything works.
public
async Task<JsonResult> GetSubCategories([DataSourceRequest] DataSourceRequest request,
int
? categoryid)
{
request.PageSize = 5;
....snip
}
o it has something to do with my Angular grid but I'm missing what???