Telerik Forums
UI for ASP.NET MVC Forum
2 answers
104 views

I am evaluating Telerik ASP.NET MVC for a small shop of C# developers with minimal to no javascript background. In particular the DropDownList event demo (but the same problem applies to many of the demos). The demo link here:

http://demos.telerik.com/aspnet-mvc/dropdownlist/events

Now a typical use case for this component for an ASP.NET MVC developer would be to:

1.Load the DropDownList from an MVC Controller

2. Detect a selection changed event

3. Do something with the selected value in an MVC context, such as having an ActionLink in a Razor view to pass the selected item back to the mvc controller as an action param, or calling a GET on an MVC controller from JavaScript with the selected value in order to demonstrate the "full round trip"

 Instead these demos show the bare minimum (outputting to client side log). It would be nice for these demos go the extra mile to show some real non-trivial use-cases in the example code. Sure, you can find the answer to the above stuff by spending half a day in the forums hoping someone else had the same question and searching stackoverflow, etc, but for us the quality and depth of the example code will be the deciding factoring in purchasing a license, thanks

 

 

 

 

UM
Top achievements
Rank 1
 answered on 28 Jul 2015
3 answers
216 views
I've two columns in my Grid . on first column i want divide by 2 operation and on the second i want that if the value is greater than zero then a local variable value is green
Viktor Tachev
Telerik team
 answered on 28 Jul 2015
10 answers
736 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,000 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
181 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
101 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
62 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
116 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
432 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
430 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
Narrow your results
Selected tags
Tags
Grid
General Discussions
Scheduler
DropDownList
Chart
Editor
TreeView
DatePicker
Upload
ComboBox
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
ListView (Mobile)
Pager
Accessibility
ColorPicker
DateRangePicker
Wizard
Security
Styling
Chat
MediaPlayer
TileLayout
DateInput
Drawer
SplitView
Barcode
ButtonGroup (Mobile)
Drawer (Mobile)
ImageEditor
RadioGroup
Sparkline
Stepper
TabStrip (Mobile)
GridLayout
Template
Badge
LinearGauge
ModalView
ResponsivePanel
TextArea
Breadcrumb
ExpansionPanel
Rating
ScrollView
ButtonGroup
CheckBoxGroup
NavBar
ProgressBar
QRCode
RadioButton
Scroller
Timeline
TreeMap
TaskBoard
OrgChart
Captcha
ActionSheet
Signature
DateTimePicker
AppBar
BottomNavigation
Card
FloatingActionButton
Licensing
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
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?