Telerik Forums
Kendo UI for jQuery Forum
2 answers
593 views
columns: [
    { field: "id", attributes: {"class": "someclass", style: "color:#0c0"} }
]
This part of the API reference explains the above definition:
http://docs.kendoui.com/api/web/grid#columnsattributes-object

someclass and/or the color css is never applied to the grid, any idea why?
telefunken
Top achievements
Rank 1
 answered on 25 Jan 2013
3 answers
319 views

When using a local dataSource with the Kendo UI Grid component, the cancelRow() method causes an issue in certain cases.  If the Grid has a dataSource that contains 1 item, for example, and you then add 1 more item to the dataSource by using the DataSource.add() method or replacing it with a new data source using the DataSource.data() method, then edit a row and execute the cancelRow() method, the grid behaves as if none of the new items exist – any items that were part of the original dataSource remain in the grid after cancelRow(), but any other items are removed entirely.  After digging a bit into the dataSource object, it seems that the _pristine array is not updated when adding items or replacing the root data array, and the _pristine array may be what is used during the cancelRow() process.  Here’s a working example illustrating the issue:

$("#grid").kendoGrid({

                                                                editable: "inline",

                                                                columns: [

                                                                                {

                                                                                                field: null,

                                                                                                title: "",

                                                                                                template: "<a href='\\#' class='edit'>Edit</a>, <a href='\\#' class='cancel'>Cancel</a>, <a href='\\#' class='update'>Update</a>"

                                                                                },

                                                                                {

                                                                                                field: "name",

                                                                                                title: "Name"

                                                                                },

                                                                                {

                                                                                                field: "other",

                                                                                                title: "Other"

                                                                                }

                                                                ],

                                                                dataSource: [

                                                                                {

                                                                                                name: "name1",

                                                                                                other: "other1"

                                                                                }

                                                                ],

                                                                save: function() {

                                                                                this.refresh();

                                                                },

                                                                dataBound: function() {

                                                                                var $grid = $("#grid");

                                                                                var grid = $grid.data("kendoGrid");

                                                                               

                                                                                $grid.find("a.edit").click(function (e) {

                                                                                                e.preventDefault();

 

                                                                                                var index = $(this).closest("tr").index();

                                                                                                grid.editRow(grid.tbody.find(">tr:eq(" + index + ")"));

                                                                                                grid.tbody.find(">tr:eq(" + index + ") td:eq(1) input").focus();

                                                                                });

                                                                                $grid.find("a.cancel").click(function (e) {

                                                                                                e.preventDefault();

                                                                                                grid.cancelRow();

                                                                                });

                                                                                $grid.find("a.update").click(function (e) {

                                                                                                e.preventDefault();

                                                                                                grid.saveRow();

                                                                                });

                                                                }

                                                });

                                               

                                                var $grid = $("#grid");

                                                var grid = $grid.data("kendoGrid");

                                               

                                                //fails with initial empty datasource

                                                $("#grid").data("kendoGrid").dataSource.add(

                                                                {

                                                                                name: "name2",

                                                                                other: "other2"

                                                                }

                                                );

Alexander Valchev
Telerik team
 answered on 25 Jan 2013
1 answer
2.0K+ views
Hi,

Is it possible to use a template inside another template?

Something like this:
<script type="text/x-kendo-template" id="tmpl-user">
           <span>data.Name</span>
</script>
<script type="text/x-kendo-template" id="tmpl-1">
            <div>
          data.Title
       </div>
  
       #tmpl-user(data.User)#
</script>
Where '#tmpl-user#' is called with the user object passed to the template.

Thanks for your help.
Bastien
Alexander Valchev
Telerik team
 answered on 25 Jan 2013
5 answers
137 views

My graphs are getting into I am using Stock Charts
unresponsive mode in the graph pages due to long-running script
T. Tsonev
Telerik team
 answered on 25 Jan 2013
4 answers
331 views
Hi

I am doing some tests with Kendo UI Mobile for an upcoming project. One thing that I saw can be easily done in jQuery Mobile's ListView is to group items in the ListView by their first character (like contacts in iPhone) automatically and even add a Search box on the top just by setting a property.
I was trying to do the same thing with Kendo UI using a DataSource loading json data from a data service. I can see the list of items in the ListView but I am not able to group them by their first character.
All the examples I have seen use a separate data field for group but I do not have a field for the first character.
Is there anyway that I can group list of names by the first character or at least create an unbound field in the datasource's model/shema that returns first character of the item so I can use it for groping?

Also is there an example that shows how to use a Search field to filter the ListView data?

I appreciate your help in advance.

Regards
Ron Farko
Ron
Top achievements
Rank 1
 answered on 25 Jan 2013
1 answer
375 views
Hi,

I have the following scenario:
  • A listview
  • A modalview to edit listview item
Once the listview-item is edited, I would like to close the modalview and update/refresh ONLY the listview-item that was impacted.

Is this possible? If yes, how can I achieve this? I want to avoid to refresh all the listview because the scroll position would be lost :-S.

Thanks for your support.
myTeamWorks
Alexander Valchev
Telerik team
 answered on 25 Jan 2013
3 answers
709 views
Is there a way to load the numeric keypad when clicking in the box instead of the full keyboard?  Thank you.
Georgi Krustev
Telerik team
 answered on 25 Jan 2013
3 answers
871 views
Hi, 

Is there a way we could add "autocomplete=off" to the date and time input fields? We simply don't want the field to be auto-completed using previously entered values.

Thanks
Georgi Krustev
Telerik team
 answered on 25 Jan 2013
4 answers
63 views
Hi,

I've a problem with the 'pullToRefresh' feature of the mobile listview.
$("#posts").kendoMobileListView({
                    pageSize: configPageSize,
                    dataSource: ds,
                    template: kendo.template($("#tmpl-post").html(), {useWithBlock:true}),
                    endlessScroll: true,
                    scrollTreshold: 30, //treshold in pixels
                    appendOnRefresh: true,
                    pullToRefresh: true,
                    pullParameters: function(item) {
                        //additional parameters
                        return {
                            since: item.CreatedOn,
                            page: 1
                        };
                    },
                    click: function(e) {
                        //writeLog($(e.target).closest('li').attr('id'));
                    }
                });
'item' parameter of pullParameters function is UNDEFINED. Why is this happening? Am I doing something wrong? 

Thanks for help.
Bastien
Georgi Krustev
Telerik team
 answered on 25 Jan 2013
1 answer
125 views
Is there a way to have a scrollview that is only a portion of the content (not within the data-role=header/footer) of the view, and the rest of the view content being something else?

Assume that I have two portions within my view:

<div id="id1">....</div>
<div id="id2"></div>

and I set (in code) id2 to be a kendoScrollView, it seems that the scroll-view wrapper that kendo creates, includes id1 within it as well, but I only want id2.

Is this possible?
Petyo
Telerik team
 answered on 25 Jan 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
Bronze
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
Bronze
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?