I'm working through the Grid HtmlHelper extension example in the Telerik documentation. I get red squiggly line with 2 errors.Unknown method and unknown type. When i debug I get " CS0246: The type or namespace name 'KendoGridServerBinding' could not be found (are you missing a using directive or an assembly reference?)" I have the add namespace in web.config and the kendo.mvc is referenced in my project. I have attached the code and error.
I've downloaded and I'm running the kendoui-northwind-dashboard-master project.
In the OrdersController I've set a breakpoint on the Orders_Read Action.
I run the application in Debug and navigate to the Products & Orders page.
In Locals I drill down into orders/Results View and it returns 830 records.
I then set the Order Date filter to 'Is after 4/22/1998'.
In Locals I again drill down into orders/Results View and it still returns 830 records.
The view properly filters and returns 34 items.
1. Is Lazy Loading being used in this Grid?
2. If so how do I verify only the filtered records are returned from the DB query?
3. If Lazy loading is not being used in this project could you point me to or supply me with one that is?
I need to be able to build a project that scales properly so that I can return a subset of records rather than the thousands of records that will be in the database.
I've found a strange behaviour thats happening when i've got a grouped multi select list (again virtualised as asked in the other thread "Multi select change event not firing") and try to select an item.
The grouping function itself seems fine, as i can see the different items are under their respective headers, however when i try to select an item from the drop down list, a completely different item is selected instead of the selected item (most of the time it seems to be reversed, e.g. items 1, 2, 3, 4 showing on grouped list. Select item 1, and item 2 gets selected. Select item 2, item 1 gets selected. Sometimes the correct item is selected).
If there is no grouping applied, the selected value is always correct.
Hi,
For a Grid where inline editing is enabled and where the rows being edited contain dropdown lists, checkboxes and textboxes I would like to be able to toggle certain textboxes or ddls when a checkbox is checked/unchecked.
Please could someone advise the recommended approach to achieve this?
Thanks in advance.
@(Html.Kendo().Grid<
Customers
>().Name("grid")
.Scrollable()
.Pageable().Columns(columns =>{ columns.Bound(o => o.CompanyName); columns.Bound(o => o.ContactName);}).DetailTemplate(@<
div
>@(Html.Kendo().Grid<
Phones
>(item.Phones).Name("g" + item.ID).Scrollable().Pageable().Columns(columns =>{ columns.Bound(o => o.Number);}))</
div
>).DataSource(datasource => datasource
.Ajax().Read(read => read.Action("GetCustomers", "Home", new { x = "asd"}))))
Hi Everybody,
I have an ASP.NET MVC site, when I do some Razor code to add a Dropdownlist to the view.
I have the following code in my cshtml file for generating the Dropdown and it works fine.
<div class='col-md-8'>
@(Html.Kendo().DropDownListFor(m => m.CountryCode)
.DataTextField("Text").DataValueField("Value").
AutoBind(true).DataSource(dataSource => dataSource.Read(read =>
{ read.Action("GetCountries", "Member"); })).Events(f => f.DataBound("OnDataBound")))
@Html.ValidationMessageFor(m => m.CountryCode)
</div>
The output in IE 11
<
span
tabindex
=
"0"
title
=
""
class
=
"k-widget k-dropdown k-header"
role
=
"listbox"
aria-busy
=
"false"
aria-disabled
=
"false"
aria-expanded
=
"false"
aria-haspopup
=
"true"
aria-readonly
=
"false"
aria-activedescendant
=
"e8e82663-3c75-4f99-9459-7b7a41945db1"
aria-owns
=
"CountryCode_listbox"
unselectable
=
"on"
>
<
span
class
=
"k-dropdown-wrap k-state-default"
unselectable
=
"on"
>
<
span
class
=
"k-input"
unselectable
=
"on"
>Danmark</
span
><
span
class
=
"k-select"
unselectable
=
"on"
>
<
span
class
=
"k-icon k-i-arrow-s"
unselectable
=
"on"
>select</
span
></
span
></
span
><
input
name
=
"CountryCode"
tabindex
=
"8"
class
=
"k-valid"
id
=
"MedlemLandekode"
style
=
"display: none;"
type
=
"text"
value
=
"Danmark"
data-role
=
"dropdownlist"
data-val-required
=
"Feltet er påkrævet"
data-val
=
"true"
></
span
>
<
script
>
jQuery(function(){jQuery("#MedlemLandekode").kendoDropDownList({"dataBound":OnDataBound,"dataSource":{"transport":{"read":{"url":"/Felix.ASPNet.MVC/Medlem/GetCountries"},"prefix":""},"schema":{"errors":"Errors"}},"dataTextField":"Text","autoBind":true,"dataValueField":"Value"});});
</
script
>
<
span
class
=
"field-validation-valid"
style
=
"display: none;"
data-valmsg-replace
=
"true"
data-valmsg-for
=
"CountryCode"
></
span
>
I can see that my top element has tabindex = 0 instead of tabindex =8, this is avoiding me to tab into the dropdown list
Hi,
I'm trying to migrate my old gantt component for the telerik MVC gantt,
but I need to know if is possible to add new custom fields per task,
because the old one component handle more fields, like critical task, priority, status and attached files for each task, and I want to conserve these fields.
If it's possible, how to do that?.
Thanks,
Regards.
Hi all -
I'm using MVC5/EF6 along with JQuery, Bootstrap, and Kendo UI for MVC .NET. I have a grid setup that works perfectly in a normal view, using AJAX clientside binding. No issues.
However, I need to use this same grid within a partial view. When I use the EXACT same code, the client side functions no longer work in the grid (i.e. Filtering, Paging, Date Picker, etc.). The one function that does work is the Sort (???).
After digging around for a day, I think I saw somewhere that I may need to add specific Kendo JS scripts to my partial view to get things to work again. Unfortunately, I cannot find that page now that things make more sense.
So - let me ask here:
What do I need to do to get the Kendo MVC Grid client side functions to work inside a Partial View? Again, everything works inside a normal View using client side ajax configuration (the controller sends back JSON, etc.). The exact same code and client side ajax configuration is not fully functional in a Partial View.
Please advise. Thanks in advance!
I am curious about the timing of events for the TreeView and the Datasource.
I am trying to scroll a Treeview control's contents so that the expanded event is scrolled to the top. I have gotten this to work for the most part. You can read my solution in another thread. However, I am seeing the TreeView's Expand event fire before the datasource RequestStart and RequestEnd events.
This order does not seem to make sense. My scrolling of the treeview's selected node malfunctions periodically because the expand event fires first, before the datasource returns the data for the expanded node. This results in the scrolling not happening at all sometimes if returning the data takes a while.
Is this design intentional? If so, is there a way around it? If Javascript were multi-threaded, I could easily get around this but I cannot seem to come up with a way to get around this problem.
I would like to delay the Expand event until after the datasource RequestEnd event.
Possible?