Telerik Forums
Kendo UI for jQuery Forum
0 answers
67 views
What is the difference between this line:
@(Html.Kendo().Grid<Kendo.Mvc.Examples.Models.ClientOrderViewModel>()

and this line:
@(Html.Kendo().Grid(Model)

I thought the first one is if you are connecting to a remote datasource. I tried the first one and it only seems to work if you are using json. I'm using the second and it is working for me.

Here is what my controller code looks like that works with the 2nd one and not the first. 

Thanks
dennis
public ActionResult Index(string classifications = "")
        {
            ViewData["Category"] = classifications;
            ViewData["Classifications"] = new SelectList(Classifications.List, "ClassificationText", "ClassificationText", classifications);
            var codModels = new List<CodeModel>();
            ViewBag.SelectedCatgory = classifications ?? "Type";
 
            if (Request.HttpMethod == "POST")
            {
                var model = _codeRepository.Search(classifications).ToModel();
                return View(model);
            }
 
            return View(codModels);
        }
Dennis
Top achievements
Rank 1
 asked on 15 Jul 2012
0 answers
144 views

What is the difference between this line:
@(Html.Kendo().Grid<Kendo.Mvc.Examples.Models.ClientOrderViewModel>()

and this line:
@(Html.Kendo().Grid(Model)

I thought the first one is if you are connecting to a remote datasource. I tried the first one and it only seems to work if you are using json. I'm using the second and it is working for me.

Here is what my controller code looks like that works with the 2nd one and not the first.

public ActionResult Index(string classifications = "")
        {
            ViewData["Category"] = classifications;
            ViewData["Classifications"] = new SelectList(Classifications.List, "ClassificationText", "ClassificationText", classifications);
            var codModels = new List<CodeModel>();
            ViewBag.SelectedCatgory = classifications ?? "Type";
 
            if (Request.HttpMethod == "POST")
            {
                var model = _codeRepository.Search(classifications).ToModel();
                return View(model);
            }
 
            return View(codModels);
        }

Dennis
Top achievements
Rank 1
 asked on 15 Jul 2012
0 answers
146 views
I am in need of an example using phone gap local storage as the list view datasource.  Currently storing in SQL local storage and having problems binding that to the list view.  Has anybody done this?
Shawn
Top achievements
Rank 2
 asked on 15 Jul 2012
4 answers
320 views
Is it possible to set the height to be variable depending on the content place within? I have a splitter with 3 vertical rows.

I would like the middle row's height to be able to expand with the content placed inside WIHOUT scrollbars...
Mark
Top achievements
Rank 1
 answered on 15 Jul 2012
0 answers
101 views
hi,

Is it currently possible in one dataource retrieve values ​​from two tables and map them into  the GridView?

My Datasource is a "WCF Data Service" with json and odata support.

Thanks.

dravus peter
Top achievements
Rank 1
 asked on 15 Jul 2012
1 answer
158 views
The four buttons found on Android phones.  How do I handle events related to those buttons?
Kamen Bundev
Telerik team
 answered on 15 Jul 2012
2 answers
642 views
I need to make more room for columns in my grid, so I am trying to change from big buttons for edit, delete, update and cancel to icons. I can get all of the icons to show right with a little CSS

/* Grid Buttons, remove background and change icon */
span.k-delete {
    backgroundurl("../images/Delete.gif") center center;
}
span.k-edit {
    backgroundurl("../images/Edit2.png") center center;
}
span.k-update {
    backgroundurl("../images/save.gif") center center;
}
span.k-cancel {
    backgroundurl("../images/cancel.png") center center;
}
.k-grid .k-button-icontext .k-icon {
    margin0;
    vertical-alignmiddle;
}
.k-grid tbody .k-button {
    min-width22px;
    width22px;
    background:none;
    border:0px;
}

plus the column def of:
{
                        command: [{ name: "edit", text: "" }, { name: "destroy", text: "" }, { name: "update", text: "" }, { name: "cancel", text: ""}],
                        title: "",
                        width: 100
                    }

The problem is all four of the buttons show when the grid is not in edit more (inline) and only the update and cancel show when in the edit mode, but they show with the text. Meaning the CSS is working, but the column def isn't doing anything during edit mode.

How do I setup one set of command columns for edit mode and one set for non-edit mode.

What I currently have can be seen here:
http://jsfiddle.net/randyallen/Kfdmh/1/

A little better, no save button while not in edit mode:
http://jsfiddle.net/randyallen/Kfdmh/2/

Also is there a way of getting rid of the row level save / cancel button and just use the toolbar at the top of the grid?

Thanks
Randy
David
Top achievements
Rank 1
 answered on 15 Jul 2012
1 answer
136 views
Datepicker no longer supports the touch (on IPAD).

http://demos.kendoui.com/web/datepicker/index.html
Kamen Bundev
Telerik team
 answered on 15 Jul 2012
0 answers
93 views
Hello,

I am evaluating Kendo so don't have support subscription to file an official bug report.

Still, Horizontal kinetic scrolling works great on iOS and Android, but is broken on Opera Mobile. This can be reproduced if you have a large grid.

If you can't reproduce it I'll take some time to create a fiddle to demonstrate the issue.
Anirudh
Top achievements
Rank 1
 asked on 15 Jul 2012
2 answers
353 views

I'm pretty new to kendo and Im trying to set up a foreign key in a grid but instead of using a list like in the example im attempting to use a second datasource instead.
At the moment when in edit mode i can select a drop down box which shows the text values of the foreign key instead of the id number but after i switch out of edit mode it reverts back to an id.

This is currently what i have
http://jsfiddle.net/QPXrf/8/ 

I'm just needing some direction in what would be the best way to do this.




Jye
Top achievements
Rank 1
 answered on 15 Jul 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?