Telerik Forums
Kendo UI for jQuery Forum
1 answer
76 views
How can I override the following, so my application scales correctly on Iphone 5?
<meta content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">

Can I simply add the following statement to override, or do I have to pass this as some sort of parameter somewhere?
<meta name="viewport"
      content="initial-scale=1.0">
<meta name="viewport"
    content="width=320.1"/>

Regards,
Nicklas
Petyo
Telerik team
 answered on 03 May 2013
1 answer
2.1K+ views
Can someone please provide me with a few lines of code to get the value of a checkbox in a column in a Kendo Grid. Starting with this code:

columns.Bound(o => o.Resolved).ClientTemplate("&nbsp;&nbsp;&nbsp;&nbsp;<input type='checkbox' # if (Resolved) { #checked='checked'# } #/>").Title("Resolved").Width(60).Sortable(false);
                  
var data = $("#Appointments").data("kendoGrid").dataSource.data();

$.each(data, function (index, item)
{ trArray = { "Resolved": item.Resolved    <<--- This gives me the value IN THE MODEL --- I WANT WHAT THE USER HAS SELECTED!       }; });

Please don't send me a solution that hangs Visual Studio for an answer.

Thanks,
Eric
Top achievements
Rank 1
 answered on 03 May 2013
4 answers
231 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
850 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
325 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
208 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
809 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
121 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
273 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
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?