Telerik Forums
Kendo UI for jQuery Forum
1 answer
50 views
Can anyone elaborate on what was added to the 1015 build regarding the statusBarStyle configuration?

Thanks
Jason
Top achievements
Rank 1
 answered on 15 Oct 2013
5 answers
81 views
I have a basic test app running. It contains a landing page with an image on it and a button below the image. If you click the image, an alert pops up. If you click the button, a modal view pops up. The trouble is, when you click "close" on the modal, it triggers the alert event for the image (as long as you touch the part of the button that overlays the image in the background). This appears to be true for any kind of popover layer view.

I am testing on an android 4x device through ICENIUM. It runs fine in the simulator.

Anything to do about this?

Thanks
Michael
Top achievements
Rank 1
 answered on 15 Oct 2013
4 answers
107 views
I'm having an infinate loop issue in IE8, but only when I have an All-Day Event.  It doesn't happen with IE9, but unfortunately IE8 is our standard, so I need for it to work with IE8.  I was getting the following error on a PC with IE8, so I put a break point there using IE9 in IE8 mode (which acts a little differently) and without an All-Day event it loaded fine, but with an All-Day event it endlessly hits a breakpoint at this line:

Message: Invalid argument.
Line: 52661
Char: 21
Code: 0
URI: http://website/src/js/kendo.web.js

I have a lot of customization, so I tried to remove most of it in an effort to rule out my code being the issue.  I noticed it because in IE8 when I hovered over an event, I didn't see the delete 'x' and expansion bars.  There were no errors on IE9 in IE8 mode and it seems to be because the page is stuck in a loop and never finishes loading.
$("#calendar").kendoScheduler({
    views: [
            "day",
            { type: "week", selected: true },
            "month",
            "agenda"
        ],
    dataSource: {
        serverFiltering: true,
        timezone: "US/Eastern",
        transport: {
            read: {
                url: webServiceBaseUrl + "readEvents",
                contentType: 'application/json; charset=utf-8',
                type: "POST",
                dataType: "json"
            },
            update: {
                url: webServiceBaseUrl + "updateEvents",
                contentType: 'application/json; charset=utf-8',
                type: "POST",
                dataType: "json"
            },
            create: {
                url: webServiceBaseUrl + "createEvents",
                contentType: 'application/json; charset=utf-8',
                type: "POST",
                dataType: "json"
            },
            destroy: {
                url: webServiceBaseUrl + "destroyEvents",
                contentType: 'application/json; charset=utf-8',
                type: "POST",
                dataType: "json"
            },
            parameterMap: function (data, operation) {
                if (operation == "create" || operation == "update") {
                    if (data.contactID == null || data.contactID == 0) {
                        data.contactID = 4;
                    }
                    if (data.categoryID == null || data.categoryID == 0) {
                        data.categoryID = 8;
                    }
                    var editor = $("#editor").data("kendoEditor");
                    if (editor != null) {
                        data.eventContent = editor.value();
                    }
                    data.lastEditDate = "";
                    if (operation == "create") {
                        data.ownerID = $('#userName').val();
                    }
                    if (operation == "update") {
                        data.lastEditorID = $('#userName').val();
                    }
                    return JSON.stringify({ eventItem: data });
                } else if (operation == "read") {
                    var calender = $("#calendar").data("kendoScheduler");
                    return JSON.stringify({ selectedDate: $("#calendar").data("kendoScheduler").date() });
                } else if (operation == "destroy") {
                    return JSON.stringify({ id: data.id });
                }
            }
        },
        schema: {
            data: "d",
            model: {
                id: "id",
                fields: {
                    id: { from: "id", type: "number" },
                    description: { from: "eventContent", type: "string" },
                    end: { from: "eventEnd", type: "date" },
                    endTimezone: { from: "endTimezone", type: "string" },
                    isAllDay: { from: "isAllDay", type: "boolean" },
                    recurrenceException: { from: "recurrenceException", type: "string" },
                    recurrenceID: { from: "recurrenceID", type: "number" },
                    recurrenceRule: { from: "recurrenceRule", type: "string" },
                    start: { from: "eventStart", type: "date" },
                    startTimezone: { from: "startTimezone", type: "string" },
                    title: { from: "title", type: "string", defaultValue: "No title", validation: { required: true} },
                    ownerID: { from: "ownerID", type: "string" },
                    categoryID: { from: "categoryID", type: "number", nullable: true },
                    outageNumber: { from: "outageNumber", type: "string" },
                    contactID: { from: "contactID", type: "number" },
                    locations: { from: "locations", type: "string" },
                    lastEditorID: { from: "lastEditorID", type: "string" },
                    scopeOfWork: { from: "scopeOfWork", type: "string" },
                    wbpLink: { from: "wbpLink", type: "string" }
                }
            }
        }
    }
});
This is the json response for a test All-Day record:
{"__type":"Event","id":61,"wbpLink":null,"eventEnd":"\/Date(1381204800000)\/","endTimezone":"","isAllDay":true,"recurrenceException":"","recurrenceID":0,"recurrenceRule":"","eventStart":"\/Date(1381204800000)\/","startTimezone":"","title":"test","ownerID":"owner","categoryID":1,"eventContent":"test","outageNumber":"test","contactID":4,"locations":"test","scopeOfWork":"test","lastEditorID":"","lastEditDate":"\/Date(1381377600000)\/"}
The demo with an All-day event seems to work fine, though it is returning jsonp as opposed to json.  I downloaded the latest internal build with no luck.  I'm not sure what could be causing this.  My html is basically just a div.  It is on an aspx page with a master page.  Any suggestions to help me troubleshoot this would be appreciated.
Cyndie
Top achievements
Rank 1
 answered on 15 Oct 2013
