Hi,
I have a scenario where we have a class as follows
Class RiskRegister
{
int projNo;
string projName;
List<Risk> InternalRisks
List<Risk> ExternalRisks
}
The view is shaped as
@Html.Partial("~/Views/RiskRegister/_riskRegister.cshtml")
@Html.Partial("~/Views/RiskRegister/_risksGrid.cshtml", Model.​InternalRisks)
@Html.Partial("~/Views/RiskRegister/_risksGrid.cshtml", Model.ExternalRisks)​
As shown, we are re-using the risksGrid as they are the same except for a flag
How do I get the Read action to populate the correct data on the corresponding grid? Please help
Hi there,
I am trying to add dynamic tooltip to treemap by using ajax function. Tooltip contents are synamic based on id of treemap element. So i decided to use ajax function in content of tooltip, Ajax will call to controller and return "Text" string content. When i wrote below to achieve this tooltip is blank without any content. I think i did some syntax error. Sorry i could not able to find relevant example also.
Code (View)
$("#treeMap").kendoTooltip({
filter: ".k-leaf,.k-treemap-title",
content: function (e) {
var treemap = $("#treeMap").data("kendoTreeMap");
var item = treemap.dataItem(e.target.closest(".k-treemap-tile"));
//return item.ParameterID + ": " + item.ParameterName + ": " + item.tooltip;
var parameterID = item.ParameterID;
$.ajax({
url: '@Url.Action("GetTooltipData", "Analysis")' + '?ID=' + parameterID,
success: function (data) {
//return data;
return "hi, this is test tooltip";
},
error: function (msg) {
toastr.error("Error: " + msg.statusText);
}
});
}
});
Thank you in advance for your support

Say i have three kendoDropDownList's. Each should populate their list using a different part of the response from a single remote json datasource. So say the datasource is this json object:
{
"somefield1":"someval",
"somefield2":"someval2",
"vendors":{
"vendor":[
{
"vendorName":"kroger",
"vendorID":251
},
{
"vendorName":"publix",
"vendorID":262
}
]
},
"drivers":{
"driver":[
{
"firstName":"bob",
"driverID":12,
},
{
"firstName":"bill",
"driverID":15,
}
},
"users":{
"user":[
{
"username":"charlie",
"employeeid":11
},
{
"username":"linda",
"employeeid":2
}
]
}
}
How would I ​get the first kendoDropDownList to bind to vendors, the second to drivers, and the third to users, without having to hammer the server with three separate requests?
Hello
I'm still using kendo 2014.3.1411, but planning to migrate to newest version shortly.
I've realized that default behaviour of multiselect was changed. The items after selecting are now not removed from list. I've looked into API reference, but cannot see the way to restore old functionality. Could you guild me how to keep my current kendo functionallity?
Hi everyone,
I encounter this problem and it's quite annoying, after writing on a input text that is data-binded to the model I have to click twice the button that is on the same div group. Here I provide a JSFiddle that shows the problem, if you remove the data-bind on the input text you don't have to click twice the button to fire the action.
http://jsfiddle.net/MKZfr/3/
In version 2015.3.930, it looks like the calendar.firstDay property is set to 1 (Monday) instead of 0 (Sunday) ​in the en-US culture definition. This is causing calendar and date picker widgets to start with Monday instead of Sunday. You can test this by running the following in your browser console:
kendo.culture("en-US");kendo.culture().calendar.firstDay; // Returns 1 (Monday)
For now, the quick fix is just to change this in the kendo.culture.en-US.min.js file.
Hi,
We'd like to achieve to replace defined keywords with html (text). we are able to insert at the caret position the html. But we have difficulties to remove the typed keyword. We've tried to simulate the backspace key triggerd by jQuery but it didn't work out well. We've tried to get the value from the editor and use the carrot position to remove/update the keyword. ​The caret position is related to the plain text value instead of the html value. With an existing html formatted text it fails. but we cannot use a regex replace because we dot not want to alter the text typed before.
A dojo: http://dojo.telerik.com/igabu/12
type 'test' press space and the keyword should be replaced by the given value. (item).
Possible solutions would be:
- remove last X typed characters. / trigger backspace.
- remove X characters from caret position (related to html value)
- ... ?
Any help is appreciated!
Regards,
Wilco
