Telerik Forums
UI for ASP.NET MVC Forum
1 answer
371 views

I have application, which uses cs-CZ globalization. Everything is OK, but Kendo grid is not. Problem is in decimal separator in decimal columns. Grid calls my Action method and every sends "." instead of "," as decimal separator. There is my Action method:

 ActionResult UpdateProjectEmployee([DataSourceRequest] DataSourceRequest request, Models.ProjectEmployee employee )
 { 
    if (employee != null & ModelState.IsValid)
    {
      ...

  
My Action method fails (ModelState.IsValid is false), because MVC is not able to create my model, beacuse of decimal separator is "." and Convert methods expect "," because I use cs-CZ globalization. I thing, it is a bug in kendo Grid! I resolved this by using FormCollection instead of my model:
 
 ActionResult UpdateProjectEmployee([DataSourceRequest] DataSourceRequest request, FormCollection data )
 { 
    CultureInfo ci = new CultureInfo("en-US");
    Models.ProjectEmployee employee = new Models.ProjectEmployee();
    employee.TotalHours = Convert.ToDecimal( data["TotalHours"], ci );
 ...
 

But it is not so nice :(
 
   

Dmitry
Top achievements
Rank 2
 answered on 30 Nov 2012
1 answer
136 views
First things first...
This example does not have the correct "code behind"
http://demos.kendoui.com/web/grid/editing-custom.html

I want to create a custom-editor popup.

Actually I'd like to create a custom-editor that shows up like the detail template does...

So two questions:

  1. Where is a good example of creating a custom-editor (using Razor preferably)?
  2. Is it possible to have the custom editor display as a detailed editable template "InLine"


Daniel
Telerik team
 answered on 29 Nov 2012
1 answer
7.5K+ views
Hi, 

I am new in Kendo UI and I have some problems in using all kendo ui functionality ib my asp.net mvc 4 application.
I'va done following steps
1.download kendo ui and include it's scripts and styles in my application
2.update jquery to 1.8.2 version
3. include kendo.all.js, kendo.aspnetmvc.js, kendo.common.css and kendo.default.css in my layout.chtml
4.and there's similar code in my scripts 
   var dataSource = new kendo.data.DataSource({
                        data: movies,
                        change: function() { // subscribe to the CHANGE event of the data source
                            $("#movies tbody").html(kendo.render(template, this.view())); // populate the table
                        }
                    });
where I was given a javascript error "uncaught referenceerror kendo is not defined"

Please help me. What's wrong in my actions? What ca be the reason of such error? I wasn't able to find similar issue in your forums.

G.A.
Top achievements
Rank 1
 answered on 29 Nov 2012
4 answers
131 views
I'd like to maintain same appearance for web apps built on asp.net mvc extensions when considering migrating to Kendo UI Web.

Is there any plan to make available the same set of themes for Kendo UI Web as existed in past for Telerik ASP.NET MVC extensions?
Carl
Top achievements
Rank 1
 answered on 28 Nov 2012
0 answers
125 views
Never mind. I got it.
Shannon
Top achievements
Rank 1
 asked on 28 Nov 2012
18 answers
3.4K+ views

I'm trying to recreate a data grid that I've got working with the old MVC extensions, with the Kendo UI MVC extensions, but the documentation is virtually non-existent. Looking at the example, I've managed to get data into a grid, but it doesn't sort or filter (I'm not sure about apging, as there's only a few records at present.

The view is:-

@(Html.Kendo().Grid<PLCV2.Models.PLCVUser>() 
    .Name("Grid")
    .Columns(columns =>
    {
        columns.Bound(p => p.UserName);
        columns.Bound(p => p.FullName);
        columns.Bound(p => p.SystemAdmin);
        columns.Bound(p => p.SystemUser);
    })
    .Pageable()
    .Sortable()
    .Scrollable()
    .Filterable()
    .DataSource(dataSource => dataSource
        .Ajax()
        .Read(read => read.Action("AjaxBinding", "UserMgmt"))
    )
)

and the controller is:-
public ActionResult AjaxBinding([DataSourceRequest] DataSourceRequest request)
       {
 
           Models.PLCVdBDataContext db = new Models.PLCVdBDataContext();
           var query = from p in db.PLCVUsers
                       select p;
           //query = query.OrderByDescending(c => c.UserName);
           return Json(query.ToDataSourceResult(request),JsonRequestBehavior.AllowGet);
       }

 

How do I enable sorting and filtering?
Also, I had to add the AllowGet JsonRequestBehaviour, to get the grid to work. Your examples don't seem to require this - how?

Where is the documentation for the MVC extensions? I can only find a very brief (and very lacking!) migration overview, which fails to mention many of the server-side changes (no GridAction, the new DataSourceRequest etc..).

I'm keen to try out the new extensions, but without more documentation, it doesn't seem feasible.

 

 

 

 

 

Erik
Top achievements
Rank 2
 answered on 28 Nov 2012
2 answers
164 views
Hi everybody, 

I am working on a grid which contains a lot of data (like 100 000 rows). I was wondering how I could refresh it in case of some data would be changed in the dataSource without reload the entire grid.

Is it possible? I have been searching for the answer in the documentation and other posts but have not found anything!

I really need to figure it out asap!! 
any answer would be much appreciated
Thank you very much
martin
Top achievements
Rank 1
 answered on 28 Nov 2012
4 answers
462 views
I have downloaded Kendo UI and viewed the tutorials and I have found the documentation but it's not easy to figure out. To be honest, the documentation is like Microsoft's - that is to say if you want to know whether to write a colon or a semicolon, it's brilliant. But nowhere does it even begin to explain how to start with Kendo. Has anyone written a book from the perspective of someone new to Kendo who wants to write a project using, say ASP.NET MVC4? And if so, can anyone recommend a good book.
Sebastian
Telerik team
 answered on 28 Nov 2012
5 answers
636 views
Hi,
A bit similair to this other thread we wonder how to set the value attribute when appeding new nodes. Right now we do this:
treeview.append({
text: "New text",
value: "Value",
url: "/dummyUrl"
});

The node is added, with the correct text. The link is added, but value is not. (Also the attribute k-link is not added even when it is a link). Similair to the other poster it would also be nice to know if there is another way than manually via jQuery to get the value.

Thank!
/Victor
Petur Subev
Telerik team
 answered on 28 Nov 2012
0 answers
189 views
Hello,
I'm trying to animate the kendo window, however nothing is happening. The window opens without any animation. Am I missing something in the code?

@(Html.Kendo().Window()
.Name("createProjectDialog")
.Animation(c => c.Open(builder => builder.Zoom(ZoomDirection.In).Duration(AnimationDuration.Slow))
                .Close(builder => builder.Zoom(ZoomDirection.Out).Duration(AnimationDuration.Slow)
           ).Enable(true))
.Title("Create New Project")
.LoadContentFrom("Create""Projects")
.Modal(true)
.Draggable(true)
.Width(650)
.Visible(false))
Heres the script for opening the dialog:

 $("#newProjectbtn").bind("click"function () {
 	$("#createProjectDialog").data().kendoWindow.open();
 });

In the DOM i can see that the window was successfully initialized and the windows options has the enable animation section:
  1. optionsObject
    1. actionsArray[1]
    2. animationObject
      1. closeObject
        1. duration600
        2. effects"zoom:out"
        3. hidetrue
        4. __proto__Object
      2. openObject
        1. duration600
        2. effects"zoom:in"
        3. showtrue

Am I missing something here?
daniel danie
Top achievements
Rank 1
 asked on 28 Nov 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?