Telerik Forums
Kendo UI for jQuery Forum
1 answer
884 views
For the Grid, is there a way to style width in css instead of with the component's "width" property in html or js?

Also, I couldn't see a solution for using css max-width to specify column widths which is what I most want to do. Is there a way to do that for Kendo grid as I can for regular html tables?  The goal is to make a column take up no more room than it needs (for its widest value or its header, whichever is greater), and no more than the prescribed maximum regardless.  Without max-width, it's hard to style tables well in my applications.

Thanks,

Larry
Dimo
Telerik team
 answered on 18 Oct 2013
2 answers
290 views
We are evaluating the Telerik KendoUI Web Framework and want to identify it's potential. Therefore we put some effort in developing a small web application containing a Grid widget. The Grid's DataSource is based on a remote JSON source which contains about 5000 data objects.
We wanted to make heavy use of the filter, sorting, grouping and/or paging functionality because these are features which are often required by our customers.

Basically we are satisfied with the KendoUI Web Framework. Although we miss some great features we know from other Telerik products (like the Silverlight RadControls) we are happy with it's spectrum of functionality. But the greatest downside (from our point of view) is the Grid's lack of support for virtualization used together with grouping. We were not able to find a good solution to make the Grid highly responsive and user friendly while supporting large sets of data.
In our case the filtering works like charm when the virtualization is enabled. But when it comes to grouping there is this strange effect for collapsed groups: the groups are not arranged one below the other. The user has to scroll/page through large empty areas before the next group appears. This is very unpleasant to use.
When the virtualization is disabled, the filtering is much slower (but filters in an acceptable amount of time). Also the interaction on rows has a very high delay (like selection or activating and collapsing groups).

Do you have any tips regarding the grouping?
Are there plans to work on those issues in future releases of KendoUI?

EDIT: I'm referring to and voted for this feedback.
Aaron
Top achievements
Rank 1
 answered on 18 Oct 2013
0 answers
84 views
hi,
i am new to kendo ui..
i want to set up an kendo data source for a remote server..
as per the kendo ui datasource documention..