2 answers
268 views
Hello!

I am trying to pre filter my Kendo Grid, but have not found a way to do so.
 The filtering works just fine; I just need a way to initialize the filter on setup.

Code Snippet:
.Columns(columns =>
                          {
                              columns.Bound(p => p.myColumn)
                                               .Filterable(f => f.Extra(false))
                                               .Title("MyColumn");           
                           })
.Filterable(x => x.Enabled(true)
                               .Operators(o => o.ForEnums(e => e.Clear()
                                                                                                  .IsEqualTo("Is equal to")
                                                                                                  .IsNotEqualTo("Not equal to")))
)
Ermish
Top achievements
Rank 1
 answered on 15 Oct 2013
3 answers
348 views
Hi,
Here is what i want to achieve : 
I have a grid wich contains a list of customers (for instance). I have a template specificied using  ClientDetailTemplateId which contains a TabStrip. One of the tabs contains another grid which display orders. Preety much the same as the example in the demos : http://demos.kendoui.com/web/grid/detailtemplate.html
I need to show/hide columns of that order grid according to to the type of customer, how can I achieve that ?
Dimiter Madjarov
Telerik team
 answered on 15 Oct 2013
6 answers
180 views
When making the scheduler selectable the Kendo framework makes a call to focus the control.  This causes different behavior amongst browsers:

Chrome/IE cause the browser window to scroll so that the scheduler is in view while FireFox does not.  The call to focus is causing us some issues - is the focus call important in this case?  If we were to remove the call would this cause us issues?

Note: This can be exhibited in the following demo http://demos.kendoui.com/web/scheduler/selection.html
Nikolay Rusev
Telerik team
 answered on 15 Oct 2013
9 answers
720 views
Hi,

Can you tell me when Kendo UI will provide support for Web Sockets as a Kendo Data Source? 

I need to remove as must delay as possible in accessing my AutoComplete selection lists.  This is a critical capability for my software product.

Thanks,

Donald
David
Top achievements
Rank 1
 answered on 15 Oct 2013
