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

When using the MVC wrappers to bind a treeview to a model I have certain nodes that I don't want to have enabled.  When I set the appropriate property the node is given the correct "k-state-disabled" style. However the associated checkbox with the node remains enabled and is still selectable by the user.

Is this expected behaviour and if so is there a method that I could use to disable the checkbox.

Thanks
Alex Gyoshev
Telerik team
 answered on 11 Mar 2013
1 answer
163 views
Hi,

I want to create an asp.net MVC page where I want to display image and give next and previous buttons to display the next and previous images similar to viewing a photo album. I get these images as byte array from WCF call, can any one please point met to a right telerik control for this and really appretiate if you can please give a code sample.

Thanks in Advance
SA
Sebastian
Telerik team
 answered on 11 Mar 2013
11 answers
232 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
770 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
148 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
889 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
935 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
158 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
174 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
252 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
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
Dialog
MultiColumnComboBox
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
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?