Telerik Forums
Kendo UI for jQuery Forum
3 answers
392 views
Hello I am tryint to bind create action from Kendo Grid:

@(Html.Kendo().Grid(Model.GlobalProperties).Name("GlobalProperties")
    .Columns(columns =>
    {
        columns.Bound(p => p.Id).Hidden();
        columns.Bound(p => p.Name);
        columns.Bound(p => p.Value);
    })
    .DataSource(dataSource => dataSource.Ajax().Batch(true)
        .Model(model => model.Id(p => p.Id))
        .Create("GlobalProperty_Create", "Admin")
        .Update("GlobalProperty_Editing_Update", "Admin")
        .Destroy("GlobalProperty_Editing_Destroy", "Admin")
    )
    .ToolBar(toolbar =>
    {
        toolbar.Create();
        toolbar.Save();
    })
    .Editable(editable => editable.Mode(GridEditMode.InCell))
)

This is supposed to send Create action to my Admin controller (this works)

public ActionResult GlobalProperty_Create(List<GlobalProperties> models)
       {
           using (var db = new CPSkla.Models.CPSklaEntitiesCalculation())
           {
               foreach (GlobalProperties model in models)
               {
                   db.GlobalProperties.Add(model);
                   db.SaveChanges();
               }
           }
           return View(GetViewResult());
       }

Now if I try to create ne record it will trigger my breakpoint in controller but the list (although it has Count=1 for one new record) has GlobalProperty object but with all values (Id,Name,Value) null.

My firebug shows that I have
models[0][id]  0
models[0][name] test
models[0][value] testssss
as a part of my parametres, how do I serialize that to my List?

Please help I was trying to find it but without success.
Nohinn
Top achievements
Rank 1
 answered on 18 Sep 2012
0 answers
127 views
First off, I realise this is probably a niche area, but I get a script error when filtering against a Guid column. I've an MVC wrapper grid using server side paging & filtering; this all works fine. However, when the results are returned to the client a script error occurs: "TypeError: b._parse is not a function". This appears in the _bind method. It's not critical, the filtering works and the grid displays OK (with SP1) but it's probably worth looking into.

I've uploaded a sample project: https://skydrive.live.com/redir?resid=635C8E2BF4822D7C!1064

This project uses the standard release, which I think does have an issue with the re-binding of the grid, but I'm using SP1 in the main project and apart from the script error, all seems fine.
Dave
Top achievements
Rank 1
 asked on 18 Sep 2012
3 answers
163 views
Hello Sir'

Iwant to show the all user list by using kendo gri but i m very new for kendo ui please help me
Nohinn
Top achievements
Rank 1
 answered on 18 Sep 2012
3 answers
232 views
Dear Kendo Team,
I have a problem in running mvc 4 app which uses kendo in the release mode (debug="false"). I started a sample application, went through the getting started guide. Everything seems to work until I change compilation debug="false" node in web.config.
I attach the sample app. Could you please take a look at the code and tell me what is wrong with it?
Cheers!
Piotrek
Alex Gyoshev
Telerik team
 answered on 18 Sep 2012
2 answers
243 views

I am loading kendo window during runtime using javascript and window configurations like title, height, width, url everything coming from JSON object.
Same like I am trying to pass the maximize, minimize, and refresh buttons visibility configuration from JSON.
Not able to handle buttons configuration the below code.

Please let me know any other choice to handle this?
Sample code:
var jsonDoc = {
  widget: [{name:"W1",
    title: "W1",
    height: 200,
    width: 320,
    url:"http://jsbin.com"
    maximize:true
    refresh:true
    minimize:false }]
    };
for (var i = 0, sl = jsonDoc.widget.length; i < sl; i++)
         {
            var panelname;
            panelname = "#panel" + i;
            $(panelname).kendoWindow(
            {
               title: jsonDoc.widget[i].title,
               height: jsonDoc.widget[i].height,
               width: jsonDoc.widget[i].width,
               actions: [????],
               content: jsonDoc.widget[i].url
             });
           $(panelname).parents('.k-window').css('top', '45%');
           }

Prakash
Top achievements
Rank 1
 answered on 18 Sep 2012
1 answer
162 views
This problem occurs on Android 2.3.5
The following jsfiddle illustrates the problem:
http://jsfiddle.net/RodEsp/E3Edx/ 

I have been using jsfiddle's "Debug on mobile" functionality to test this.

The issue is, when the listview is initialized and the user has scrolled the <input> elements inside the widget glitch when selected. It looks like the focus is going to an element above the one that was tapped.

I ran into something like this before but I believe this is different since this effect does not occur if the listview is not initialized and the app is allowed to run with just a normal <ul>. The css applied to the <li> elements does nothing but it was listed as a solution to a similar problem in the Kendo docs here: http://docs.kendoui.com/documentation/getting-started/mobile/forms 

The only reason I post this is because, as I said before. The issue does not occur when running the app without enabling the listview.

*Note: This same problem is present in the latest internal (2.831) version of Kendo.
Kamen Bundev
Telerik team
 answered on 18 Sep 2012
3 answers
351 views
if I buy the commercial license and spend 12 months, then that happens to my web application????...run or not run ?? ...happens then?
Violeta
Telerik team
 answered on 18 Sep 2012
0 answers
68 views
While loading huge volume of data in telerik razor grid it jumps down and come up. Please any one help me how to fix this issue.
Madan
Top achievements
Rank 1
 asked on 18 Sep 2012
3 answers
208 views
We have built an application for mobile and desktop and in all browsers/version tested, an open KendoMobileModalView closes when the browser is resized. How can we prevent this?

The line of code in kendo.mobile.js that is the culprit is 9951: if (!that._hovered) { that.close();}

Commenting this out resolved the issue but I'm concerned about the side effects of removing this code.
Petyo
Telerik team
 answered on 18 Sep 2012
0 answers
67 views
I code php with kendoui Grid.
I have function edit <--- work
                        cancle <--- still coding
                        add  <---- doesn't work

add function doesn't work. I get new blank record
I try to solve problem.. and the end
so please...
thank you
golf


ps. my code is in the zip that attach
sunsern
Top achievements
Rank 1
 asked on 18 Sep 2012
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Drag and Drop
Application
Map
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?