Telerik Forums
Kendo UI for jQuery Forum
1 answer
177 views
Foreignkey Column doesn't work in detail grid template. Return Error template when I use the  columns.ForeignKey



<script id="templateConfiguracaoLimpezaLinha" type="text/kendo-tmpl">
        <%:     Html.Kendo()
                    .Grid<EditableConfiguracaoLimpezaLinha>()
                    .Name("GridConfiguracoes_#=Id#")
                    .ToolBar(toolbar => toolbar.Create())
                    .Editable(edit => edit.Mode(Kendo.Mvc.UI.GridEditMode.InLine))
                    .Columns(columns =>
                    {
                        columns.Bound(o => o.Id).Hidden(true);
                        //columns.Bound(o => o.GrupoLimpezaLinhaCodigo).Width(120);
                        columns.ForeignKey(o => o.GrupoLimpezaLinhaCodigo, (System.Collections.IEnumerable)this.ViewData["GruposLimpezaLinha"], "Value", "Text");
                        columns.Bound(o => o.LinhaProcessoId).Width(80);
                        columns.Bound(c => c.NumeroOrdem).Width(80).HtmlAttributes(new { style = "text-align: right" });
                        columns.Bound(c => c.SnAtivo).Width(80).HtmlAttributes(new { style = "text-align: center" });
                        columns.Command(command =>
                        {
                            command.Edit();
                            command.Destroy();
                        }).Width(100);
                    })
                    .DataSource(dataSource =>
                    {
                        dataSource.Ajax().Model(model => model.Id(m => m.Id));
                        dataSource.Ajax().Read(read => read.Action("Read_Configuracoes", "ConfiguracaoLimpezaLinha", new { itemLimpezaLinhaId = "#=Id#" }));
                        dataSource.Ajax().Create(create => create.Action("Create_Configuracao", "ConfiguracaoLimpezaLinha", new { itemLimpezaLinhaId = "#=Id#" }));
                        dataSource.Ajax().Update(update => update.Action("Update_Configuracao", "ConfiguracaoLimpezaLinha"));
                        dataSource.Ajax().Destroy(destroy => destroy.Action("Destroy_Configuracao", "ConfiguracaoLimpezaLinha"));
                        dataSource.Ajax().Events(ev => ev.Error("error_handler.bind({WidgetID: 'GridConfiguracoes_#=Id#'})"));
                    })
                    .Events(events =>
                    {
                        events.Edit("onEdit");
                    })
                    .ToClientTemplate()                     
        %>
    </script>
Vladimir Iliev
Telerik team
 answered on 18 Sep 2014
2 answers
278 views
Hello,

I would like to bind the selected data item (whole object) - not the value configured by the "dataValueField" - to the scope. It should behave like the DropDownList MVVM demo when the "valuePrimitive" option is set to false.

How can this be done.

Sample: http://dojo.telerik.com/@Holger/ogAf

Thanks
Holger
Holger
Top achievements
Rank 1
 answered on 18 Sep 2014
1 answer
134 views
Hi folks,

Is this demo broken?: http://demos.telerik.com/kendo-ui/menu/context-menu-angular

I'm seeing "angular is not defined" in the console log.

Cheers.

Atanas Korchev
Telerik team
 answered on 18 Sep 2014
2 answers
283 views
Hello,

I am using customeditortemplate with a checkbox for SaveinOutlook. taskViewModel has boolean property IsSavedInOutlook and Models.Utility.SaveInOutlook is the default value for add events. My customeditortemplate checkbox is as below
<div class="k-edit-label">
    @(Html.LabelFor(model => model.IsSavedInOutlook))
</div>
<div data-container-for="isSavedInOutlook" class="k-edit-field">
    @if (//add event?? Models.Utility.SaveInOutlook == true)
{
   <input data-bind="checked: isSavedInOutlook" data-val="true" id="IsSavedInOutlook" name="IsSavedInOutlook" type="checkbox" checked/>
} else{
         <input data-bind="checked: isSavedInOutlook" data-val="true" id="IsSavedInOutlook" name="IsSavedInOutlook" type="checkbox" />
}        

</div>

is there a way i can differenciate it is add event or edit event and set checked based on  Models.Utility.SaveInOutlook value? When the customedittemplate popup window comes do a have a way to check add/edit mode and set a default value?

Anamika
Anamika
Top achievements
Rank 1
 answered on 18 Sep 2014
31 answers
846 views
Kendo Grid Localization
Help article describing the localization options of the widget.

Kendo UI
Top achievements
Rank 1
 answered on 18 Sep 2014
3 answers
579 views
I have a spec where we have a set of tabs. In these tabs are two kendo grids that have some overlapping data and essentially need to be coordinated. If Grid A in tab A is filtered, Grid B in tab B needs to be filtered similarly. Likewise if a row in Grid A is selected, that same row in Grid B needs to be selected. Is this possible with the kendo grid system? I already have it wired up for changes in data thanks to the Observable Object.
Alexander Valchev
Telerik team
 answered on 18 Sep 2014
1 answer
4.2K+ views
dear all,

I am going to implement a grid that allow user to edit a date field by selecting the date from the calendar control. I have tried to change the field type to date but the value can not be displayed. any advise ?

Thank you.
Dimo
Telerik team
 answered on 18 Sep 2014
5 answers
528 views
I have the attached plunkr here:
http://plnkr.co/edit/5IE41TtnWHpjLZqzRidk
where i'm using the angular kendo splitter, and i have the height set to 100% and it's just entirely collapsed.  If i remove the height style, it shows fine, but just not with the height filled out.  What am i missing here to make sure the splitter fills out the entire height of the page?  Thank you for your help!
Alex Gyoshev
Telerik team
 answered on 18 Sep 2014
1 answer
400 views
how to add menu inside a grid column using template .. ??
Dimo
Telerik team
 answered on 18 Sep 2014
2 answers
235 views
Hi.

I have following code -- http://dojo.telerik.com/uRuG.

I can't make possibility to change series and data source on the fly. I need to change series, change ds and update chart with new data.

What  I'm doing wrong?

Thanks in advance.
Hristo Germanov
Telerik team
 answered on 18 Sep 2014
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
Application
Drag and Drop
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?