Telerik Forums
UI for ASP.NET MVC Forum
6 answers
1.0K+ views
I have a parent grid / child grid. and I can't seem to get the two working properly.  Using the DetailInit event to set the data for the child grid, but the event is not even firing.  The grids are server bound with a model.  Here is the razor code.  Thanks for the help.
Dan

@model IEnumerable<EquipmentsSummary>
 
<div class="info-row">
    @(Html.Kendo().Grid(Model)
        .Name("EquipmentGrid")
        .Columns(columns =>
        {
            columns.Bound(e => e.EquipName).Title("Item Name");
            columns.Bound(e => e.SerialNo).Title("Serial #");
            columns.Bound(e => e.AssetStatus).Title("Status");
            columns.Bound(e => e.AssetStatusDate).Title("Date");
        })
        .HtmlAttributes(new { style = "height: 390px;" })
        .Pageable(pageable => pageable
            .PageSizes(true).PageSizes(new int[] { 20, 50, 100 })
            .ButtonCount(5))
        .Sortable()
        .Filterable()
        .Scrollable()
        .DataSource(dataSource => dataSource
            .Ajax()
            .PageSize(20)
            .ServerOperation(false))
        .ClientDetailTemplateId("template")
        .Events(events => events.DetailInit("initDetail"))
    )
 
    <script id="template" type="text/kendo-tmpl">
        @(Html.Kendo().Grid<EquipmentSettingsSummary>()
            .Name(string.Format("SettingGrid_#=ID#"))
            .Columns(columns =>
            {
                columns.Bound(e => e.EffectiveDate).Title("Date");
                columns.Bound(e => e.AssetStatus).Title("Status");
            })
            .HtmlAttributes(new { style = "height: 390px;" })
            .Pageable(pageable => pageable
                .PageSizes(true).PageSizes(new int[] { 20, 50, 100 })
                .ButtonCount(5))
            .Sortable()
            .Filterable()
            .Scrollable()
            .ToClientTemplate()
        )
    </script>
    <script>
        function initDetail(e) {
            alert("ID is " + e.data.ID);
            var grid = $("#SettingGrid_" + e.data.ID).data("kendoGrid");
            grid.dataSource.data(e.data.SettingItems);
        }
    </script>
</div>
Rosen
Telerik team
 answered on 07 Oct 2015
1 answer
204 views

Hello all, 

I have grid which displays a group of records.  Then some custom actions to perform on this records. One of the custom actions will open a popup window which displays another grid with child information about the original table.  I'm doing this by passing a custom query string with the parent key.

 In this child table, when I try to create a new record, the foreign key that is passing to the controller is 0 event though when editing, the binding will show the correct value. Through jquery I'm able to read the parentID and put it in a hidden field in the child screen, but when submitting, is goes as 0 again even though it has a number on it.  The only way I'm able to solve the issue is by passing a value directly to the model in the child window in the OnEdit event like this:

 

    e.model.set("GroupID", $("#txtGroupID").val());

 

Anyone knows why is passing a 0 value although I'm assigning a value for it: $("#GroupID").val($("#txtGroupID").val());

Any recommendations?

Rosen
Telerik team
 answered on 07 Oct 2015
1 answer
203 views
HI

I have a question :

How can Visual Studio 2012 Kendo use UI Scaffolder :

  Add > New Scaffolded Item... > Kendo UI Scaffolder

The 'Add > New Scaffolded Item' command is available 
but the Kendo UI Scaffolder still invisible in Visual Studio 2012,
Is there have any to enable Kendo UI Scaffolder in Visual Studio 2012 ?

Tools :

。Visual Studio 2012 (with ASP.NET and Web Tools 2013.1 for Visual Studio 2012) :

ASP.NET and Web Tools 2013.1 for Visual Studio 2012
http://www.microsoft.com/en-US/download/details.aspx?id=41532
  AspNetWebTools2013_1Setup.exe
  WebToolsExtensionsVS.msi
Entity Framework 6 Tools for Visual Studio 2012 & 2013
http://www.microsoft.com/en-us/download/details.aspx?id=40762

。Telerik 2015 Q3

Best regards

Chris

Dimiter Madjarov
Telerik team
 answered on 07 Oct 2015
1 answer
70 views
I want to ​key in capital letter using Shift key but it does not allow me to enter.
Atanas Georgiev
Telerik team
 answered on 07 Oct 2015
3 answers
508 views
How do I go about showing the value of the foreign key (not the ID) within the ClientRowTemplate of a Grid?
Boyan Dimitrov
Telerik team
 answered on 07 Oct 2015
1 answer
131 views

Hello,

I'm new using the Telerik components and  I've been looking for a thread related to this feature (year view in the scheduler), but I only found it into the Ajax scheduler component, and not in MVC. Do you guys have any plans to implement this feature for MVC Scheduler ? if not can you send me any sample or guide lines to implement it as custom view?

 Thank you.

Georgi Krustev
Telerik team
 answered on 06 Oct 2015
3 answers
86 views
Hi!

We are having a single-page-application using asp.net mvc and creating views using razor. Creating several grids using the mvc-helper on a single view causes that the texts are transferred to the browser foreach grid. I have seen in this post https://github.com/loudenvier/kendo-global that it is possible to provide texts via javascript. But how can I prevent that the grid sends texts to the client?

Best regards!
Georgi Krustev
Telerik team
 answered on 06 Oct 2015
3 answers
235 views

Hi, 

Can you show me an example where a ListView or a Multiselect is inside an form. This form is called from a "grid" on next way .Editable(e => e.Mode(GridEditMode.PopUp).TemplateName("ProductorEdit"))

 

 

Thanks in advance

 

 

Xavier de la Rubia.

 

 

Boyan Dimitrov
Telerik team
 answered on 05 Oct 2015
1 answer
172 views

Starting with the Q3 release we've seen the following behavior for enum attributes that are bound to a dropdownlist.

  1.  Attribute in model is of type enum
  2. select values passed to the dropdownlist are of type IEnumerable<SelectListItem> with the value of the attribute set as selected.
  3. The dropDownList is populated using .BindTo so is loaded on page load
  4. When the form opens no value is selected in dropdown.  This happens in all cases where a dropdownlist is bound to an enum

I did some testing and found when I bound the dropdownlist to the integer that the enum represented, the dropdownlist worked as expected.  It seems that the control is no longer binding to enums as it did before (binding the value to the integer the enum represents).  Did something change that was undocumented in the Q3 release that caused this behavior?

Georgi Krustev
Telerik team
 answered on 05 Oct 2015
1 answer
66 views

Hello,

Tested on IE 10, Chrome and FF (latest version).

Write value in cell A1

Write formula in cell B1 as "=A1"

Clear value in cell A1 (focus on cell and press Delete)

Formula value remains the same.

 

Best Regards

Atanas Georgiev
Telerik team
 answered on 05 Oct 2015
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
Wizard
Security
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
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?