Telerik Forums
Kendo UI for jQuery Forum
3 answers
87 views
How can I get selected element in change event from pagined dropDownList (option with defined virtual section, and loading pagined data from server) ?
Alexander Valchev
Telerik team
 answered on 30 Apr 2015
1 answer
908 views

I have a listview defined as follows:

   <div data-role=" listview"
                     data-template="template"
                     data-bind="source: people,
                            visible: isVisible,
                             events: {
                              change: onChange
                            }"
                     style="float:left; width:100%; height: 370px;display:block;overflow: auto">

                </div>

 

now listview nicely shows my array of items but I need to update another view when the user selects a new row.My VM looks like:

var viewModel = kendo.observable({
    isVisible: true,
    onChange: function (){
        debugger;
        var data = dataSource.view(),
            selected = $.map(this.select(), function (item) {
                return data[$(item).index()].ProductName;
            });

        kendoConsole.log("Selected: " + selected.length + " item(s), [" + selected.join(", ") + "]");
    },
    onSave: function (e) {
        kendoConsole.log("event :: save(" + kendo.stringify(e.values, null, 4) + ")");
    },
   

    person: {
        Name:"John Doe"
    },
 .....

 

notice the debugger statement in the onChange function , well it is never hit as no idea what happened to the change event. I would have used Angular but

it has a problem that caused us to drop back to MVVM (Knockout). even if I make onChange a global function it does not fire.

 

Very confused

 

 

 

Boyan Dimitrov
Telerik team
 answered on 30 Apr 2015
1 answer
285 views
I have a button for the nextTAB and I want to skip the next TAB if it is disabled.
Alexander Valchev
Telerik team
 answered on 30 Apr 2015
2 answers
171 views
Hello,

I have created a feature for kendoGrid, the conditional formatting.
The user clicks in the column menu and has the option "Conditional Formatting", there he/she can create conditions and apply colors and icons to the cell or row.
I think it is a great funcionality that kendo can incorporate in the grid, but that is a choice for kendo team. Anyway the example is here: https://jsfiddle.net/magomes/ptwbh0ec/11/
There are two methods:

grid.openConditionalFormattingDialog(field); // open the dialog to create the conditions
grid.formatColumnsConditionally(); // in the databound format the conditions

The conditions are in kendoGrid.columns[0].conditionalFormatting object.

I really don´t work in the layout for the dialog, its using my css, but if the feature is good, and kendo team would interest for, just ask that I can work on it.

I hope this can be used for something.

Thank you very much,
Murilo.
Murilo
Top achievements
Rank 1
 answered on 30 Apr 2015
5 answers
1.1K+ views
I was able to add some javascript to cause the progress indicator to show during the grid save, but I was wondering if it would be possible to have this logic as standard built-in functionality for the grid?  Here's my code:

saveChanges: function (e) {
    // Turn on progress animation
    this._progress(true);
    var that = this;
    this.dataSource.one("change", function (e) {
        // Turn off progress animation
        that._progress(false);
    });

Thanks,
Brian
Dimitrij
Top achievements
Rank 1
 answered on 30 Apr 2015
3 answers
2.9K+ views
I am trying to format a column containing a date that comes in as the following format: 2005-10-05T15:26:17Z.  

I am using the standard kendo ui grid column formatting syntax as follows:

$("#grid").kendoGrid({
  columns: [ {
    field: "date",
    format: "{0:yyyy-MM-dd}"
  }]

But the column is not taking the format I am giving.  It seems to ignore the format line.  Any help would be appreciated.
King
Top achievements
Rank 1
 answered on 30 Apr 2015
2 answers
749 views

Hello, I would like to show/hide tabs on a grid detail template based on grid value:

do anyone achieved something similar?

Best Regards

<script id="template" type="text/kendo-tmpl">
@(Html.Kendo().TabStrip()
    .Name("tabStrip_#=ID#")
    .SelectedIndex(0)
    .Animation(animation => animation.Open(open => open.Fade(FadeDirection.In)))
    .Items(items =>
    {               
        //if current grid row field #ShowExpected#
        items.Add().Text("Expected Items").Content(@<text>show a grid containing expected items</text>);
        //if current grid row field #ShowReceived#
        items.Add().Text("Received Items").Content(@<text>show a grid containing received items</text>);
    })
    .ToClientTemplate())
 
</script>

 

 

Dimiter Madjarov
Telerik team
 answered on 30 Apr 2015
3 answers
8.6K+ views
How do I set the width of the kendoDropDownList?
Dimo
Telerik team
 answered on 30 Apr 2015
1 answer
100 views

Hi Telerik Team,

 I have a requirement in the scheduler like when I mousedown and select few cells in the scheduler and on mouseup the add event window should open with the start and end shown from the selected cells.

I tried the below code by seeing in the forumns

 

scheduler.wrapper.on("mouseup", ".k-scheduler-table td, .k-event", function (e) {

//code to open 

});

but this is working only once but when I re select the cells the mouseup is working and the default behaviour is also removed.

 

Thanks,

Vladimir Iliev
Telerik team
 answered on 30 Apr 2015
3 answers
275 views

Hi Telerik team.

I use your Editor and I have some issues with Image Browser:

1. I need select multiple Images in ImageBrowser, but now it is only one Image selected. Is multiple selection possible?

2. When I try to Drag&Drop multiple images from some folder in a PC to an Image Browser - only one image is inserted. Is it possible to drop multiple Images?

Thanks.

Alexander Popov
Telerik team
 answered on 30 Apr 2015
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
Map
Drag and Drop
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?