Telerik Forums
UI for ASP.NET MVC Forum
0 answers
142 views
From the official 2016 Q2 Release (2016.2.504) the Scheduler will start using comma (previously semicolon) as delimiter for the recurrence exceptions. Also the Scheduler will no longer add trailing delimiter to the recurrence exception.

This change was required as the previous behavior does not conform to the RFC5545 spec:

From the official 2016 Q2 Release (2016.2.504) the Scheduler will start using comma (previously semicolon) as delimiter for the recurrence exceptions. Also the Scheduler will no longer add trailing delimiter to the recurrence exception. This change driven by the RFC5545 spec (previous behavior was incorrect):


http://tools.ietf.org/html/rfc5545#page-120
The following changes are required to all events that have "recurrenceException" set:
  1. Remove the trailing semicolon delimiter
  2. Replace all occurrences of semicolon with comma
//Old recurrence exception:
recurrenceException:"20160603T050000Z;20160503T050000Z;"
  
//New recurrence exception:
recurrenceException:"20160603T050000Z,20160503T050000Z"

Apologies for the caused inconvenience.
Kendo UI
Top achievements
Rank 1
 asked on 07 Jun 2016
1 answer
1.9K+ views

I'm using a kendo grid popup editor. I have a custom template (partial view) for edit. I have a drop down and on change event, I'm populating a TextBox. The problem is when I am sending the model to the controller, the TextBox value is null. It's not updating the model with the populated value. Any idea why?

@(Html.Kendo().DropDownListFor(w => w.AddressID)

.DataTextField("Name")

.DataValueField("AddressID")

.DataSource(source =>{ source.Read(read =>{ read.Action("GetAddressType", "DataSource")

.Data("filterAddressTypes");})

.ServerFiltering(true);})

.CascadeFrom("CodeIDAddressType")

.Events(e => e.Change("addressSubType"))

)

 

@Html.TextBoxFor(model => model.AddressLine1)

On an AJAX done function, I'm populating the value.
$("#AddressLine1").val(response.AddressLine1)

I can see the new value in the text box but when submitted, it sends null to the controller. If I enter the value in the AddressLine1 field instead of populating, it sends the entered value to the controller.

Eyup
Telerik team
 answered on 07 Jun 2016
2 answers
214 views

I have a form that is used to search for people's names and display them in an Telerik MVC Grid. Grid uses Ajax binding and paging. I have a problem with paging. My situation is that when a user searches for names and the search returns say 3 pages of results. The user flips a page and performs a search again narrowing it down to say 1 page of the results, the grid refreshes but stays on the flipped page which shows up empty because again there is only 1 page of results. Is there a way to reset the paging after each search? I handle the searching explicitly on client side by calling $("#gridElement").data("kendoGrid").dataSource.read();

Any help is appreciated.

Nik

Nikita
Top achievements
Rank 2
Iron
Iron
 answered on 06 Jun 2016
3 answers
1.2K+ views
I try to validate my model that has a date with fluentvalidation:
RuleFor(x => x.Aanvang)
    .InclusiveBetween(
new DateTime(2008,01,01), new DateTime(2100, 01, 01)).WithMessage("Wrong");


web.config has:
<globalization uiCulture="nl-NL" culture="nl-NL" enableClientBasedCulture="true" />

The kendo culture stuff is in place:
<script src="@Url.Content("~/Scripts/kendo/2016.2.504/kendo.aspnetmvc.min.js")"></script><br><script src="@Url.Content("~/Scripts/cultures/kendo.culture.nl-NL.min.js")"></script>

 Now when i enter 05-05-2015 in the datepicker, it throws the "Wrong" error. While it is accepted when i comment the fluentvalidator out. I figured that the gegenerated html is:

<input data-val="true" data-val-date="The field Aanvang must be a date." data-val-range="Onwaarschijnlijk" data-val-range-max="01/01/2100 00:00:00" data-val-range-min="01/01/2008 00:00:00" data-val-required="'Aanvang' mag niet leeg zijn." id="Aanvang" name="Aanvang" type="text" value="1-1-0001" data-role="datepicker" class="k-input k-invalid" role="combobox" aria-expanded="false" aria-owns="Aanvang_dateview" aria-disabled="false" aria-readonly="false" data-bind="value:Aanvang" style="width: 100%;" aria-activedescendant="01ceca7f-c8ee-45ed-87b9-e1357df3799c_cell_selected" aria-invalid="true">

 

That shows 01/01/2008 instead of 01-01-2008 format, nut sure if this is the problem, but it is differant and the only thing related thing i could find. Any advice?

 

as

 

Ianko
Telerik team
 answered on 06 Jun 2016
9 answers
269 views

Hi!

I'm attaching a small scale solution representing my own project that I have been working on and am facing an issue with a grid editor. After looking at numerous examples and Stack Overflow questions + this forum, I finally came to this setup. There is an issue in this implementation that I cannot trace out. upon making a selection in the Terminal Dropdown, an error occurs out of a dynamic script.

Secondly, one more thing that bothers me is that i need to NOT use AJAX calls for the basic IO on the list of objects. I believe it is possible to do it in memory with the datasource.data method. Still struggling with that.

