Telerik Forums
UI for ASP.NET MVC Forum
10 answers
842 views
I have a page where i use MVC validation when I click on submit on my form.  basically it uses:

@using (Html.BeginForm("InsertData", "DataPage", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.ValidationSummary(false, "Insert Data unsuccessful.")
...

one of the fields inside this form is:

@Html.Kendo().DropDownListFor(m => m.DType).BindTo(Models.DType.GetDTypes())

This DType business object has the [Required] data attribute on it,and it works great the first time.  If i select a DType from the dropdown, then the submit works fine.  if i don't select it, then i get a validation error in the summary above telling me i need to enter a value.

Great, no problems so far.  The problem though is now i have a validation error, so i correct it on the form by selecting a DType.  This does nothing.  I click submit, it tells me i still haven't entered a DType value.  Putting a breakpoint in the controller confirms that it's not recieving a DType value, despite the fact that i selected one.

If i change the dropdown to a basic @Html.DropDownListFor ... , it works fine, so i know the problem is with the kendo control.  What am I doing wrong here, and how can i fix it?  
Thanks

Georgi Krustev
Telerik team
 answered on 28 Jul 2015
1 answer
1.0K+ views

Hi, 

I want to use custom button in kendo grid toolbar which work as save changes button (i.e send edited list of rows),

I have a grid which has a checkbox column "Select"  , so when the checkbox is checked the row comes in edited state, and by simply pressing the Save Changes button I could send edited rows to controller method.

But problem is that I need two buttons (i.e ​Approve and Reject which needs to work same as the "Save Changes" button does) to do different tasks on selected records.

 

Attached here is snapshot.

Radoslav
Telerik team
 answered on 28 Jul 2015
1 answer
220 views
I have tooltips that I'm trying to initialize and I can't get it to work on the initial load of my view. The function is firing but it seems like the events have not been created yet on the DOM so I'm not able to attach a click event to them. I'm using a custom template with a class ".app". I'm doing a $('.app').each to find all my events on the scheduler. If I click one of the views or reload it with a button click it works. just when it officially loads for the first time. Any help would be great.
Bozhidar
Telerik team
 answered on 28 Jul 2015
1 answer
131 views

Hi,

 

I have a grid with several ForeignKeyColumns.

In IE11 when I click on a column the dropdown opens (for a blink) - the input moves a bit - and after that it works as expected.
I can also Tab through the fields - if I focus them first they move a bit (without opening) and after it they work normal.

In chrome the "initial moving and ''blink' opening" does not occur.

This only happens in IE when the column is to small to display the whole dropdown.

 

Rosen
Telerik team
 answered on 28 Jul 2015
2 answers
87 views

Hi,

I use a MultiSelect to choose several values in an m:n relation.

Everything works as expected as long as I select one or more values.
But when I select nothing I get the following error:

0x800a138f - Laufzeitfehler in JavaScript: Die Eigenschaft "length" eines undefinierten oder Nullverweises kann nicht abgerufen werden.

The failing code is for(n=0,i=e.length;i>n;n++)o+=n%2?s(e[n]):a(e[n]),r._data.push(e[n]);return o}

This happens only when I add a new record.
If I edit an existing one it is possible to remove the formerly chosen element and update after this.

I initialize the field via model.Field(p => p.Salads).DefaultValue(new List<EECanteen.Models.FoodItem>());

To explain my problem - I want to edit meal offerings for a day and can choose from zero or more salads.

ManniAT
Top achievements
Rank 2
 answered on 27 Jul 2015
4 answers
149 views
I'm trying to use Editing Custom Editor in my local Environment http://demos.telerik.com/aspnet-mvc/grid/editing-custom
But It is not working as it should be and not showing Drop Down List for Category Column in Edit mode and show numeric text box and text box instead
I'm using Northwind Database as in your example and I didn't change a lot in your code but it is not working .. so could you help to fix this issue and make it work as your example.
Dimiter Madjarov
Telerik team
 answered on 27 Jul 2015
5 answers
485 views

 In the webforms control I was able to set the Timeline to a specific day then set how many days I wanted to see after that day. I did this by setting the NumberOfSlots property. I have not been able to find this property in the MVC Scheduler. How do I get this same behavior with the MVC Scheduler control. 

 thanks for the help. 

Vladimir Iliev
Telerik team
 answered on 27 Jul 2015
5 answers
499 views

I want to use ClientRowTemplate with external template but cant seem to reference it

.ClientRowTemplate(  what goes here   ) 

how to do . thanks

<script id="cart-grid-template" type="text/x-kendo-template">
...
</script>

Dimiter Madjarov
Telerik team
 answered on 27 Jul 2015
3 answers
153 views

Hi,

 

I have two custom editors in my Grid.

One is a simple dropdown for a "ForeignKeyColumn" - using UIHint("MyEditor") this works fine in Inline as well as in PopUp edit mode.

An other column using a "MultiSelect" works in Inline but not in PopUp edit mode.

In PopUp the whole Column is not displayed.
It is something like the territories in Northwind, where on Record can belong to multiple Territories.
I works fine in Inline - but (for other reasons) I would need PopUp.

 

Manfred

Boyan Dimitrov
Telerik team
 answered on 24 Jul 2015
4 answers
1.5K+ views

Hi, I am using Kendo for ASP.Net MVC version 2015.2.264 using the Blue Opal theme.  I have a checkbox input which is not "checkable" when bound to a model property via the @CheckBoxFor razor syntax.  It renders correctly using the Kendo assigned theme, but does not allow you to check it even though it is not disabled.

 

This works:

     <div style="display:block;">
        <input type="checkbox" id="chkIntegrated" class="k-checkbox" name="Integrated">
        <label class="k-checkbox-label" for="chkIntegrated">Integrated 2</label> 
    </div>

 

 This does NOT work:

     <div style="display:block;">
        @Html.CheckBoxFor(Function(m) m.Integrated, New With {.class = "k-checkbox", .Id = "chkIntegrated"})
        @Html.LabelFor(Function(m) m.Integrated, New With {.class = "k-checkbox-label"})
    </div>

 

I have attached the test html page which illustrates this.  Any ideas? 

 

 

      

David
Top achievements
Rank 1
 answered on 24 Jul 2015
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
LLM Kit
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?