Telerik Forums
Kendo UI for jQuery Forum
1 answer
60 views
Code: http://jsfiddle.net/latenightcoder/VfgLu/

Attached screenshot of it working in Chrome. And not on IE9. Problem exists on all IE doc modes.
Joel
Top achievements
Rank 1
 answered on 19 Feb 2012
9 answers
147 views
I have a callback function that returns an XElement object with the following content:
<Rows>
  <Category Name="Management" ID="Management">Management</Category>
  <Col1 Name="Cost" ID="Cost">189812516</Col1>
  <Col2 Name="Ratio" ID="Ratio">29.73</Col2>
  <Col3 Name="Headcount" ID="Headcount">1296</Col3>
</Rows>
<Rows>
  <Category Name="Professional Staff" ID="Professional Staff" >Professional Staff</Category>
  <Col1 Name="Cost" ID="Cost">53599982</Col1>
  <Col2 Name="Ratio" ID="Ratio">23.39</Col2>
  <Col3 Name="Headcount" ID="Headcount">808</Col3>
</Rows>
 
etc....

How can i use this in KendoGrid?   I.e. how do I set this up in the data source so as to be able to bind to it.   I am not loading this from a url or a file, it is coming in from a variable.

Do I load this as an XML data source or convert it with a template?  Help!







Steven
Top achievements
Rank 1
 answered on 19 Feb 2012
0 answers
67 views
http://jsfiddle.net/latenightcoder/6ZNqN/embedded/result/

Try zooming in / out and you'll notice the header lines don't match up with the grid lines.

Happens in Chrome/FireFox. IE9 isn't affected (WAT!)
Joel
Top achievements
Rank 1
 asked on 19 Feb 2012
4 answers
732 views
In an ASP.NET MVC application, how could I retrieve the sort field and direction?
I see that the grid sends these parameters: sort[0][dir] and sort[0][field] but how could I retrieve them in c#?

public JsonResult GetLogs(int page, int pageSize, int skip, int take, ???)

