Telerik Forums
Kendo UI for jQuery Forum
1 answer
96 views
Hi 

I have several views which I would like to display a common header that is data bound to a common viewmodel (MVVM).
The header is defined in a common layout. Is there a way of specifying a different viewmodel for for it to bind to?

Cheers
Aaron

Kiril Nikolov
Telerik team
 answered on 15 Oct 2013
6 answers
945 views
Hi All,

I have troubles witj DropDown editor ingrid, it  occasionally the window with the options will pop up in top left of computer screen. 

{ field: "ptcCode", title: "Package To", template: '#= kendo.toString(ptcName) #',
  editor: ptcDropDownEditor, width: 200 }
//
function ptcDropDownEditor(container, options) {
$('<input data-text-field="Name" data-value-field="Code" data-bind="value:' + options.field + '"/>')
.appendTo(container)
.kendoDropDownList({
   autoBind: false,
   dataSource: ptcDataSource,
 });
}

Any idea to resolve this?
Alexander Valchev
Telerik team
 answered on 15 Oct 2013
2 answers
150 views
Hi,

I have some difficulties to draw a graph when I use JSON-date format. I've reproduce the code at http://jsfiddle.net/saes/X5m93/1/
As you can see X-asis is not readable and it seems the graph is tighten.
When I use string instead of date in the JSON-file it works as it is expected. This is the same code as above but instead I've used string instead of date-format in the JSON file: http://jsfiddle.net/saes/5TRN2/2/

I wonder why I'm not able to use date-format in the JSON file and what's wrong in my code?

Regards,
Sam
Sam
Top achievements
Rank 1
 answered on 15 Oct 2013
1 answer
268 views
Hi guys.
I'm looking for example of Kendo UI grid working with dynamic data.
I tried this one:
http://www.kendoui.com/code-library/mvc/grid/binding-to-datatable.aspx
and it is working well with displaying data, but I was not able to find example with other operations (Add,Edit, Delete).
I tried add them by myself and got next exception:
The model item passed into the dictionary is of type 'System.Data.DataRowView', but this dictionary requires a model item of type 'System.Data.DataTable'.
I found that similar question was asked here:
http://www.kendoui.com/forums/kendo-ui-complete-for-asp-net-mvc/grid/problem-with-crud-operation-with-data-table-as-model.aspx
but it is still without an answer and this thread seems to be closed. Could You please tell me what should be the problem or give me some link
to working example with supported CRUD for Data table as Model.

Here is my code of Index.cshtml:

@model System.Data.DataTable

@(Html.Kendo().Grid(Model)
    .Name("Grid")
    .Columns(columns =>
    {
        foreach (System.Data.DataColumn column in Model.Columns)
        {
            columns.Bound(column.ColumnName);
        }
    })
    .Pageable()
    .Sortable()
    .Scrollable()
    .Filterable()
    .Groupable()
    .Editable(editable => editable.Mode(GridEditMode.PopUp).TemplateName("DataTableEditor"))
    .DataSource(dataSource => dataSource
        .Ajax()
            .Model(model => model.Id("ProductID"))
                .Model(model =>
                    {
                        model.Id("ProductID");
                        foreach (System.Data.DataColumn column in Model.Columns)
                        {
                            model.Field(column.ColumnName, column.DataType);
                        }
                    })
            .Read(read => read.Action("Read", "Home"))
        .Update(upd => upd.Action("Update", "Home"))
    )
)
Alexander Popov
Telerik team
 answered on 15 Oct 2013
3 answers
161 views
Is it possible to configure the behavior of sorting when setting a grid to sortable? Specifically I want to sort the data in the column without respect to case so that, for example, "angle" appears before "Apple" instead of after "Zebra"?
Himani
Top achievements
Rank 1
 answered on 15 Oct 2013
5 answers
89 views
Did I miss something that is not in the release notes for the 2013.2.716.340 release of Kendo UI?  All I did was install that version over the previous in my mvc project and now the series lines aren't showing up.  The plot lines still draw though.  Was there something we are supposed to do with that upgrade?  I know the data is coming across and I know the set of dependencies hasn't changed.  My code did not change.  I know my installation of Kendo UI is working because the scheduler and all the other controls are working fine.

I know this is a stab in the dark asking on this forum but I can't find anything on the boards and all my traces are returning nothing.
Entilzha
Top achievements
Rank 2
 answered on 14 Oct 2013
9 answers
576 views
Situation:

I have 1 kendo iframe window open.  I want to open a new kendo window from a trigger element within this window.  

Issue:
The 2nd window is bigger than the first, so I want to open it so that it displays "over top" of the 1st window.

So far unsuccessful attempts:
I have used window.top to dynamically create the div window element on the root window body but this still opens the window inside the 1st window.

How would I go about doing this?

Deepak Subhedar
Top achievements
Rank 1
 answered on 14 Oct 2013
2 answers
135 views
After quickly reviewing the demos and documentation, I assumed that the Week View allowed the day upon which the week starts to be configured (since there are multiple demos with different week start dates.  After doing some testing however I am having some issues making this happen.

I understand from reading some forums that the the way the week view is rendered is a bit more complex that the other views and that the start and end dates are somehow generated from separate logic.  It looks like you can change the start date by using a culture setting, however that only gives the Monday or Sunday selection allowance.

Is there any way to show a rolling week view, or 7-day view, that would always start with today?  It isn't often useful to show dates in the past for users to pick from when scheduling something.  Would it be possible to extend the culture setting to allow for all 7 selections of day of week?

Rosen posted - http://jsbin.com/URESExi/1/edit as an example.... does this multi-day view lose any of the functionality provided by the default WeekView?
andrew
Top achievements
Rank 1
 answered on 14 Oct 2013
2 answers
758 views
I have a KendoUI Grid with columns as below.

 columns: [
                           { field: "username", title: "Email Id",  width: 120 },
                           { field: "firstName", title: "First Name", width: 110 },
                           { field: "lastName", title: "Last Name", width: 110 },
                           { field: "phone", title: "Phone Number", width: 90 },
                           { command: "edit",  title: "&nbsp;", width: 90 },
                           { command: {text: getButtonText(), click: deleteUser }, title: "&nbsp;", width: 90 }
]

function getButtonText(e){
            alert(e);
            var data = this.dataItem($(e.currentTarget).closest("tr"));
return "test";
 
}

function deleteUser(e){
}

The last command , the label/text of the button depends on the data. It could be different for every row. e.g. Delete , Lock, Unlock etc...

For that I have written a function getButtonText(e) above to decide the button text. 

When I run this, the variable e in the function is undefined.

Please help me if you know the solution.

Thanks,


                                     
Misahael
Top achievements
Rank 1
 answered on 14 Oct 2013
1 answer
38 views
hi guys..i am new to kendo ui mobile framework...for designing mobile apps.
there are many custom data atrributes used in html tags for kendo ui..
plz help me to find the documentation for it...i am finding difficult to analyse...
plz  help me...
Thanku
Steve
Telerik team
 answered on 14 Oct 2013
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
Date/Time Pickers
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Map
Drag and Drop
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
SPA
Filter
Drawer (Mobile)
Drawing API
Globalization
Gauges
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
OrgChart
TextBox
Effects
Accessibility
ScrollView
PivotGridV2
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Collapsible
Localization
MultiViewCalendar
Touch
Breadcrumb
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
Popover
DockManager
FloatingActionButton
TaskBoard
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
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?