Telerik Forums
Kendo UI for jQuery Forum
0 answers
217 views
I'm curious if it's possible to place a date picker in the popup when I'm creating a new entry in the grid. 
The actual problem: I have a table with two DateTime columns which are required for each new entry. I'm showing the data from the tables in a kendo ui grid for which I'm using popup editable mode. 
What I need: a way to format the dates entered by users (example: MM/dd/yyyy not the full date time - which is like Fri Aug 17 2012 13:23:53 GMT+0300 (GTB Daylight Time)). 

Is there a way to modify what should be entered in DateTime fields? 
Marius
Top achievements
Rank 1
 asked on 17 Aug 2012
0 answers
108 views
Hello,

I was wondering if it is possible to have both inline cell editing, and popup editing with the edit button in the same grid? The reason i want to do this, is because i have lots of columns in my table, and want to narrow the amount of columns down to only the basics and edit those with the inline cell editing, and have a sort of detail-view with a popup that displays all the fields in a custom template.

Also, is it possible to make the cell editing work with double click?

Hope anyone can help!
Thanks in advance.

-Danny
Danny
Top achievements
Rank 1
 asked on 17 Aug 2012
7 answers
543 views
Whats the best way to specify autocomplete on an input in my view such that I can define the datasource which will populate it?  A method in the observable somehow perhaps?

So question #2
If this is my markup structure
<div>
  <input data-role="numerictextbox" />
  <input data-role="autocomplete" />
  <input data-role="numerictextbox" />
  <input /> //Click this, adds a new row
  <input /> //Click this, deletes this row
</div>

How could that get bound to my model?...I'm not sure I understand the whole binding to an array...if this is even doable?
Atanas Korchev
Telerik team
 answered on 17 Aug 2012
1 answer
133 views
Is it possible to embed a DropDownList or ComboBox in the Kendo menu?  I've done some searching and have not found an answer to this.
Kamen Bundev
Telerik team
 answered on 17 Aug 2012
0 answers
143 views
I have bound the "select" method of my treeview to show some extra info about the node in another pane.
Clickng on a node highlights it and shows the info just fine.
However when I drag a node:
- First of all, does this cause it to be selected?
  Since you start a drag by click then mouse down, does that  "click" select it?
- In any case, the dropped node is not highlighted, but clicking on it does not highlight it
 and does not call the "select" event.that I've defined.

- If I call my treeview.select(some_kitem) is that suppose to call the method that I have bound to the select method
for the treeview?

- Related to all of this,. when a node IS selected (and highlighed), I'd like it if when the user clicks on it,
it calls the select method that I've bound to the treeview, but it does not.
Apparently if a node is selected, it can't be reselected.
I consider this a bug, but I can imagne an app where you wouldn't want this to happen.
Christopher
Top achievements
Rank 1
 asked on 17 Aug 2012
0 answers
121 views
Here is my scripts:



<!doctype html>
<html>
    <head>
        <link href="http://cdn.kendostatic.com/2011.2.804/styles/kendo.common.min.css" rel="stylesheet"/>
        <link href="http://cdn.kendostatic.com/2011.2.804/styles/kendo.kendo.min.css" rel="stylesheet"/>
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
        <script src="http://cdn.kendostatic.com/2011.2.804/js/kendo.all.min.js"></script>
    </head>
    <body>
        <div id="grid"></div>
        <script type="text/javascript">
                $(document).ready(function() {
                    $("#grid").kendoGrid({
                        dataSource:  new kendo.data.DataSource({
                            transport: {
                                // specify the XML file to read. The same as read: { url: "books.xml" }
                                read: "books.xml"
                            },
                            schema: {
                                // specify the the schema is XML
                                type: "xml",
                                // the XML element which represents a single data record
                                data: "/books/book",
                                // define the model - the object which will represent a single data record
                                model: {
                                    // configure the fields of the object
                                    fields: {
                                        // the "title" field is mapped to the text of the "title" XML element
                                        title: "title/text()",
                                        // the "author" field is mapped to the text of the "author" XML element
                                        author: "author/text()",
                                        // the "url" field is mapped to the text of the "url" XML element
                                        url: "url/text()",
                                        // the "cover" field is mapped to the "id" attribute of the "book" XML element
                                       cover: "@cover"
                                    }
                                }
                            }
                        }),
                        scrollable: false,
                        sortable: true
                    });
                });
            </script>
    </body>
</html>




the books.xml contains valid xml record. The web page correctly show the result if the books.xml contain more than one record.
However, if there is only one record in the books.xml, the web page show nothing.

Is it a bug? Is there any way to avoid/fix it?

Thank you.

danny
Top achievements
Rank 1
 asked on 17 Aug 2012
2 answers
213 views
If I have below js code for a DDL, which means defaultly select 1st one after rebind DDL:

DDLDataSource.read();
DDL.select(0);

It will select 1st one of previous datasouce.
I guess when running DDL.select(0), DDL rebind is not fully complete.

so questions:
1. why DDL hasn't a OnBind event so that we can walk around this situation?
John
Top achievements
Rank 1
 answered on 17 Aug 2012
1 answer
146 views
The backbone integration sample on Github only integrates backbone models and collections to KendoUI. Is there a way to integrate backbone views (especially for mobile) and use KendoUI's mobile native look and feel? Thanks in advance.
Bill
Top achievements
Rank 1
 answered on 16 Aug 2012
1 answer
194 views
I'm tryiing to "play" with mobile example to see how can be easy is to make a port to kendo an application that use another framework.

I have added:
    <div data-role="footer">
        <div data-role="tabstrip">
            <a href="#tabstrip-profile" data-icon="contacts">Profile</a>
            <a href="#tabstrip-sales" data-icon="history">Sales</a>
            <a href="#tabstrip-rating" data-icon="favorites">Rating</a>
            <a href="#tabstrip-settings" data-icon="settings">Settings</a>
            <a onclick="javascript:apriFig();" data-icon="settings">Fig</a>
        </div>
    </div>


and made a javascript that do:
<script>  
    function apriFig() {
      $("#tabstrip-profile").empty().html('<img src="/static/indicator.gif"/>');
      $('#tabstrip-profile').load('/newtab/');
  }
</script>  

but it don't work: in the response of url /newtab/ i tryed to replace tabstrip-profile... but i don't understand why it don't work.

Francois Lorrain
Top achievements
Rank 1
 answered on 16 Aug 2012
1 answer
167 views
I want to render a chart where all but one of the series are stacked columns.  The other series is a line.  This works fine if I embed the series data within the JSON object passed to kendoChart(), but if I want to bind to a local variable holding grouped data, I don't see a way to associate a chart type to each of the groups.  Is this a shortcoming of the tool, or am I missing something?

Here's what the code looks like when I embed the series data within the JSON object (the chart CORRECTLY renders the "Expenses" series as a line chart...and the others are CORRECTLY rendered as stacked columns):

function createChart() {
    $("#chart").kendoChart({
        seriesDefaults: {
            type: "column",
            stack: true
        },
        series: [{
            name: "Expenses",
            data: [50000, 50000, 50000, 50000],
            type: "line"
        }, {
            name: "Pension Annuity",
            data: [12000, 12000, 12000, 12000]
        }, {
            name: "Social Security",
            data: [24000, 24000, 24000, 24000]
        }],
        categoryAxis: {
            categories: [65, 66, 67, 68]
        }
    });
}

However if I switch this code to bind to local grouped data, I can't see a way to set the 2 different chart types to match this.  Any ideas?
Iliana Dyankova
Telerik team
 answered on 16 Aug 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
Drag and Drop
Application
Map
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
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
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
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
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?