Telerik Forums
Kendo UI for jQuery Forum
1 answer
90 views
I am working with the samples and they include a stylesheet that isn't there, is it missing or not necessary:

<!DOCTYPE html>
<html>
<head>
    <title>Basic usage</title>
    <script src="../../../js/jquery.min.js"></script>
    <script src="../../../js/kendo.mobile.min.js"></script>
    <script src="../../content/shared/js/console.js"></script>
    <link href="../../../styles/kendo.common.min.css" rel="stylesheet" />
    <link href="../../../styles/kendo.mobile.all.min.css" rel="stylesheet" />
</head>
<body>
Kamen Bundev
Telerik team
 answered on 02 Feb 2012
1 answer
465 views
Hello,
I want to create a complex filter for the grid.
Is it possible to force Kendo Grid to filter data?
KRVC
Top achievements
Rank 1
 answered on 01 Feb 2012
2 answers
149 views
I have a time-based line chart that varies in the number of values displayed.  If the user chooses a large date range there will be a large number of values returned from the web service.  As a result, the grid lines and categoryAxis labels are too close or overlapping.  Is there a way to space the grid lines and labels based on the number of values?
Cyndie
Top achievements
Rank 1
 answered on 01 Feb 2012
2 answers
551 views
I am implementing a solution that uses nested grids to drill-down on an organization hierarchy. The entire organization is obtained from a single data source. I have found that the dataSource binding does not initialize when showing the detailTemplate.

I created the following minimal example to demonstrate the issue.

<div id="grid"></div>
 
<script>
    $(document).ready(function () {
        var dataSource = new kendo.data.DataSource({
            type: "odata",
            transport: {
                read: "http://demos.kendoui.com/service/Northwind.svc/Employees"
            }
        });
 
        var element = $("#grid").kendoGrid({
            dataSource: dataSource,
            columns: ["FirstName", "LastName"],
            height: 450,
            detailInit: detailInit,
            dataBound: function () {
                this.expandRow(this.tbody.find("tr.k-master-row").first());
            }
        });
    });
 
    function detailInit(e) {
        $("<div/>").appendTo(e.detailCell).kendoGrid({
            dataSource: dataSource,
            /*dataSource: {
                type: "odata",
                transport: {
                    read: "http://demos.kendoui.com/service/Northwind.svc/Employees"
                }
            },*/
            columns: ["FirstName", "LastName"],
            scrollable: false
        });
    }
</script>

This results in an error: dataSource is not defined.

If you comment out the dataSource property within detailInit and uncomment the one immediately afterwards, then it works.

In case it is relevant, this markup is being loaded via AJAX and inserted into the DOM via jQuery. 

My business need is to bind the main grid and the sub-grids to the same data source. It's not shown in the basic example, but this will be iterative to dozens of levels, so I really need to be able to use a single data source.

Thanks,
Gary
Gary
Top achievements
Rank 1
 answered on 01 Feb 2012
6 answers
302 views
It seems that the z-index is not correctly set in modal window for a ComboBox.
I can not see the options.

Chris
Top achievements
Rank 1
 answered on 01 Feb 2012
4 answers
199 views
Hi all,
I'm trying out Kendo as an alternative to jQuery-UI and so far it is working nicely.
One thing I couldnt really figure out (I'm probably missing something....) - I created a grid from an array.
Now, I want to redraw the grid using the same element but with a different data set.
With jQuery-UI I simply could destroy the grid and the recreate it. How do I do it in Kendo?

Thanks
Rafi
Nick
Top achievements
Rank 1
 answered on 01 Feb 2012
1 answer
166 views
How do you set an initial value in a dropdownlist that is bound to remote data?

Currently I have to use setTimeout to make sure data is loaded before I can call dropdown.value('initalvalue').

I have been searching for an event or something but I cannot find it.
Georgi Krustev
Telerik team
 answered on 01 Feb 2012
0 answers
133 views
Hi there,

I'm having a problem setting an edited row to be called for updating back to the server. The default edit along with save using the toolbar works perfectly. However, i wish to make use of a form.  Somewhere somehow I have to either set an attribute or throw the item into a queue so that Kendo knows it needs to perform an update query.

<code>
    $("#form-edit").live("submit",function(e) {
    // Declaring grid
    var grid = $("#grid").data("kendoGrid");
   
    // Getting values of selected item
    var row = grid.dataItem(grid.select(grid.tbody.find()))
   
    // Declaring window
    var window = $("#window-edit").data("kendoWindow");
   
    // Setting variables for editable row       
    row.Name = $("#form-edit-name").val();
    row.GeoLocation = $("#form-edit-location").val();
    row.Active = $("#form-edit-activity").val();
    row.ContactNo = $("#form-edit-number").val();      

// Grid refreshing and database sync
// grid.refresh();
grid.saveChanges();

// Closing form window
window.close();
    });
</code>

The default kendo way (using inline as well as the toolbar save) works 100% thus proving that my datasource has been successfully set up.  

Regards,
Tom
Top achievements
Rank 1
 asked on 01 Feb 2012
3 answers
154 views
The display looks ok on the Macbook but weird on the iPad. Any ideas? 
Kamen Bundev
Telerik team
 answered on 01 Feb 2012
1 answer
240 views
I know that, using the .value(); method I can retrieve the TEXT of the currently selected item ...but what if we want to get the entire object, with all of its existential data intact?

Currently, the only method I have found is the following ...

var combobox = $("#input").data("kendoComboBox");
console.log(combobox.dataSource.view()[combobox._current.index()]);


This seems hardly intuitive and excessively redundant. The code is relatively simple, can't we just get a simple .selected() or a .current() method attached to it that pulls this? 
Georgi Krustev
Telerik team
 answered on 01 Feb 2012
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
Dialog
Chat
DateRangePicker
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?