Telerik Forums
Kendo UI for jQuery Forum
2 answers
148 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
540 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
299 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
189 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
164 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
129 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
152 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
236 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
1 answer
110 views
"change" event is being generated when I click on already selected row.
Moreover the event is generated when I click in any place of detail row (in master-detail mode) if it contains a table with td's.

Also the event's handler arguments don't have any data about event context (i.e selected row), so I have to call "select()". That's not obvious. It's more naturally to get selected row in event handler. Also there's "current()" method which seems to be more suitable for getting currently selected row, but it returns undefined.

UPDATE:
When you're creating kendo.ui.Selectable inside Grid :

            that.selectable = new kendo.ui.Selectable(that.table, {
                filter: cell ? CELL_SELECTOR : ROW_SELECTOR,
                multiple: multi,
                change: function () {
                    that.trigger(CHANGE);
                }
            });

where ROW_SELECTOR = "tbody>tr:not(.k-grouping-row,.k-detail-row):visible"
you should specify "direct" selector:
ROW_SELECTOR = ">tbody>tr:not(.k-grouping-row,.k-detail-row):visible",

But unfortunetly it doesn't help when detail panel constains another grid.
Just take you sample http://demos.kendoui.com/web/grid/detailtemplate.html and add  "seletable: 'row'" into the first grid. And add handle for "change" event:
                    element.bind("change", function (e) {
                        var td = this.select();
                        console.log("selected: " + td);
                    });
then notice that it logs rows when you selected rows inside nested grid.
Nikolay Rusev
Telerik team
 answered on 01 Feb 2012
1 answer
59 views
Hi,

Is that possible to use scrollview or any other widget to implement the touch slide in panel like the one you have on the twitter ipad or facebook ipad? 

Thanks,
Kathy
Petyo
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
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?