Hi,
I have one table
Employee
..............
EId EName CompanyId's
1 a 1,2
2 b 2
2
my requirement is that need to display comma separated values in grid
can any one help me
I have a chart which, depending on a button group selection, will display a different data item in a line series. This is handled server-side, with the chart definition not needing to be changed.
However, I do need to change the name displayed on the value axis and legend name.
I can do this by using the following code:-
var specChart = $("#chortcategorytrendchart").data("kendoChart");
specChart.options.valueAxis[1].title.text = sName;
specChart.options.series[1].name=sName;
specChart.refresh();
This works, but I also need to call the chart datasource.read:-
$('#chortcategorytrendchart').data("kendoChart").dataSource.read();
When I do this, the value axis title remains changed correctly, but the series name in the legend reverts to the default setting in the chart definition.
It doesn't make a difference if the read is called before or after the chart refresh.
I am using version 2021.2.511. How can I stop the read call changing the series name back?
Are there any online examples of where a dropdrownlist control is used inline as a column with the MVC TreeList?
I need the column to be active at all times,. We don't want to utilize the popup editor.
I tried adding a column with a template like this:
@(Html.Kendo().TreeList<VendorPortalCatalogItem>()
.Name("myClassTreelist")
.Columns(columns =>
{
columns.Add().Field(e => e.Name).Width(220).TemplateId("name-template");
columns.Add().Field(e => e.DaysToShipId).TemplateId("dts-template");
})
.Filterable()
.Sortable()
.DataSource(dataSource => dataSource
.Read(read => read.Action("TreeList_LoadAll", "DaysToShip"))
.ServerOperation(false)
.Model(m =>
{
m.Id(f => f.Id);
m.ParentId(f => f.ParentId);
m.Field(f => f.Name);
m.Field(f => f.IconClass);
})
)
.Height(540)
)
And my template looks like this:
<script id="dts-template" type="text/x-kendo-template">
@(Html.Kendo().DropDownList()
.Name("DaysToShipId")
.OptionLabel("Select days to ship...")
.HtmlAttributes(new { style = "width: 100%" })
.DataTextField("Text")
.DataValueField("Value")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("ddlDaysToShip_Read", "DaysToShip");
});
})
.Height(400)
)
</script>
But all this does is throw console error "Uncaught error: Invalid template"
Hello,
Is there any way to have a delete confirmation popup or message when the Delete button is clicked in a TreeList?
I've tried using
events.Remove("onRemove");
as shown in the Events demo. I'm using a JavaScript confirm, but the row is still deleted when I click cancel.
Many thanks,
Richard
I have a form generated using Html.Kendo().Form. I would like to be able to export the contents of the form (labels, textboxes, checkboxes) to a new PDF on the click of a button, and then subsequently merge it with another PDF.
Is there a generic method that would enable me to do this, rather than using the PdfProcessing Library to create a new document and then add each of the fields from the ViewModel one by one.
Thank you.
I have a grid with a clienttemplate. How do I filter on the template text instead of the bound field?
columns.Bound(e => e.ProjectAddress).Title("Address").Width(150).Filterable(f => f.Extra(false))
.ClientTemplate("#=ProjectAddress#<br/>#=ProjectCity#, #=ProjectStateCode# #=ProjectPostalCode#");
I want to filter on address, city, state and zip code not just ProjectAddress.
Thanks.
Hello,
I want to create a data table below the chart like the picture.
Can Kendo UI do this? I have searched but no results as expected.
Please help:
Thanks,
An
I have multiple switches on a page, each switch has the same class assigned to it.
What i need is that if any switch is checked / changed i need an event to fire and also need to check the state of the remaining switches.
@(Html.Kendo()
.SwitchFor(a => a.IsAdmin)
.HtmlAttributes(new { @class = ".permissions" })
.Messages(c => c.Checked("YES").Unchecked("NO")))
I have tried numerous jquery approaches but none of them even fire when the switch is toggled.
$('body').on('change', '.permissions', function () {
// this event handler never gets trigged.....
// get an instance of each switch and get the toggled / checked state.
alert();
});