3 answers
127 views
Hi i have two slider in a Cordova app since the new version works great but with the new version works only on ios7 device if i use it in a ios5 or 6 device (or simulator) the slider have strange behaviors, or move all the view or move all the slider when i try to slide it. 

Thanks Dario
Dario Ferrecchia
Top achievements
Rank 1
 answered on 15 Oct 2013
2 answers
211 views
I'd like to use a combo box in a tablet-based phone gap app I'm working on but the default 'open' behavior for the combobox appears to be different when running as a mobile app. Is there a way to revert this so that I don't get the ActionSheet anymore?
Marlon
Top achievements
Rank 1
 answered on 15 Oct 2013
1 answer
72 views
I have a page with multiple buttons and multiple Kendo grids populated by lists inside a model object. Some of the buttons on the page end up refreshing the page (but preserving the current state of the model) before anything gets saved to the database. The issue is that the Kendo grids use incell editing and any changes made are lost upon page refresh because the grids are populated with the initial data from the model object once again. It seems the Kendo grids do not make changes to the model. I want to preserve any changes made on the grid so that the user can eventually save to the database. Is this possible? Can the Kendo grid make changes to the model object so that the changes will persist when the page is refreshed?

------------------------------------------------------------------------------------

This is the javascript used to create the Kendo grid:

-------------------------------------------------------------------------------------

$(document)
        .ready(
                function() {
                    
                    var savedGrid = JSON.parse($.cookie("distancesGrid"));
                    
                    var grid = $("#distancesTable")
                            .kendoGrid(
                                    {
                                        sortable : true,
                                        dataSource : {
                                            autoSync: true,

                                            schema : {
                                                model : {
                                                    fields : {

                                                        bloodCenterId : {
                                                            type : "number",
                                                            editable : false
                                                        },
                                                        
                                                        miles : {
                                                            type : "number",
                                                            validation : {
                                                                required : true
                                                            }
                                                        },
                                                        
                                                        // additional fields omitted...
                                                    }
                                                }
                                            }
                                        },

                                        editable : "incell",

                                        navigatable : true ,

                                        columns : [

                                                {
                                                    field : "bloodCenterId",
                                                    title : "bloodCenterId",
                                                    hidden : true,
                                                },
                                                
                                                {
                                                    field : "miles",
                                                    title : "Miles",
                                                    width : "15%"
                                                },
                                                
                                                // additional columns omitted...

                                                {
                                                    command : [ {
                                                        name : "deleteDistance",
                                                        text : "Delete Distance",
                                                        click : function(e) {

                                                            var tr = $(e.target).closest("tr"); // get

                                                            var data = this.dataItem(tr);

                                                            deleteDistanceClicked(data.bloodCenterId);
                                                        }
                                                    } ]
                                                }
                                        ],
                                    }).data("kendoGrid");
                });

function deleteDistanceClicked(bloodCenterId)
{
    vertScrollPos.value = $(document).scrollTop();

    document.getElementById('hiddenDeleteDistanceBloodCenterId').value = bloodCenterId;
        
    leavePageDialog = false;

    $('#viewForm').attr('action', 'deleteDistance.htm'); 
    $('#viewForm').submit();    
}

---------------------------------------------------------------------------------------------

And this is the table definition in the .jsp file:

---------------------------------------------------------------------------------------------

<table id="distancesTable" class="table table-bordered"style="clear: both;">
    <tbody>
        <c:forEach items="${locationModel.distancesList}" var="distance">
            <tr>
                <td>${distance.distanceId}</td>
                <td>${distance.bloodCenter.bloodCenterId}</td>
                <td>${distance.location.locationId}</td>
                <td>${distance.bloodCenter.name}</td>
                <td>${distance.miles}</td>
                <td>${distance.minutes}</td>
                <td></td>
            </tr>
        </c:forEach>
    </tbody>
</table>

Petur Subev
Telerik team
 answered on 15 Oct 2013
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?