var dataSource = new kendo.data.DataSource({ 
transport: {
 // make JSONP request to http://demos.kendoui.com/service/products/create 
create: {
 url: "http://demos.kendoui.com/service/products/create",
 dataType: "jsonp" // "jsonp" is required for cross-domain requests; use "json" for same-domain requests },
});
here url="http://demos.kendoui.com/service/products/create", is a remote end point.

how do we create the remote endpoint for the server??
plz give the step by step instruction to create it..
Rajesh
Top achievements
Rank 1
 asked on 18 Oct 2013
1 answer
98 views
Hi,

I am wondering how to get distinct string values from data source on the categoryAxis in Kendo Chart? It seems to work fine with numeric values but it is not the case with string values. Is there a bug or is something that I am missing...?
Can somebody help me, please?

Here, attached are the sample charts.

Thank you,
Mimi
Iliana Dyankova
Telerik team
 answered on 18 Oct 2013
4 answers
1.5K+ views
 How to hide the ClientFooterTemplate,I already have ClientGroupFooterTemplate and want to make ClientFooterTemplate hide? Although I  set nothing about ClientFooterTemplate,It still have a lot of blank in the footer of the grid!
SEAN
Top achievements
Rank 1
 answered on 18 Oct 2013
8 answers
185 views
Hi there,

I am looking into feasibility to create mobile(phone) version of high traffic site with Kendo UI Mobile.

Following this article http://docs.kendoui.com/getting-started/using-kendo-with/aspnet-mvc/helpers/mobileapplication/overview I was able to create an example navigating pages with ajax. Since the controller is returning PartialView for the page, when you reload the url for the second page, that page seems broken as it doesn't load layout.  

I was able to workaround that with this code
            if (Request.IsAjaxRequest())
                            return PartialView();
             return View();

But when I load that second page directly, link to the third page got messed up (showing the route data and appending relative url)
Everything works well though when I set PushState to false, but in that case # is added to the url.
 
Is my approach wrong, or there is different setup for ajax navigation with ability to load inside pages by typing the url?

Any help would be appreciated.

Thanks.
Miljan
Top achievements
Rank 2
 answered on 17 Oct 2013
0 answers
385 views
If anybody else is wondering, because this code took me forever to figure out, here's how I change the tooltip template date format. Only works with dates, not times. Probably won't be perfect if your time zones are too far apart, but Daylight Saving Time won't screw it up.

$('#DateChart').kendoChart({
    ...
    categoryAxis: {
        baseUnit: "fit",
        autoBaseUnitSteps: {
            seconds: [],
            minutes: [],
            hours: [],
            days: [1],
            weeks: [1],
            months: [1,3],
            years: [1]
        },
        maxDateGroups: MaxBars,
    },
    tooltip: {
        visible: true,
        template: $('#DateChartTemplate').html()
    }
});
  
<script id="DateChartTemplate" type="text/x-kendo-template">
    # var BaseUnit = $('\#DateChart').data("kendoChart").options.categoryAxis.baseUnit;
    var FirstDate = array[0].Date;
    var LastDate = array[array.length - 1].Date;
  
    if (BaseUnit == "days" || (BaseUnit == "fit" &&
    Math.round((LastDate - FirstDate) / 86400000) < MaxBars)) { #
        #:value#<br />
        #=kendo.format("{0:ddd MMM d}", category)#
 
    # } else if (BaseUnit == "weeks" || (BaseUnit == "fit" &&
    (Math.round((LastDate - FirstDate) / 86400000)
    + FirstDate.getDay() - LastDate.getDay()) / 7 < MaxBars)) { #
        #:value#<br />
        #=kendo.format("{0:'Week of' MMM d}", category)#
 
    # } else if (BaseUnit == "months" || (BaseUnit == "fit" &&
    (LastDate.getFullYear() - FirstDate.getFullYear()) * 12
    + LastDate.getMonth() - FirstDate.getMonth() < 3 * MaxBars)) { #
        #:value#<br />
        #=kendo.format("{0:MMMM yyyy}", category)#
 
    # } else { #
        #:value#<br />
        #=kendo.format("{0:yyyy}", category)#
    # } #
</script>
Deej
Top achievements
Rank 1
 asked on 17 Oct 2013
1 answer
94 views
lets say you have something like:

        <div id="tabstrip-location" 
             data-role="view"  
             data-init="app.locationService.initLocation"...

does that initialization function get called right after the app loads? as opposed to when the view is actually displayed?

is there a simple way to call initialization functions after another event has first occurred? say, after the user logs in?
Michael
Top achievements
Rank 1
 answered on 17 Oct 2013
2 answers
522 views
Hey guys, 

I'm looking at the Kendo.All.js file to try and figure out how your Flat theme stops the charts from showing a bevel. Your theme builder is quite rudimentary in terms of what it allows you to theme unless I'm missing something. It doesn't for example allow you to specify something like bevels or no bevels. 

So right now I'm going through the JS file step for step, which is time consuming and costly. How can we register a proper, complete, theme and control things like the bevels, as well as EVERYTHING else the chart may make use of? Right now the bevel is the most annoying part, but the rest would be nice too. 

Thanks,
Jacques
Iliana Dyankova
Telerik team
 answered on 17 Oct 2013
1 answer
146 views
I have attached  a sample project with a single index.html page (and supporting kendo resources). The source of that page is included below for those that don't want to download the attached .zip.
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="msapplication-tap-highlight" content="no" />
 
        <!-- Kendo UI Mobile CSS -->
        <link href="styles/kendo.common.min.css" rel="stylesheet" />
        <link href="styles/kendo.default.min.css" rel="stylesheet" />
        <link href="styles/kendo.mobile.all.min.css" rel="stylesheet" />
 
        <!-- jQuery JavaScript -->
        <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
 
        <!-- Kendo UI Mobile combined JavaScript -->
        <script src="js/kendo.all.js"></script>
    </head>
    <body id="body">
        <div data-role="layout" data-id="default">
            <div data-role="header">
                <div data-role="navbar">
                    <span data-role="view-title"></span>
                </div>
            </div>
        </div>
 
        <div data-role="view" data-title="Select Test" data-model="myViewModel" data-layout="default" id="roster">
            <table>
                <tr>
                    <td>Selected Person: <span data-bind="text: selectedPerson"></span>
                </tr>
                <tr>
                    <!--<td><label> DataSource Select <select data-value-field="id" data-text-field="name" data-bind="source: dsPeople, value: selectedPerson"></select></label></td>-->
                    <td>
                        <label> Array Select
                            <select data-bound="onBind" data-option-label="Select an item" data-value-field="id" data-text-field="name" data-bind="source: arrPeople, value: selectedPerson, events: { bound: onBind}" data-value-primitive="true">
                                <option value="-1">Select an item</option>
                            </select>
                        </label>
                    </td>
                </tr>
            </table>
        </div>
 
        <script>
            var myViewModel = kendo.observable({
                dsPeople: new kendo.data.DataSource({
                    data: [],
                    schema: {
                        model: {
                            id: "id"
                        }
                    }
                }),
                arrPeople: [],
                init: function()
                {
                    for (var i = 0; i < 5; i++) {
                        var person = {
                            name: "Person " + i,
                            id: i
                        };
                        this.dsPeople.add(person);
                        this.arrPeople.push(person);
                    }
                },
                onBind: function(e)
                {
                    alert('onBind called');
                },
                selectedPerson: null
            });
 
            $.ready(myViewModel.init());
 
            // Initialize a new Kendo Mobile Application
            var kidcheck = new kendo.mobile.Application($(document.body), {
                skin: "flat"
            });
        </script>
    </body>
</html>
Now, I have some questions.
1: If I un-comment the Select with the "DataSource Select" label I get an error (Uncaught ReferenceError: id is not defined). Is binding a Select element to a kendo datasource not supported?
2: Neither the "Array Select"s data-option-label, nor the initial option are honored. When the viewModel's selectedPerson attribute is null, there is no way to 'prompt' the user for input. Can the select be configured to either; use a default option to prompt for input OR select the first item in the list?
3: I expected I could implement the behavior in question #2 myself, however the "bound" method is never fired so I don't have an event upon which I can act and evaluate the state of the select. The Select is configured with both the data-bound="onBind" and data-bind="... events{ bound: onBind}" and neither invokes the onBind method.
4: Is there a location where the level of support for controlling an HTML Select is documented? Most of my questions are based on the assumption that since a dropdownlist widget and an HTML Select element derive from the same thing that there would be common behavior.

Environment:
Chrome: 30.0.1599.69
Kendo: 2013.2.918 commercial
Jquery: 1.10.2

Thanks
Petur Subev
Telerik team
 answered on 17 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?