Telerik Forums
Kendo UI for jQuery Forum
1 answer
251 views
See the following link in either Chrome or Safari on iOS 6: http://dojo.telerik.com/aXeGe

The Autocomplete options do not populate, nor can I actually get any letters typed into the field on either browser listed above.  Help please!
Alexander Valchev
Telerik team
 answered on 30 Oct 2014
7 answers
641 views
Hello!

The Rails service I connecting to, sends certain important data in the HTTP headers . I' can't figure out how to access that

Here is what I'm trying to do  - See schema {total } below in bold
01.productsDataSource = new kendo.data.DataSource({
02.  autoSync: true,
03.  pageSize: 10,
04.  serverPaging: true,
05.  serverSorting: true,
06.  serverFiltering: true,
07.  //serverGrouping: true,
08.  schema: {
09.    data: "data",
10.    total: "count", // THIS needs to be read from X-Total:31067  - line 9 in the code block below.
11.    model: {
12.      fields: {
13.        name:            {type: "string"},
14.        description:     {type: "string"},
15.        id:              {type: "number"}
16.      }
17.    }
18.  }
19.});

Response Headers
01.Server:nginx/1.6.0 + Phusion Passenger 4.0.42
02.Status:200 OK
03.X-Meta-Request-Version:0.3.4
04.X-Next-Page:2
05.X-Page:1
06.X-Powered-By:Phusion Passenger 4.0.42
07.X-Request-Id:1fd5e3b7541e7c0fee888b3799a26990
08.X-Runtime:0.238255
09.X-Total:31067
10.X-Total-Pages:1243
11.X-UA-Compatible:IE=Edge,chrome=1


Thank you!
Petur Subev
Telerik team
 answered on 30 Oct 2014
5 answers
417 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
329 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
263 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
108 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
540 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
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?