Telerik Forums
Kendo UI for jQuery Forum
1 answer
94 views
Hi there.
Problem: I'm using Kendo UI Web v2012.3.1114 in my mvc application I have kendo grid with options Reorderable(x => x.Columns(true)) and Groupable(), in DetailTemplate I have another grid without grouping and sorting.
Issue: I can drag columns of detailed grid and drop them to main grid.

Comments:
I saw at kendo.grid.js
_draggable: function() {
...
  filter: ".k-header:not(.k-group-cell,.k-hierarchy-cell)"
...
       },

I think problem is that filter equals to .k-header:not(.k-group-cell,.k-hierarchy-cell)
that filter applying to all .k-header, even in detail template grid. If I'm right how can I fix it? 

        
Nikolay Rusev
Telerik team
 answered on 10 Jan 2013
1 answer
119 views
var dataSource = new
kendo.data.DataSource({
    transport: {
        read: {
            url: window.stpURL + "/GetClusterStoresTable",
            dataType: "xml",
            data: {
                action: 'fetch',
                id: function() {
                    return window.selectedFolderNodeID;
                }
            }
        }
    },
    schema: {
        type: "xml",
        data: "/TABLE/STORES",
        model: {
            fields: fields
        }
    },
    error: raiseXmlDsErrorWindow
});

In the above data source the data.id item passed to the read.url is dynamic, that is fantastic.

My situation is this:
The schema.model.fields property is also dynamic and can change based on the data.id.
My understanding from the documentation is that the fields property can't be a function.

So before I do a ds.read I can query another url to get the fields that will be returned for an id.  Call this 'fieldsOfId'
If they are different than the current schema.model.fields I should do ... what?

1. Create a new datasource using the fieldsOfId value.
or
2. Change the value of schema.model.fields of that of fieldsOfId and mark the schema/datasource as 'dirty'

Regardless of how the data source is managed, the Grid that it is attached to will also need to have its columns property adjusted to match the fields of the datasource.

Thanks,
Richard DeVenezia
Atanas Korchev
Telerik team
 answered on 10 Jan 2013
1 answer
139 views
I apologize if this question has been answered before, but I haven't been able to locate and answer.

Is running a mobile web site on Windows WebKit browsers, such as Safari and Chrome supported? And how about FireFox?

The reason why I ask this question is that it ALMOST works, but I have run into a few snags.

My main problem is that if I have a scrollable grid inside a view that can be drag scrolled, and I perform any action on the scroll bar, either clicking or dragging, then KendoUI thinks I have started a drag on the outer view. It appreas that the mousedown event is cascaded to the outer view, but the mouseup event isn't. This is really annoying, because any mouse movement after moving the scroll bar and releasing the mouse button causes the entire view to scroll until I do a click anywhere in the vew, which causes a mousedown and mouseup event to cascade to the scrollable view.

On iOS everything works as expected/

Thanks/Anker
Petyo
Telerik team
 answered on 10 Jan 2013
1 answer
79 views
After transitioning from Kendo version v2012.2.710 to version v2012.3.1114, the touch-events on an ipad no longer trigger the navigation events for a PanelBar.

In addition I've noticed other kendo controls do not work for ipad after switching to the newer version.


To reproduce this error, I have created two identical websites simply utilizing different Kendo Web versions:

Kendo v2012.3.1114 http://kendo.mobnation.org/

Kendo v2012.2.710 http://kendo.mobnation.org/home/old

You can try both urls on an ipad and see that only v2012.2.710 triggers navigation when an item is clicked. You can simulate this in Google Chrome by enabling the developer console (F12), clicking the black gear icon in the bottom right corner, select the "Overrides" tab, change the User Agent to "iPad iOS 5" and tick the "Emulate touch events" checkbox (Ensure you refresh the page).

Please let me know if you are able to reproduce this issue and have plans to correct it as my company is trialing your products and about to buy it but cannot without full ipad support.

-Angelo
Angelo
Top achievements
Rank 1
 answered on 10 Jan 2013
0 answers
85 views
Hi:

I would like to share some code.  This is a MVC application accessing web-server that is returned as json:
@{
    ViewBag.Title = "Home Page";
}
<script id="contact-template" type="text/x-kendo-template">
    <div class="mm-contact">
        <span class="mm-title" data-bind="text: Title"></span><br />
        <span data-bind="text: FirstName"></span> <span data-bind="text: LastName"></span><br />
        Extension: <span data-bind="text: Extension1"></span><br />
        mail: <span data-bind="text: Email"></span>
    </div>
