Telerik Forums
Kendo UI for jQuery Forum
5 answers
414 views
How do I shade days/time slots which a resource may not be available? I am not trying to restrict vent create but simply color-code time-slots.

Also, how do I change color of all time-slots for Saturday/Sunday to light-red?
Vladimir Iliev
Telerik team
 answered on 30 Oct 2014
1 answer
1.3K+ views
Hi,

We are trying to get all or specific nodes of treeview. We are unable to do this with following code,

var testTreeView = $("#treeViewIdStr").data("kendoTreeView");

Above code returnds undefined data.

Is there any other way?
Alex Gyoshev
Telerik team
 answered on 30 Oct 2014
3 answers
1.1K+ views

In my application I need to set a class of the <td> element for all cells in the grid.  If done at the column level via column.attributes = {class: 'myClass'} everything works great.  Unfortunately I need to do this on a per-cell basis.  Specifically different cells in the same column will have different classes applied to the <td> element based on the bound data object.  Is there a way to set attributes on per-cell basis, or is there an alternative approach to achieving my goal?

Thanks a lot.

Kiril Nikolov
Telerik team
 answered on 30 Oct 2014
2 answers
321 views
Hi,

We have some functionality to be implemented are:

Functionality 1:

We need to allow a user add or update data in batch. So, I am able to try and use this feature by using Batch Editing of grid. As per the grid functionality we need to use toolbar's 'Save' button to get the new or updated records for save. When we use the grid's Save button it will call respective action method by posting only new and updated records from Grid. But I would like to have my own button to call action method which get all the records from the Grid irrespective of added or updated ones so, I can read complete list of data and send it to DB.

Functionality 2:

Right now the Grid has Filter to be enabled on column wise. But I need to implement the Search/Filter on whole grid data by mean when use input a value on text box I would like to apply the search on whole grid data and filter it.

Functionality 3:

We need to export the Grid data to excel whether complete grid data or filtered/ searched data.

Is there a way to implement these and can you please share some examples if you have?

Regards!
Venkat
Top achievements
Rank 1
 answered on 30 Oct 2014
6 answers
1.5K+ views
What is the best practice for making individual rows in a kendo grid read-only?  The ideal solution would mean that clicking a field in a read-only row would not produce an in-cell editor.  Is this currently supported?
Piyush Bhatt
Top achievements
Rank 1
 answered on 29 Oct 2014
1 answer
258 views
I'm using the following code to drag and drop from a grid to the Scheduler:

function createDropArea(scheduler) {
        scheduler.view().content.kendoDropTargetArea({
            filter: ".k-scheduler-table td, .k-event",
            drop: function (e) {
                var grid = $("#grid").data("kendoGrid");
                var scheduler = $("#scheduler").data("kendoScheduler");
               
                var offset = $(e.dropTarget).offset();
               
                var slot = scheduler.slotByPosition(offset.left, offset.top);
                var dataItem = grid.dataItem(grid.select());
                alert(slot.);

                if (dataItem && slot) {
                    var offsetMiliseconds = new Date().getTimezoneOffset() * 60000;
                    var newEvent = {
                        title: dataItem.Title,
                        end: new Date(slot.startDate.getTime() + (dataItem.end - dataItem.start)),
                        start: slot.startDate,
                        isAllDay: slot.isDaySlot,
                        description: dataItem.ID,
                        ResourceID: '1'
                    };

                    //delete current event:
                    grid.dataSource.remove(dataItem);
                    grid.dataSource.sync();
                    grid.dataSource.read();

                    //Save the new event and sync it with server:
                    scheduler.dataSource.add(newEvent);
                    scheduler.dataSource.sync();
                }

            }
        });
    }

How can I get the Group/Resource ID?  Can I get it from the Slot or Element?
Marshall Jones
Top achievements
Rank 1
 answered on 29 Oct 2014
1 answer
106 views
I'm using the following code to drag and drop from a grid to the Scheduler:

function createDropArea(scheduler) {
        scheduler.view().content.kendoDropTargetArea({
            filter: ".k-scheduler-table td, .k-event",
            drop: function (e) {
                var grid = $("#grid").data("kendoGrid");
                var scheduler = $("#scheduler").data("kendoScheduler");
               
                var offset = $(e.dropTarget).offset();
               
                var slot = scheduler.slotByPosition(offset.left, offset.top);
                var dataItem = grid.dataItem(grid.select());
                alert(slot.);

                if (dataItem && slot) {
                    var offsetMiliseconds = new Date().getTimezoneOffset() * 60000;
                    var newEvent = {
                        title: dataItem.Title,
                        end: new Date(slot.startDate.getTime() + (dataItem.end - dataItem.start)),
                        start: slot.startDate,
                        isAllDay: slot.isDaySlot,
                        description: dataItem.ID,
                        ResourceID: '1'
                    };

                    //delete current event:
                    grid.dataSource.remove(dataItem);
                    grid.dataSource.sync();
                    grid.dataSource.read();

                    //Save the new event and sync it with server:
                    scheduler.dataSource.add(newEvent);
                    scheduler.dataSource.sync();
                }

            }
        });
    }

How can I get the Group/Resource ID?  Can I get it from the Slot or Element?
Marshall Jones
Top achievements
Rank 1
 answered on 29 Oct 2014
2 answers
532 views
I'm having a problem with deleting records from a simple list with only one field.  The UI works fine and deletes the record however the destroy call as defined in my datasources is not being called.  Here is the code.

var ds = new kendo.data.DataSource({
    transport: {
        read: {
            url: "/api/admin/users/someUser/roles",
            dataType: "json"
        },
 
        destroy: {
            type: "DELETE",
            url: "/api/admin/users/someUser/roles",
            dataType: "json"
        }
    },
 
    schema: {
        model: {
            id: "roleName",
            fields: {
                roleName: { editable: false }
            }
        }
    }
});
 
$grid.kendoGrid({
    dataSource: ds,
    editable: true,
    columns: [
        { field: 'roleName', title: 'Role' },
        { command: ['destroy'], title: ' ', width: '120px' }
    ]
});

Does the ID as defined in my model's schema have to be an integer or are strings acceptable?
RES
Top achievements
Rank 1
 answered on 29 Oct 2014
5 answers
192 views
Hey I was wondering is there a js event fired when the chart is rendered completely ? Not when the page appears with the axis (so no document.ready doesnt do the job) but when the actual points are rendered ?
Iliana Dyankova
Telerik team
 answered on 29 Oct 2014
6 answers
119 views
Hi,

We have a grid with a toolbar template containing a KendoToolBar object that can potentially have zero items in it (depending on the user account's security settings). If this happens, we get an error thrown from kendo.web.js and the page fails to load.

buttonGroup: {
    base: function (options, initializer, element) {
        var items = options.buttons,
            item;
 
        element.data({ type: "buttonGroup" });
        element.attr(KENDO_UID_ATTR, options.uid);
 
        for (var i = 0; i < items.length; i++) {
            if (!items[i].uid) {
                items[i].uid = kendo.guid();
            }
            item = initializer($.extend({mobile: options.mobile}, items[i]));
            item.appendTo(element);
        }

'items' is undefined so an exception is thrown on the for loop. Is this a known issue?

Thanks,
Nick
Nicholas
Top achievements
Rank 1
 answered on 29 Oct 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
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?