Telerik Forums
Kendo UI for jQuery Forum
4 answers
247 views
Not sure if this is the right place for this but I've noticed on my site and the kendo demo page for tooltip that when you hover over a tooltip item the <title> element of the page is cleared and usually, but not always, restored when you mouse out. I assume this is to do with the code that removes the tooltip elements title to prevent the browsers default tooltip. 
Diane
Top achievements
Rank 1
 answered on 03 May 2013
3 answers
883 views
Let's say I have hierarchical data that I display in a treeview. It's possible that a particular node might have 1000 children and I don't want to display them all, so I'm toying with the idea of paging the nodes in a tree. I would show 10 children and if there are more, the user needs to click on the next/previous buttons to see them. I've got sql paging working but I can't get the treeview to do what I want. If I do this (first code snippet), my controller gets the proper node id and page id and it returns the correct page of results back. But then the treeview shows only the 1 page of children I just requested; the rest of the hierarchy (all the parents) is lost:
$("#btnNextPage").click(
   function () {
      var selectedNode = treeview.select();
      var selectedNodeID = treeview.dataItem(selectedNode).id;
      ds.read({
         LoopID: selectedNodeID,
         page: ds.page() + 1
         })
});

If I do the second code snippet, I can keep the hierarchy and my controller gets called, but I can't figure out how to pass in the page that I'm requesting.
$("#btnNextPage").click(function () {
   var selectedNode = treeview.select();
   var testnode = treeview.dataItem(selectedNode);
   testnode.loaded(false);
   testnode.load();
});

Any ideas?
jk
Top achievements
Rank 1
 answered on 03 May 2013
1 answer
346 views
Hi Guys,

In the past, Telerik Web UI has column called GridAttachmentColumn

Do we have this functionality in Kendo Ui grid

Thank you
Petur Subev
Telerik team
 answered on 03 May 2013
3 answers
231 views
I have a grid and have enabled the filter menu. I have removed the options "contains, equals to , and so on..." So all thats left is a kendoDropDownLIst with the available options for that particular column, and the Filter and Clear buttons. What Id like to do it, when the user opens the filter menu, that the dropDownList, will automaticallt open as well, so the user can select the appropriate value. I know its just saving one click, but the user wants that functionality... go figure...

Any ideas?
Atanas Korchev
Telerik team
 answered on 03 May 2013
8 answers
842 views
I have a checkbox father and 5 children, 3 of which are checked and not the other 2. How can I get the father as indeterminate form automatically?
Alex Gyoshev
Telerik team
 answered on 03 May 2013
3 answers
131 views
I have a remote data service that is set at the server side to pagesize 100.

I need to get 10000+  records back using a single query.

How do I do that?

I have tried using the add and splice methods on an observableArray object but nothing has worked. I have looked all over the place for an example or something close and have not seen anything.

example attempt from inside DataSource Object:

  schema: {
                data: function (response) {
                    //apply response to field that was in activeQuery
                    totalCount = response.totalCount;
// .set overwrites the returned set every time with the next page of data
                    assetViewModel.set("assets", response.assets);
// length is forever 0 with this
                    assetViewModel.assets_ds = response.assets.splice(assetViewModel.assets_ds.length,0,response.assets);
// tried using .add but this only works iterating through each of the 100 returned items in a loop - not performant
                    // we only have the first page of results from assetDataSource at this point
                  // we can process what we have so far and come back for next page 
                    locationsDataSource.read();
                    return response;
                },

if you need to see more we have to share files off forum thank you!

<update>
found allAssets = allAssets.concat(assetViewModel.assets.slice(0)); is slightly faster than a for loop through response to add items to allAssets

<update #2>
if you have a server that pages out data in small chunks the service calls will be the main slowdown - set expecations appropriately : )
Petur Subev
Telerik team
 answered on 03 May 2013
4 answers
1.5K+ views
Team, 

I would like to send only the changed fields from Kendo grid control to the server during the Update. By default Kendo is sending the entire record to the server even if one field is changed in that record. I would like to send only the updated fields rather than all fields.

How can i do it ?

Also, i would like to fire the update from an external button rather than the toolbar Save button. How to do it ?

Regards,
Bharani 
horo
Top achievements
Rank 1
 answered on 03 May 2013
1 answer
285 views
Is there a way to set the hint when dragging a treeview node in a similar manner to how it's set when using the draggable plugin...without using the draggable plugin? My needs are pretty simple - I have a checkbox on my node, and I would like to hide it during the drag event. Here is some relevant code (I would like to hide the div with class "folder-check"):  

<script id="treeview-template" type="text/kendo-ui-template">
    <div class="FolderTemplate">
        <div class="folder-check checkbox-false"></div>
        <div class="folder-details">
            <input type="checkbox" />
            <span>#= item.Name # (#= item.ItemCount #)</span> 
        </div>
        <div style="clear:both;"></div>
    </div>
</script>

Folders = new kendo.data.HierarchicalDataSource(dataSourceOptions);
    $("#treeview").kendoTreeView({
        dragAndDrop: true,
        dataSource: Folders,
        dataTextField: "Name",
        template: kendo.template($("#treeview-template").html()),
        select: onFolderSelect,
        drop: onFolderDrop,
        dragstart: onFolderDragStart,
        drag: onFolderDrag,
        dataBound: onDataBound
    });

function onFolderDragStart(e) {
    if (this.dataItem(e.sourceNode).IsSpecialFolder)
        e.preventDefault();
}

Thanks so much.
Alex Gyoshev
Telerik team
 answered on 03 May 2013
1 answer
285 views
Just to let you know that the documentation for kendo.init() seems to be missing at http://docs.kendoui.com/api/framework/kendo#init. even though it is referenced from http://docs.kendoui.com/getting-started/data-attribute-initialization.

Thanks,
Gary
Petyo
Telerik team
 answered on 03 May 2013
4 answers
129 views
Hello, I have the autoFilter set to false, but when I hit the enter key the search is not executed.

_searchDS = new kendo.data.DataSource({
        serverFiltering: true,
        transport: {
            read: function (options) {
                var filter = options.filter ? options.filter.filters[0].value : '';
                $.ajax({
                    url: _serviceConst + '/Search?q=' + filter,
                    type: 'GET',
                    success: function (result) {
                        console.log('result came back: ' + result.Object.length);
                        options.success(result);
                    },
                    error: function (xhr, sts, msg) {
 
                    }
                });
            }
        },
        schema: { data: "Object", errors: "Error" }
    });
    if (_searchMV == null) {
        _searchMV = $("#searchresults").kendoMobileListView({
            dataSource: _searchDS,
            template: $("#searchresults-template").text(),
            filterable: true,
            filterable: { autoFilter: false },
            click: function (e) {
            }
        }).data("kendoMobileListView");
    } else {
        _searchMV.setDataSource(_searchDS);
    }
I have also tried the read statement as:
read: {
                url: _serviceConst + '/Search',
                dataType: 'json'
            },
            parameterMap: function (options) {
                var filter = options.filter ? options.filter.filters[0].value : '';
                var parameters = {
                    q: filter
                }
                return parameters;
            }
Both do not execute the search on Enter key.
Thanks.
Barry
Top achievements
Rank 1
 answered on 03 May 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
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
ScrollView
Switch
BulletChart
Licensing
QRCode
ResponsivePanel
TextArea
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?