Telerik Forums
Kendo UI for jQuery Forum
1 answer
204 views
Hello,

I am using Kendo UI mobile and have developed a custom validator. I have also developed a simple form with 2 input controls & push button. The validator that I have developed is applied declaratively to these 2 controls.

When I click on the button and inside the button click handler, when I call 'validate' on validator object. When data entered in both input controls is invalid. I see validation messages for both input boxes displayed INSIDE the first input box. So essentially 1 validation message is written on top of the other.

I have 2 questions :
1. The error message being displayed inside the TEXTBOX itself, is that by design for the mobile platform ?
2. Why do both error message get overwritten one above the other ? I have attached my validator code for reference.

I can share the complete code if needed. Please let me know.

Best Regards,
Nilesh Padbidri
Alexander Valchev
Telerik team
 answered on 25 Jan 2013
2 answers
601 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
329 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
146 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
339 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
379 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
715 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
878 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
67 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
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
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?