Telerik Forums
UI for ASP.NET MVC Forum
11 answers
225 views
Hi,

I've got an issue about the display of a grid in a splitter.

If I add a grid in my display, everything is broken ... Any idea ? :(
Daniel
Top achievements
Rank 1
 answered on 11 Mar 2013
14 answers
760 views

I'm trying to have a group of 2 radio buttons (each button in different column but the same row) in my Kendo grid popup template but without success. I defined the type of the parameter as a string. But after clicking the radio button, it will set it to null type.

 It works fine with checkboxes, though

<div class="editor-field">
            @Html.RadioButtonFor(model => model.Status, "Avail")Available
            @Html.RadioButtonFor(model => model.Status, "Not Avail") Not Available
</div>

when I debuged, model.Status = null,  every time.


Fred
Top achievements
Rank 1
 answered on 08 Mar 2013
1 answer
143 views
We are using Kendo 2012.3..1315.340. Here is the issue. We are using the EditorTemplate for DateTime?, which calls DatePickerFor. This works wonderfully in a standard cshtml view and the POST contains the name/value TransactionDate = "03/19/2013". However, if I use the same view model in a grid and use either inline editing or popup editing I get a POST with TransactionDate = "Tue Mar 19 2013 00:00:00 GMT-0700 (Pacific Daylight Time)". This value does not automatically populate the view model on submission and the date property on the model defaults to DateTime.MinValue. Since this is an identical view model with and identical editor template, does anyone have any ideas on why the POST values are different (and seemingly improperly formatted from the grid)?
montgomery
Top achievements
Rank 1
 answered on 08 Mar 2013
4 answers
884 views
Is there a way to iterate over a grids datasource in it's sorted state. the view() only returns a pageful of data, but I need to assemble the fully sorted set of IDs in the grid's sequence. data() provides access to all the elements, but they are not necessarily in the same sequence.

Any recommendations?

Thanks.
Patrick
Top achievements
Rank 1
 answered on 08 Mar 2013
1 answer
926 views

I'm working through some Kendo UI tutorials and have a problem with the look of my text boxes on the grid. The demo I'm following is http://demos.kendoui.com/web/grid/editing-inline.html.

I've figured out how to format the date in the grid and use a datepicker for the date in the editor. To do this I've used an Editor template.

I've added an editor template for the name column just so I could apply a css class and it looks better but it doesn't function correctly. When the editor opens up the value in the text box is empty (see image). Surely there must be an easier way to apply a css class.

Do I have to create an editor template for all text boxes in the grid? If so, how can I have it bring the value when editing?

Here's the code for the grid:

@(Html.Kendo().Grid<Product>()    
.Name("Grid")    
.Columns(columns => {        
    columns.Bound(p => p.Name);
    columns.Bound(p => p.UnitPrice).Width(140);
    columns.Bound(p => p.Units).Width(140);
    columns.Bound(p => p.Discontinued).Width(100);
            columns.Bound(p => p.Date).Width(100).Format("{0:d/M/yyyy}");
    columns.Command(command => { command.Edit(); command.Destroy(); }).Width(200);
})
.ToolBar(toolbar => toolbar.Create())
.Editable(editable => editable.Mode(GridEditMode.InLine))
.Pageable()
.Sortable()
.Scrollable()
.DataSource(dataSource => dataSource        
    .Ajax()                 
    .Events(events => events.Error("error_handler"))
    .Model(model => model.Id(p => p.Id))
    .Create(update => update.Action("EditingInline_Create", "Home"))
    .Read(read => read.Action("EditingInline_Read", "Home"))
    .Update(update => update.Action("EditingInline_Update", "Grid"))
    .Destroy(update => update.Action("EditingInline_Destroy", "Grid"))
)

Here's the code for the name editor template:

@using Kendo.Mvc.UI
@model KendoUiOne.Models.Product

@Html.TextBoxFor(x=>x.Name, new {@class = "k-input k-textbox"})

I also posted on stackoverflow.

http://stackoverflow.com/questions/15257247/how-to-specify-style-in-kendo-ui-asp-net-mvc-grid-editor
Petur Subev
Telerik team
 answered on 08 Mar 2013
1 answer
152 views
Hi,

I saw quite a few examples how you could get the KendoUI controls to work with WEBApi controllers. But all of those examples used "native " JS, not the Server Wrappers and HTML Helpers.

Can you get both to working together, i.e setting up e.g. AJAX for grid with using the wrappers?

Thanks!
Sebastian
Telerik team
 answered on 08 Mar 2013
10 answers
168 views
Hello,
If i want to use a complex template(with checkboxes,dropdownlists,datetimepickers) for adding or editing something like at this link
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/multicolumneditform/defaultcs.aspx
not necesary under the line being edited,but under the grid how can i do that?
when adding a new row,then the template should be empty otherwise fill with the values of that row.


regards,
Daniel
Daniel
Top achievements
Rank 1
 answered on 08 Mar 2013
1 answer
247 views
My application has to use a specific format of dates, i.e. "10Nov13". This format has to be used in all cultures and should work as a unified format for all languages.
With DatePicker, I did set the Format to "ddMMMyy", which works pretty well for en-US, but for cs-CZ I get "101013".
If I set DatePicker's Culture to "en-US", I'm able to achieve the correct format, but the display language is always english, which is not good with a multilingual app.
Is there a way to format dates without specifying the Culture for entire widget? Something like .Format("ddMMMyy", "en-US")?
Daniel
Telerik team
 answered on 07 Mar 2013
1 answer
175 views

I'm new to Telerik and Kendo UI. We have a commercial license.
Please can you point me to a Kendo sample project for PanelBar that displays data from a Data context (using EF). Is it possible to do inline editing in a Panel Bar like in a Grid (KendoGridMvcCodeFirst sample project)?

Annie

Petur Subev
Telerik team
 answered on 07 Mar 2013
1 answer
139 views
How can we avoid multiple clicks when page is loading?

The problem we are facing is that, the Application is developed using MVC 4.0 with Kendo UI. We have close to 26 tabs in tabStrip control and each tab has kendoGrids control in a page which is reading data from controller by ajax call.
User has tendency to click on the tabs and links in the grid. We have seen a peculiar behaviour when a user clicks on tabs or links before the page is fully loaded. The tab/link navigates to the right page but the content in the page is not loaded.

So we want to restrict the user by giving him the prompt as the page is loading and then allow the user to click the links when page is loaded completely.

Alex Gyoshev
Telerik team
 answered on 07 Mar 2013
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?