or should I use the parameterMap setting?
parameterMap: function(options) { 
          return
             pageIndex: options.page, 
             size: options.pageSize, 
             orderBy: convertSort(options.sort) 
          
       

but I don't find the implementation of convertSort, do you have an example?
Vin
Top achievements
Rank 1
 answered on 18 Feb 2012
0 answers
138 views
I have looked through examples and even looked at code from grids used on this site and cannot seem to get any clear information on how to style the text that is shown in a grid, the basic grid style is there but I cannot seem to get anything other than the default sans-serif text. Even on the grid walkthrough it covers quite a lot but not how to style the text... which in the walkthrough is also shown as sans-serif. I think it would be extreamly useful for some clear information on this on the site, not only for myself but for others that are not css 'save'.

Currently I have the following set before the '</head>' of my example page:

<link href="kendoui/source/styles/kendo.common.css" rel="stylesheet"/>
<link href="kendoui/source/styles/kendo.default.css" rel="stylesheet"/>
<script src="kendoui/source/js/jquery.min.js"></script>
<script src="kendoui/source/js/kendo.core.js"></script>
<script src="kendoui/source/js/kendo.fx.js"></script>
<script src="kendoui/source/js/kendo.model.js"></script>
<script src="kendoui/source/js/kendo.data.odata.js"></script>
<script src="kendoui/source/js/kendo.data.js"></script>
<script src="kendoui/source/js/kendo.pager.js"></script>
<script src="kendoui/source/js/kendo.sortable.js"></script>
<script src="kendoui/source/js/kendo.popup.js"></script>
<script src="kendoui/source/js/kendo.list.js"></script>
<script src="kendoui/source/js/kendo.dropdownlist.js"></script>
<script src="kendoui/source/js/kendo.calendar.js"></script>
<script src="kendoui/source/js/kendo.datepicker.js"></script>
<script src="kendoui/source/js/kendo.numerictextbox.js"></script>
<script src="kendoui/source/js/kendo.filtermenu.js"></script>
<script src="kendoui/source/js/kendo.grid.js"></script>

All the above files are there as per the path shown from the example document. The divs are set as follows (although I have used various options copied from other examples):

<div id="example" class="k-content">
            <div id="clientsDb">
                <div id="grid"></div>
</div>
    <script>

        $(document).ready(function() {
                
            var dataSource = new kendo.data.DataSource({
                transport: {
................................. etc. etc.

Any clear information on styling a grid would be helpful, thanks in advance.
Mike
Top achievements
Rank 1
 asked on 18 Feb 2012
9 answers
730 views
Does Kendo support remote data sources with the option to affect which data to retrieve? What I have in mind is e.g. using a JSON service that supports paging or some other filtering.

I don't consider manipulating the dataSource.transport.url using javascript and re-reading the remote data source a viable solution.
Boone
Top achievements
Rank 2
 answered on 18 Feb 2012
4 answers
276 views
I am working with the datasource control and I am trying to query a webservice and need to pass a start date from a Kendo datepicker.  When it is sent I get an error - Invalid JSON Primitive.  Any help would be appreciated, thanks. Here is my code:
var dataSource = new kendo.data.DataSource({  
 transport: {
  read: {
   url: '/app/handlers/customers.asmx/GetTopAssignedCustomers',
   dataType: "json",
   data: startDate: function(){return kendo.toString(new Date(start.value()), "MM/dd/yyyy");},
   contentType: 'application/json; charset=utf-8',
   type:"POST"     
   }
 },
 schema: {
  data:"d"
 }
});

William
Top achievements
Rank 1
 answered on 18 Feb 2012
6 answers
1.4K+ views
I keep hitting a timing issue whereby reading the value() of the DropDownList is not correct unless the dataSource binding has been completed. How do I configure the DropDownList so that it is bound to its dataSource synchronously?

I know I can attach code to the change event, but this isn't feasible because I need to ensure all DropDownLists are populated on the page rather than just one. I tried declaring the dataSource separately and calling read() explicitly, but the dataSource is read a second time when it is bound to the DropDownList. I tried binding to the view() method as well, but this had no data.

Can you help?

Gary

Gary
Top achievements
Rank 1
 answered on 17 Feb 2012
1 answer
204 views
With the DropDownList I have found that if the dataTextfield and the dataValueField are the same field name, then the optionLabel value is not displayed.

I created a jsfiddle to demonstrate: http://jsfiddle.net/gxclarke/v9wjM/4/

Regards,
Gary
Georgi Krustev
Telerik team
 answered on 17 Feb 2012
3 answers
197 views
Hi,
I try to bind my listview to a remote json-Datasource.
But nothing happens. No error message, but also no data render.

Maybe you can help me, finding out what's wrong with my code:

The list-view HTML Code:
<div data-role="view" id="home" data-transition="slide" data-layout="hbigLayout" data-init="mobileListViewTemplatesInit">
    <h1>Gasthaus zur Wilden Ente</h1>
     <ul id="custom-listview"></ul>   
</div>

The Template for my elements:
<script type="text/x-kendo-template" id="customListViewTemplate">
    <h3 class="item-title">${Name}</h3>
    <p class="item-info">${Beschreibung}</p>
    <a data-role="button" href="${Url}" class="details-link">zum Termin</a>
</script>

The Javascript Code to bind the remote json Data:
var dataSourceTermine = new kendo.data.DataSource({
       transport: {
           read: {
               // the remote service url
               group: "Datum",
               dataType: "json"
           }
       }
   });
 
   function mobileListViewTemplatesInit() {
       $("#custom-listview").kendoMobileListView({
           dataSource: dataSourceTermine,
           template: $("#customListViewTemplate").html(),
           headerTemplate: "<h2>Termine am ${value}</h2>"
       });
   }

The result of the json code also seems ok. You can the it at
http://www.wilde-ente.de/mobile/new/mobileHandler/Termine.ashx
Georgi Krustev
Telerik team
 answered on 17 Feb 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
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?