</script>
<div id="ProductSales" data-role="view" data-model="vm" data-layout="default" data-title="Product Sales">
    <header data-role="header">
        <div data-role="navbar">Product Sales</div>
    </header>
    <div id='lv' data-role="listview" data-bind="source: productSalesContacts" data-template="contact-template"></div>
</div>
<script type="text/javascript">
    var Staff = kendo.data.Model.define({
        id: "ID",
        fields: {
            // data type of the field {Number|String|Boolean|Date} default is String
            ID: { type: "Numeric", editable: false, nullable: true },
            LastName: { type: "String", validation: { required: true } },
            FirstName: { type: "String", validation: { required: true } },
            Title: { type: "String" },
            City: { type: "String" },
            State: { type: "String" },
            Email: { type: "String" },
            Phone1: { type: "String" },
            Extension1: { type: "String" },
            Sequence: { type: "Numeric", nullable: true }
        }
    });
    var vm = kendo.observable({
        productSalesContacts: new kendo.data.DataSource({
            transport: {
                read: {
                    url: "/Services/Contacts.asmx/ProductSales",
                    dataType: "json",
                    type: "POST",
                    contentType: "application/json; charset=utf-8"
                },
            },
            schema: {
                data: "d",
                model: Staff
            }
        })
    });
</script>
Good luck:
Phil
Phil H.
Top achievements
Rank 2
 asked on 10 Jan 2013
0 answers
113 views
Hi:

I would like to share some code.  This is a MVC application accessing web-server that is returned as json:
@{
    ViewBag.Title = "Home Page";
}
<script id="contact-template" type="text/x-kendo-template">
    <div class="mm-contact">
        <span class="mm-title" data-bind="text: Title"></span><br />
        <span data-bind="text: FirstName"></span> <span data-bind="text: LastName"></span><br />
        Extension: <span data-bind="text: Extension1"></span><br />
        mail: <span data-bind="text: Email"></span>
    </div>
</script>
<div id="ProductSales" data-role="view" data-model="vm" data-layout="default" data-title="Product Sales">
    <header data-role="header">
        <div data-role="navbar">Product Sales</div>
    </header>
    <div id='lv' data-role="listview" data-bind="source: productSalesContacts" data-template="contact-template"></div>
</div>
<script type="text/javascript">
    var Staff = kendo.data.Model.define({
        id: "ID",
        fields: {
            // data type of the field {Number|String|Boolean|Date} default is String
            ID: { type: "Numeric", editable: false, nullable: true },
            LastName: { type: "String", validation: { required: true } },
            FirstName: { type: "String", validation: { required: true } },
            Title: { type: "String" },
            City: { type: "String" },
            State: { type: "String" },
            Email: { type: "String" },
            Phone1: { type: "String" },
            Extension1: { type: "String" },
            Sequence: { type: "Numeric", nullable: true }
        }
    });
    var vm = kendo.observable({
        productSalesContacts: new kendo.data.DataSource({
            transport: {
                read: {
                    url: "/Services/Contacts.asmx/ProductSales",
                    dataType: "json",
                    type: "POST",
                    contentType: "application/json; charset=utf-8"
                },
            },
            schema: {
                data: "d",
                model: Staff
            }
        })
    });
</script>
Good luck:
Phil
Phil H.
Top achievements
Rank 2
 asked on 10 Jan 2013
1 answer
126 views
If a value is zero, a label of a barchart is not displayed.
Is there a way to show it anyway? (with a value of zero)
Iliana Dyankova
Telerik team
 answered on 09 Jan 2013
2 answers
178 views
I have a 2 pane splitter.

I am using the left pane for a menu using a panel bar.

I am using the right pane as content relevant to the selected panel bar item.

The example I have attached attempts to change the grid associated with the right pane based on the panel bar selection.

I am having a problem changing this content - the data in the grid seems to change but not the definition of the grid.

How do I change the pane content to show the proper grid.

Thanks,

Shawn
Shawn
Top achievements
Rank 2
 answered on 09 Jan 2013
1 answer
111 views
Hi All,

We have developed an application using HTML 5 Kendo UI.We have tested the application in both IE 9 and IE 10 versions in the local machines it works fine but the main problem arises when the application is deployed and we run the application in the IE 9 and IE 10 data to the grid is not showing
Sebastian
Telerik team
 answered on 09 Jan 2013
2 answers
172 views
I am using Kendo UI MVC wrappers. Is there a way to use resource files in templates?

I tried to use the following code: 
<script id="person-template" type="text/x-kendo-template">
<span>${Resource.LastName} ${LastName}</span>
</script>

I've got the error: "Resource not defined". 


Dj Prpa
Top achievements
Rank 1
 answered on 09 Jan 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
Drawing API
Drawer (Mobile)
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?