I'm trying to add a new view/controller using the Kendo UI Grid Scaffolding.
I am able to set the controller name, and select an existing model and view model; however, the drop down for the 'Data Context Class' is empty.
How do I specify a data context class? I'm using Nhibernate as an ORM.
I am trying to filter my grid with on a column that is bound to an array property. I have the column displaying as expected, however when i add the filterable option with multiselect it does not pull the options properly.
Here is my model that i am using.
public
class
CruiseGroupTile
{
//Other properties...
public
string
[] Destinations {
get
;
set
; }
}
Here is the asp.net mvc wrapper for displaying grid along with the client template method to display the array column correctly
@(Html.Kendo().Grid<
CruiseGroupTile
>()
.Name("grid")
.Columns(columns =>
{
//Other columns...
columns.Bound(m => m.Destinations).Filterable(filterable => filterable.Multi(true)).ClientTemplate("#= arrayToComma(Destinations) #");
})
.DataSource(dataSource => dataSource.Ajax().Read("GetCruiseGroups", "Home").PageSize(20).ServerOperation(false))
.Pageable()
.Filterable()
.Mobile()
)
function
arrayToComma(items) {
return
items.map(
function
(item) {
return
item;
})
.join(
','
);
}
Is there a working theme builder for Telerik MVC components? The "http://themebuilder.telerik.com/" seems to output themes for Rad components (Telerik UI for AJAX, I believe) which won't work with the MVC components. The "http://demos.telerik.com/kendo-ui/themebuilder/" one isn't really fully functional as all it allows you to do is change some colors, and even the "selected" color isn't wired correctly. The default themes in my opinion are ugly, with really ugly colors. But the Telerik MVC CSS is so nested, and inter-connected, it's practically impossible to get a good looking and consistent custom site by overriding a few CSS tags. I change a color in my grid, but now mu panelbar is ugged up, if I change a selected value in my panelbar, now my menu is ugged up. What I really need is an in-depth tutorial on changing themes without f****** everything else up.
So... Is there?.
I have a solution with twoprojects in it.
By error both projects have the telerik softwar einstalled but it is only needed by one. Is it possible to remove the telerik extensions from a project?
Maurice
I am having trouble with comboboxes that are in a grid. The first time I type in a value (e.g. 044), it filters to the 044 items and selects the first one perfectly. If I then go back to that field and type 043, it filters correctly but as you can see in the attached image, it does not select the first item. This means that when I hit tab or enter to exit the column, I throw an error because the field is required. Why is this not working the second time I filter? I can do this over and over again where it filters once and then not the next time and then it works and then it doesn't. What am I missing?
Here is the editor I am using. I have tried both clientside and serverside filtering and loading as you can see. Nothing helped. It is a big list but not huge (around 1000 items in the list).
@(Html.Kendo().ComboBoxFor(m => m)
.Name("TransactionCode_Code") // Name of the widget should be the same as the name of the property
.DataValueField("Code") // The value of the dropdown
.DataTextField("CodeDescription") // The text of the items
.BindTo((System.Collections.IEnumerable)ViewData["TransactionCodes"]) // A list of all TransactionCodes which is populated in the controller
//.DataSource(dataSource =>
//{
// dataSource.Read(read =>
// {
// read.Action("GetTransactionCodesCash", "Utility").Data("filterTransactionCodesCash");
// })
// .ServerFiltering(true);
//})
.Placeholder("Select one...")
.HtmlAttributes(new { style = "width:90px" })
.Height(350)
.Filter(FilterType.StartsWith)
//.AutoBind(true)
.HighlightFirst(true)
.Suggest(true)
.Events(e => e.DataBound("transactioncode_dataBound").Change("transactioncode_changed").Filtering("transactioncode_filter"))
//.Events(e => e.Change("transactioncode_changed"))
.ClearButton(false)
.MinLength(3)
)
I use Kendo().Scheduler and Kendo().Calendar() at same time
I want if date on scheduler change and then calendar date also change
How to link scheduler and calendar?
I create a new controlled called RoleController as UI for MVC Grid, it shows me "invalid modelo configuration".
My Role class is generated by EF6.
What's up?