Telerik Forums
UI for ASP.NET MVC Forum
2 answers
267 views
Hi,

MVC controls helpers generated html, then on the end with ScriptRegistrar applied javascript to those elements. Now you are rendering script just after the element, so if I have 100 controls on page, 100 script "oneliners" would appear in generated html(both examples below).

Question is why change helpers behaviour(except initializanig control properties through jquery)? 

old way:

    <div class="t-widget t-dropdown t-header" style="width:100%;" tabindex="0"><div class="t-dropdown-wrap t-state-default"><span class="t-input">Value</span><span class="t-select"><span class="t-icon t-arrow-down">select</span></span></div><input id="someField" name="someField" style="display:none" type="text" value="0"></div>
//scripts are applied on the end with ScriptRegistrar, so clean html, no matter how much controls



new way

<span style="" class="k-widget k-combobox k-header"><span unselectable="on" class="k-dropdown-wrap k-state-default"><input class="k-input" type="text" autocomplete="off" tabindex="0" style="width: 100%; "><span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-arrow-down">select</span></span></span><input id="someField" name="someField" data-role="combobox" style="display: none; "></span><br><br><script><br><span class="Apple-tab-span" style="white-space:pre"> </span>

//this part bothers me, with each control I get this in html
<script>jQuery(function(){jQuery("\#someField").kendoComboBox({});});
</script>
Matt
Top achievements
Rank 1
 answered on 10 Jul 2012
3 answers
429 views
I am trying to dynamically add a tab using the append method, but I cant get any of the imageHtmlAttributes to get inserted into the html.
Here is my code:

tabStrip.append(
    [{
        text: tabText,
        content: "<iframe style=\"width:100%\" src=\"" + url + "\"></iframe> ",
        imageUrl: "/Images/dialog_close_button.png",
        imageHtmlAttributes: { "onclick": "closeTab($(this).closest(\"li\"));" },
        collapsible: true
    }]
);

However the onclick is never added.
Daniel
Telerik team
 answered on 09 Jul 2012
0 answers
123 views
Please disregard this thread as I have created another one:
http://www.kendoui.com/forums/mvc/grid/grid-with-nested-objects-datasource.aspx 
Yann
Top achievements
Rank 1
 asked on 09 Jul 2012
5 answers
365 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
139 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
792 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
285 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
325 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
132 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
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
Dialog
MultiColumnComboBox
DropDownTree
Checkbox
Slider
Switch
Notification
Accessibility
ListView (Mobile)
Pager
Security
ColorPicker
DateRangePicker
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
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?