Hello,
How can i do to export to PDF in angular 4 ?
I didn't find the documentation.
Thank you!
Hi kendo team,
Is there an event that I can listen to for resize column width, like how grid do? I want to remember the spreadsheet column width for user preferences, so on page reload, column will have same width.
The only event I find that's close is the render event. However, it's fired way too frequently. Any suggestion for work-around?
Best,
Anna
Issue: When using defineName() having the tag name using a . adds quotes around the objects key
Image with defineName demo: image01
Required behaviour. Need to convert . to * for example: dog.text_text should be dog*text_text, or when passing this value dog.text_text the objects key dog"."text_text should not be wrapped in quotes.
another image02 is shown how the object key should be shown using the browsers console
Also error message just says invalid name : {name} and has no useful information to figure out the issue
I have an auto complete field that pulls in my vendors. Related to my vendors are pay terms. On the UI the pay terms is a drop down list. When I select vendor from the auto complete, how do I get the pay terms to be selected on the drop down list? Thanks in advance.
<div class="form-group row mt-4">
@Html.LabelFor(model => model.VendorName, new { @class = "col-sm-3 col-form-label" })
<div class="col-sm-9">
@Html.TextBoxFor(model => model.VendorName, new { @class = "form-control", maxlength = "50", type = "text", @id = "txtVendorName" })
@Html.ValidationMessageFor(model => model.VendorName, "", new { @class = "text-danger" })
<script id="noDataTemplate" type="text/x-kendo-tmpl">
<div>
No data found. Do you want to add new vendor - '#: instance.element.val() #' ?
</div>
<br />
<button class="k-button" onclick="addNewVendor('#: instance.element[0].id #', '#: instance.element.val() #')">Add new vendor</button>
</script>
</div>
</div>
<div class="form-group row mt-4">
@Html.LabelFor(model => model.InvoiceTermID, new { @class = "col-sm-3 col-form-label" })
<div class="col-sm-9">
@(Html.Kendo().DropDownListFor(x => x.InvoiceTermID)
.OptionLabel("Select Terms")
.DataTextField("Text")
.DataValueField("Value")
.HtmlAttributes(new { style = "width: 100%" , @required = "required", @validationMessage = "The Terms field is required.", id="ddlTermID" })
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetInvoiceTermsSelectList", "Dropdown");
});
})
.Value(Convert.ToString(Model.InvoiceTermID))
)
@Html.ValidationMessageFor(model => model.InvoiceTermID, "", new { @class = "text-danger" })
</div>
</div>
$(document).ready(function () {
$("#Date").attr("readonly", true);
$("#txtVendorName").kendoAutoComplete({
dataSource: {
type: "json",
severFiltering: true,
serverPaging: true,
transport: {
read: '@Url.Action("GetVendors", "PurchaseOrder")',
parameterMap: function (data, type) {
return { filter: $('#txtVendorName').val() };
}
}
},
clearButton: true,
filter: "contains",
dataTextField: "Name",
minLength: 3,
placeholder: "Search Vendor Name ...",
noDataTemplate: $("#noDataTemplate").html(),
select: onSelectVendor,
change: function (e) {
var vendorId = $("#hdnVendorID").val();
if (vendorId == "" || vendorId == 0) {
$("#hdnVendorID").val("");
$("#txtVendorName").val("");
}
},
filtering: function (e) {
$("#hdnVendorID").val("");
}
});
function onSelectVendor(e) {
var dataItem = this.dataItem(e.item.index());
if (dataItem && dataItem.VendorID > 0) {
$("#hdnVendorID").val(dataItem.VendorID);
//$("#ddlTermID").val(1);
}
}
Hi,
what's the best and easiest way to save the selected row, make a refresh/reload and select the row again?
var
grid = $(
"#grid"
).data(
"kendoGrid"
);
// here I want to save the selected row/id (in a variable?)
grid.dataSource.read();
// re-select the previous "saved" row
Please refer to this example of KENDO UI
https://demos.telerik.com/kendo-ui/line-charts/index
If I click EXAMPLE I will see the chart with a background-image exactly like I need to do in a chart in my Unigui code
If I click VIEWSOURCE I will see the html code corresponding to the chart including the part related to the background
<div id="chart" style="background: center no-repeat url('../content/shared/styles/world-map.png');"></div>
MY DOUBT is :
How can I insert a part of the html code inside my Unigui + Delphi code ?
I think I did something like this in the past using "ClientEvents"
Can you help me on this ?
Hi team,
I want every of my kendo dialog to open and close with the same animation. Is there a way to define it in a single place, instead of adding the configuration on every single dialog ?
Many thanks,
Valentin