Telerik Forums
UI for ASP.NET MVC Forum
5 answers
357 views
We are currently having problems achieving the same functionality we have in MVC Extensions.

1. In MVC Extensions we have a modified combobox helper below which allows us to set the initial value & text in a 'load on demand' combobox.  As part of the helper we also modify the name to change "-input" to "_input" so both the posted value and text can be bound to properties in our view model (ie int abc and string abc_input).  

Can you advise how to best achieve this using Kendo MVC combobox as we have been unable to convert the logic below.

            return helper.Telerik().ComboBox()
                         .Name(name)
                         .InputHtmlAttributes(new
                         {
                             id = name + "_input",
                             name = name + "_input",
                             value = text
                         })
                         .Value(value != null ? value.ToString() : string.Empty);

2. Perhaps related to my issue above but when I select an item from a kendo combobox and post the the results the combobox selection is not maintained when the view is redrawn... in fact the firebug shows only the combobox selected data value is posted

    @using (Ajax.BeginForm("Index", "Home", new AjaxOptions { HttpMethod = "POST" }))
    {
        @(Html.Kendo().ComboBox()
                .Name("TestComboID")
                .AutoBind(false)
                .DataTextField("Text")
                .DataValueField("ID")
                .Filter("contains")
                .DataSource(source =>
                {
                    source.Read(read =>
                    {
                        read. Action("GetProducts", "Home")
                    })
                    .ServerFiltering(true);
                })
        )
   
3. Server Filter

Currently to implement combobox server filtering in MVC extension is quick and easy.  The way it has been implemented in Kendo MVC examples requiring .Data to be manually set in the DataSource is clumsy and inefficient given the amount of code required.. If you only have a few combobox's it wouldn't be an issue but we have over 100... Is there any way to improve this so the value is automatically passed when server filtering is on?

Thanks in advance,
Danny
Georgi Krustev
Telerik team
 answered on 09 Jul 2012
3 answers
137 views
Hi,

The bottom border of my window is not showing in IE8 even though there is plenty of space.  Is this a known issue?  I am using the default theme.

Thank you,
Donna
Dimo
Telerik team
 answered on 09 Jul 2012
3 answers
1.1K+ views
I currently use the Telerik ASP.Net MVC 3 extensions.

What is the difference between Kendo UI Complete for ASP.NET MVC and Kendo UI Web?

Do they both support Entity Framework, Linq to Entities, and Data Annotations for the Models?

In addition, does Kendo UI Mobile support Entity Framework?

Basically, can you bind the UI Widgets to entities? All I see in th examples is datasource binding to manual entries or some service that serves up data. What about data coming back from a SQL Server database using LINQ and binding it to the widgets?

Also, in return, to update the database from the widgets....

Which product (Kendo UI Complete for ASP.NET MVC and Kendo UI Web) is best to use in what kind of scenario?

If so to any of the above questions, where can I find examples? 
Atanas Korchev
Telerik team
 answered on 09 Jul 2012
17 answers
775 views
Hi,
We just realized that the grid component does some kind of reordering even when no sort order is defined. It sorts the same way everytime, but I cannot see any real pattern to what it sorts on.

We do the sorting server-side and breaking inside the razor view and expanding the list sent to the grid (iqueryable with direct connection to Entity Framework) shows the expected sort order. However, when the grid component has processed it the sort order has changed.

Hopefully this can be fixed soon!

/Victor
Daniel
Telerik team
 answered on 06 Jul 2012
2 answers
275 views
Hi there,

I noticed an issue with the checkbox column for the batch-edit grid.  On the sample project that comes with the Kendo UI MVC Beta, if you navigate to the Batch Editing sample, you can see that the Discontinued column can't be changed from True to False (It works fine when changing from False to True).  In other words, after unchecking the checkbox and getting out of the the edit cell, it still shows up as "True" and has no dirty flag indicator.  Is this a known issue?  Please let me know if I'm missing anything.

Thanks,

Ben
Shawn
Top achievements
Rank 2
 answered on 05 Jul 2012
4 answers
322 views
When using EditorFor any data annotations applied to the ViewModel such as Required, StringLength, etc are not added to the wrapped TextArea as data attributes, therefore no client validation is applied.
Matt
Top achievements
Rank 1
 answered on 05 Jul 2012
1 answer
126 views
I've been trying to set a slightly complex filter for a grid using the Kendo Beta for ASP.net MVC. I've roughly followed steps from here: http://www.kendoui.com/forums/framework/data-source/can-or-be-used-to-filter-a-datasource.aspx#2058189

the results are not as expected. It is also possible to reproduce the problem in the samples (but only in the ASP.net mvc samples). 
If you go to this sample:
http://localhost:xxxxxx/razor/web/grid/ajaxbinding 

Then do the following:
  1. Filter Product Name equals Chai
  2. Filter Units in Stock > 18
  3. Change Product filter to be Chai or Chang
This should logically be (Chai or Chang) && (>18) but is returning the Chang product with a units in stock of 17. The order you apply the filters is important (e.g. if you now set the units in stock filter again you'll get the expected result).

Looking into it it seems that passing the filters from the client side to the server side is losing the nesting of filters, you can even see this in the server binding example where the url contains the filter but there are no parenthesis (or similar).

Rosen
Telerik team
 answered on 04 Jul 2012
0 answers
189 views
Hi,

Is there any sample showcasing how can we bind a Kendo Grid to WebApi using actions that do not follow the Telerik proposed signatures (DataSourceRequest) using the MVC Extensions?

I would like to make my API available for others to use and the DataSourceRequest in the input does not fit well in that requirement. I want to bind a grid to a controller that returns and receives my pure objects. For sorting and paging I would need to add extra arguments but I would prefer not to bind to a proprietary solution.

Thanks,
Pedro
Pedro
Top achievements
Rank 1
 asked on 04 Jul 2012
4 answers
158 views
The grid is bound like this:
 
@(Html.Kendo().Grid(Model).Name("organizationsGrid"))

The action is like this:

var model = new List<OrganizationSummaryModel> {
                new OrganizationSummaryModel { Code = "Xyz", Description = "Xyz Organization" },
                new OrganizationSummaryModel { Code = "Abc", Description = "Abc Organization" }
            };


return View(model); Throws this exception: System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) +64 System.Collections.ObjectModel.Collection`1.Insert(Int32 index, T item) +10635094 Kendo.Mvc.UI.Grid`1.WriteHtml(HtmlTextWriter writer) +746 Kendo.Mvc.UI.ViewComponentBase.ToHtmlString() +115 Kendo.Mvc.UI.ViewComponentBuilderBase`2.ToHtmlString() +62 System.Web.HttpUtility.HtmlEncode(Object value) +38 System.Web.WebPages.WebPageBase.Write(Object value) +68 ASP._Page_Views_account_SelectOrganization_cshtml.Execute() Using: Visual Studio 2010 with MVC 4 RC.
Pedro
Top achievements
Rank 1
 answered on 04 Jul 2012
2 answers
457 views
I noticed that while Telerik ASP.NET MVC ships with the unminified JS files, Kendo UI Complete for ASP.NET MVC does not (at least not for Beta 2). Is there a link to the unminified scripts such as http://cdn.kendostatic.com/2012.2.621/js/kendo.all.js
Matt
Top achievements
Rank 1
 answered on 03 Jul 2012
Narrow your results
Selected tags
Tags
Grid
General Discussions
Scheduler
DropDownList
Chart
Editor
TreeView
DatePicker
ComboBox
Upload
MultiSelect
ListView
Window
TabStrip
Menu
Installer and VS Extensions
Spreadsheet
AutoComplete
TreeList
Gantt
PanelBar
NumericTextBox
Filter
ToolTip
Map
Diagram
Button
PivotGrid
Form
ListBox
Splitter
Application
FileManager
Sortable
Calendar
View
MaskedTextBox
PDFViewer
TextBox
Toolbar
MultiColumnComboBox
Dialog
DropDownTree
Checkbox
Slider
Switch
Notification
Accessibility
ListView (Mobile)
Pager
ColorPicker
DateRangePicker
Security
Wizard
Styling
Chat
DateInput
MediaPlayer
TileLayout
Drawer
SplitView
Template
Barcode
ButtonGroup (Mobile)
Drawer (Mobile)
ImageEditor
RadioGroup
Sparkline
Stepper
TabStrip (Mobile)
GridLayout
Badge
LinearGauge
ModalView
ResponsivePanel
TextArea
Breadcrumb
ExpansionPanel
Licensing
Rating
ScrollView
ButtonGroup
CheckBoxGroup
NavBar
ProgressBar
QRCode
RadioButton
Scroller
Timeline
TreeMap
TaskBoard
OrgChart
Captcha
ActionSheet
Signature
DateTimePicker
AppBar
BottomNavigation
Card
FloatingActionButton
Localization
MultiViewCalendar
PopOver (Mobile)
Ripple
ScrollView (Mobile)
Switch (Mobile)
PivotGridV2
FlatColorPicker
ColorPalette
DropDownButton
AIPrompt
PropertyGrid
ActionSheet (Mobile)
BulletGraph
Button (Mobile)
Collapsible
Loader
CircularGauge
SkeletonContainer
Popover
HeatMap
Avatar
ColorGradient
CircularProgressBar
SplitButton
StackLayout
TimeDurationPicker
Chip
ChipList
DockManager
ToggleButton
Sankey
OTPInput
ChartWizard
SpeechToTextButton
InlineAIPrompt
TimePicker
StockChart
RadialGauge
ContextMenu
ArcGauge
AICodingAssistant
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?