In the end, once the user submits the form, I simply need to retrieve all added services from the BookedServices collection in the Save action of the Home controller. Can you please fix this for me?

Shafi
Top achievements
Rank 1
 answered on 05 Jun 2016
3 answers
99 views

I want to use the Grid Inline editing that presents an Update and Cancel button but I want to intercept the Update request so that I can call the Update event in the controller when a custom "Save" button is clicked.

Right now I can tap into the Update event and call grid.cancelRow() and call e.preventDefault() but in doing so when the grid cancels the edit returns the data to it's original state.  I know this is desirable for the normal scenario but in this scenario I want the update button to close the edit template in the row and leave the updated values in place and to leave the record marked as dirty.

Optimally it would leave the red triangle modified indicators in the modified cells.

 

Any suggestions would be appreciated.

Maria Ilieva
Telerik team
 answered on 03 Jun 2016
2 answers
89 views

I am trying to use a ListView control in an ASP.NET RC1 project. I have added all the required stuff from the documentation..

1. js and styles folders

2. script references in layout 

<script src="~/lib/kendo-ui/js/jquery.min.js"></script>
<script src="~/lib/kendo-ui/js/kendo.all.min.js"></script>
<script src="~/lib/kendo-ui/js/kendo.aspnetmvc.min.js"></script>

3. services.AddKendo(); in Startup.cs

However when I add this to my page I am getting a javascript error

jquery(...).kendoListView is not a function

 

@(Html.Kendo().ListView<Microsoft.Graph.Group>()
.Name("groupView")
.TagName("div")
.ClientTemplateId("grouplistTemplate")
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("Groups_Read", "Groups"))
)
)

 

What could the issue be?

 

Thanks
AJ

Marin
Telerik team
 answered on 03 Jun 2016
1 answer
257 views

I've overridden the treeview CSS using the following code and while everything looks fine in desktop Chrome/IE/Firefox I'm having trouble in Chrome on Android.  I'm seeing multiple icons to expand and contract the treeview nodes.  It appears to be displaying a 64px square of the sprite.

 

<style scoped>
    .k-icon, .k-tool-icon, .k-grouping-dropclue, .k-drop-hint, .k-column-menu .k-sprite {
        background-image: url('/content/kendo/2015.1.429/default/sprite_2x.png');
        border-color: transparent;
    }

    .k-icon {
        width: 32px;
        height: 32px;
    }

    .k-treeview .k-item {
        font-size: 28px;
    }

    .k-treeview .k-minus {
        background-position: 0 -256px;
    }

    .k-treeview .k-plus {
        background-position: 0 -286px;
    }

    .k-treeview .k-in {
        line-height: 32px;
    }

    .k-treeview .k-item, .k-drag-clue {
        font-size: 28px;
        padding: 0 0 0 32px;
    }

    .k-add {
        background-position: -96px -416px;
    }

    .k-insert-middle {
        background-position: -320px -96px;
    }

    .k-denied {
        background-position: -96px -96px;
    }

    .k-insert-bottom {
        background-position: -320px -128px;
    }

    .k-insert-top {
        background-position: -320px -64px;
    }
</style>

 

Thoughts

Peter Milchev
Telerik team
 answered on 03 Jun 2016
3 answers
155 views

I have a Kendo MVC Grid that has inline editing enabled.  The form has a master SAVE button on top of the form.  The intent is to let the user modify multiple rows and then do one master save.

 

So right now the EDIT button allows the user to edit the row values and presents an UPDATE button.  This works in that the update method specified in the grid's configuration fires the controller event.  In that event I just return the row that was sent in.  That is all working but we would like the red indicator to show in the row in the modified cells after the controller action and then be cleared when the master save button is clicked, and the JavaScript submits the form's modified rows to that controller action in an AJAX batch action on the form.

 

Can someone offer a possible solution?

 

Thanks

Reid
Top achievements
Rank 2
 answered on 03 Jun 2016
1 answer
197 views

I stuggle with this grid and editortemplate with a combobox. My model has a int? idAfdeling that is the foreign key.

With the valuePrimitive set to false, the idAfdeling remains null after a combobox item is selected, it will update once the initial idAfdeling is not null.

With the valuePrimitive set to true, the idAfdeling is updated after selecting an item, but the autobind option is not respected and an ajax call is made.

 

Now i wonder if there is any option to make the combination (combobox, nullable int, bind on demand) work..

@(Html.Kendo().ComboBoxFor(m => m)
    .DataTextField("Omschrijving")
    .DataValueField("idAfdeling")
    .DataSource(ds =>
    {
        ds.Read(read => read.Action("Afdelingen", "Afdeling", new { Area = "Tabellen" }).Data("passAfdeling"));
    })
    .HeaderTemplateId("AfdelingHeaderTemplate")
    .TemplateId("AfdelingTemplate")
    .Suggest(true)
    .ValuePrimitive(false)
    .AutoBind(false)
)

 

 

 

 

 

Bozhidar
Telerik team
 answered on 03 Jun 2016
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
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?