How to retain expanded grid's filter after dataitem.set()?
even after using detailExpand and detailCollapse, for restoring expanded rows, we can not keep sort order as it was.
here is the demo : http://dojo.telerik.com/@Ankita/AYOKA
Steps to reproduce:
1) Expand Row 1 - Product ID 1 -> that will expand sub grid
2) Sort sub grid -> keep company name desc ( you can see company name 5 on top row)
3) Click on button Update total price. ( function call's dataItem.set() method to update parent Rows' column value)
4) you can see Product ID 1 -> Total Price will change to $11.00, keeping sub grid expanded. but here we are lossing sort order of the sub grid. 1st row should be "Company Name 5" not "Company Name 1"
If we do not use dataItem.set and try to assign value as
"parentDataItem["TotalPrice"] = 10 + parentDataItem.TotalPrice", grid wont be updated with new value $11.00
Constrain : we have to use "dataItem.set()" to apply css changes to editable cell. we can not use "dataItem.field = value"
becuase it will introduce some other error.
Can you please help me out here?
Thanks in advance,
Ankita
Hi everyone, I have a .Net Core/MVC6 application. I get all the Kendo controls to render using the .Deferred() option, but I can't get the ClientTemplate Grids to work? Here is the code
[code]
@(Html.Kendo().Grid<UserViewModel>()
.Name("UserGrid")
.Columns(columns =>
{
columns.Bound(u => u.FirstName);
columns.Bound(u => u.LastName);
columns.Bound(u => u.Email);
})
.ClientDetailTemplateId("userOrders")
.Sortable()
.Pageable()
.Filterable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(30)
.Read(read => read.Action("UserGrid_Read", "Admin"))
)
.Events(events => events.DataBound("userGridBind"))
.Deferred()
)
<script id="userOrders" type="text/kendo-tmpl">
@(Html.Kendo().Grid<UserOrderViewModel>()
.Name("UserOrders_#=UserId#")
.Columns(columns =>
{
columns.Bound(o => o.OrderVat);
columns.Bound(o => o.OrderTotal);
})
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(10)
.Read(read => read.Action("UserGrid_Orders", "Admin", new { userId = "#=UserId#" }))
)
.Pageable()
.Deferred()
.ToClientTemplate()
)
</script>
[/code]
I receive a Syntax error, unrecognized expression: #UserOrders_#=UserId#
I have tried remove the deferred, then it doesn't render at all. I have also tried using \\#=UserId\\# but no change.
How do we get it to work using .Net Core/MVC6 and the deferred options?
Thank you.
Hello,
I'm trying to put a Kendo Upload control in a grid (which should display uploaded files), but I can't figure out how to do it.
I tried something like
var $upload = $('<input type="file" id="upload">').kendoUpload();('#files-grid').kendoGrid({ // Other configuration ... toolbar: [{template: $upload.html()}]});
but that doesn't seem to work. Any hint as to how to achieve this? I've seen references to `kendo.template`, but it's unclear how to use Kendo controls with it, and not just plain HTML.
Of course, later I'll want to further configure the upload control, but I left it blank for now.
Thank you.
Hi ,
Recently , we were handling a project assigned by Taiwanese(an east country) .
The problem we have is the different year.
e.g.(2016(A.D) = 105(Taiwan year))
which is A.D year minus 1911 then we get Taiwan year
We need to change every A.D year to Taiwan year just like the attached image
How do i implement it or is there any example ?
Thanks .
How can I add a custom footer with a simple unordered list of notes about the data being displayed?
Hello,
I was wondering if there is a way to adjust the space between events when a column has multiple events inside it? My design calls for the events to slightly overlap and a css style to apply a white left border to give a divide between each event.
Thanks!
Hi All,
I have created a kendo Dropdown List however the control is not populating the values from the given data source.
Can someone help me where I went wrong??
Dojo Location : http://dojo.telerik.com/@bkantu/OLuvo/2
Thanks,
Balu

How does batch editing work? If I were to create 3 new rows, and hit Save, would the "dataSource.create" function be called 3 times in succession? (first call for first row, etc..)
I would like to have a custom confirmation kendoWindow that pops up when the user hits save. However, the AJAX calls to the serverside should only go through if the user presses the "Yes" button in that pop up. How can I achieve this behaviour? Here's an example
windowService.displayCurrentWindow("Create"); // popup window$("#yesButton").click(function () {
windowService.closeCurrentWindow(); api.post(url, e.data) .then( function success(response) { // do stuff }, function error(response) { e.error(); });})$("#noButton").click(function () { windowService.closeCurrentWindow();})Hi,
I try to add a new tag by clicking "enter" on the keyboard.
i found this:
http://dojo.telerik.com/@ggkrustev/UxOvO
This example showing how to add new tag by click "comma", and would like to improve it to also support clicking enter( ==13).
Any ideas ?
Thanks,
Ran