Telerik Forums
Kendo UI for jQuery Forum
0 answers
382 views
Hi,

I am accessing an OData service to bind a hierarchical data source to a treeview.  Its a homogenous source - i.e service returns same type each time - type being a "Product" object. Basically its a treeview of products - one product being the parent of many others and so on.

The trouble is that when the tree view renders, its showing me the correct number of items in the tree - say, for example, if there are 2 products , it shows 2 nodes correctly but the name is shown as "undefined".

This is despite specifying the correct field name in the "dataTextField" for this object while creating the treeview.

I examined my datasource in chrome debugger and saw that it returns two objects as below 

{b.extends.f, b.extends.f} 

^^ these are the two records (2 products) from my OData service call.
within each object i.e within each of this {b.extends f} , I have a "Product" object and I want to bind the "Name" property of this Product object to the TreeView Nodes. Accordingly, I have mentioned the "dataTextField" as "Name" but I am unable to see this displayed correctly in the treeview. 

What I have observed is that , I am unable to bind any property of the "Product" object in my datasource. But I can bind any other property which is one level above, or NOT within Product node level- 

ex : if the B.extends F contains -

--Product
--uid:'12121212'
-XXX
--stc:'4543543'

etc

I can bind anything inside XXX (say XXX.Name) or Product . But I can mention "dataTextField: 'uid'  " and it will bind 12121212 correctly in tree view.

So looks like I am unable to navigate one level deeper and bind the product name.

I have already tried "children.Name", "Product.Name" etc in the dataTextField property to no avail.  I have attached some screenshots. Please help.

Please help.







Sandeep
Top achievements
Rank 1
 asked on 26 Jul 2012
0 answers
109 views
Hello.

I have such rowTemplate for output my data into the grid:
<script id="row_template" type="text/x-kendo-tmpl">
<tr>
        <td>
            #= UserName #
        </td>
        <td>
            #= FirstName #
        </td>
        <td>
            #= LastName #
        </td>
</tr>
</script>

And I prepared another template if records is not found:
<script id="empty_row" type="text/x-kendo-tmpl">
    <tr>
        <td colspan="7">No records found</td>
    </tr>
</script>

And I need to do some changes between this templates. I mean assign this "empty_row" to the grid when "no records found":
$("table.kendo_grid").kendoGrid({
dataSource: {
  transport: {
  ...
  },
  schema: {
  ...
  },
  change: function (data) {
    if (data.sender.total() == 0) {
       // What I need to write here?
    }
  },
...

Need help.
Thanks.
Pavlik
Top achievements
Rank 1
 asked on 26 Jul 2012
0 answers
31 views
It seems that with the following demo the data never gets submitted to the server:
http://demos.kendoui.com/web/grid/editing-custom.html
I would like to use something like this but can't seem to get it to publish the data to the server. (I'd prefer automatically after editing is done (edit stops))

Thanks
GungFooMon
Top achievements
Rank 1
 asked on 26 Jul 2012
1 answer
161 views
When I place my application on my Android via phonegap, the date picker is just a text field. Is this how it is supposed to work? Having users enter dates manually is not a very good way to get an accurate date. My application depends on dates fairly heavily. When I view my application using a browser, the calendar control is present, but once I package it, it is just a text box.
Iliana Dyankova
Telerik team
 answered on 26 Jul 2012
2 answers
293 views
Hi,
I need to create a editable kendo grid - Batch eiditing , which adds/removes a row . Here i acheived it with kendo grid- batch editing as mentioned in the demo. My requirment is something like i need to initialize the grid with no data . But i was not able to do it & hence giving some sample data to initialise it. But i need the grid with an empty data but only with the header with options to add record. Also if i delete all the grid rows & try to add the first row then it is giving me error "Microsoft JScript runtime error: Unable to get value of the property 'id': object is null or undefined" , attaching the screenshot of the same.
Kindly help me out in resolving the creation of grid with no data .

Here goes my code :
var data = [
                {
                    Company: "Spark Tech",
                    Country: "USA"
                }

            ];

                $j("#ComapnyDetailsGrid").kendoGrid({
                    dataSource: {
                        data: data,
                        batch: true,
                        pageSize: 30,
                        schema: {
                            model: {
                                fields: {
                                    Company: { validation: { required: true} },
                                    Country: { type: "string" }

                                }
                            }
                        }
                    },
                    editable: true,
                    toolbar: ["create", "save", "cancel"],
                    columns: [
                  { field: "Company", title: "Company*" },
                  { field: "Country", title: "Country" },
                  {
                      command: "destroy"
                  }
                ]
                });



Thanks in advance.
Kalyan
Top achievements
Rank 1
 answered on 26 Jul 2012
1 answer
87 views
Hi,

I think we need a better Appearance and Styling documentation. For instance I would want to setup style attributed on my controls ahead of time to enable better rendering experience. Since there is no  documentation the only way to do it is by copying the style form html source and then applying it to elements. Specifically applicable to container controls such as tab. We should be able to style them ahead of time before callling kendo method.
Am I missing some thing?

Thanks,
Max
Dimo
Telerik team
 answered on 26 Jul 2012
3 answers
84 views

Has anyone tried to actually pack the Kendo Mobile blackberry application with Webworks and deploy on the phone? Test page shows correctly on the Ripple simulator (served from IIS), but loses formatting completely when deployed to the phone.



 
Kamen Bundev
Telerik team
 answered on 26 Jul 2012
0 answers
90 views
I'm adding a new tab dynamically to my kendoTabStrip. This is working fine, but the new tab does not get wrapped in an <a> tag like the tabs which are created from the <li>'s, rather it is wrapped in a <span>. Here is my code:

<div id="tab-strip">
  <ul>
    <li class="k-state-active" id="tab1">Tab 1</li>
    <li id="tab2">Tab 2</li>
  </ul>   
  <div>
    Content 1
  </div>
  <div>
    Content 2
  </div>
</div>
 
 
 
$('#tab-strip').data('kendoTabStrip').append([{
    text: "New Tab",
    content: "my content"
}]);

Is this the expected behavior? Is there a way to specify the wrapper for the tab text?
Charles
Top achievements
Rank 1
 asked on 26 Jul 2012
9 answers
293 views
Ok, so I have the autocomplet bound to an oData datasource.  When I select one of the items in the list, I want to callback to the service with the key for that item to populate a template on my page

How do I go about doing that? :)
James
Top achievements
Rank 1
 answered on 25 Jul 2012
3 answers
558 views
I read through the documentation, but it doesn't appear that textarea is a supported input type for mobile. Is this going to be supported in the future or is there a workaround to ensure that it will work?

I'm working on a proof of concept that I intend to integrate with PhoneGap to produce an Android app with, and I'm trying to determine what the limitations are.

Thanks.
Iliana Dyankova
Telerik team
 answered on 25 Jul 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
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
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
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?