Telerik Forums
Kendo UI for jQuery Forum
3 answers
1.1K+ views
Bug or Feature?
Kamen Bundev
Telerik team
 answered on 28 Dec 2011
0 answers
125 views
I have a grid that I use to display data in. I use my own paging and not the inbuilt method.

Is it possible to enable paging on a grid, then override it to show links to pages (e.g. site.com/stuff/page/2) that I specify?
Gabriel
Top achievements
Rank 1
 asked on 28 Dec 2011
0 answers
80 views
Anyone have any sample code of how to use the Grid in a multi column/wrap look?

I would like to be able to have 2 or 3 columns with x number of rows.
Voss
Top achievements
Rank 1
 asked on 28 Dec 2011
1 answer
196 views
I'm using the Kendo grid to display Elmah errors (test project to evaluate Kendo UI) from a remote data source that gets JSON data from an MVC application. 

I've put a calendar control on the form to filter the data. However, I can't seem to get the read operation to send the parameters. Can anybody figure out what I'm doing wrong? Here is the code:

var errSrc = new kendo.data.DataSource({
    transport: {
        read: {
            url: '@Url.Content("~/Errors")',
            dataType: 'json',
            type: 'post',
            data: function () {
                var d = { day: model.date() };
                return d;
            }
        }
    },
    schema: {
        parse: function (data) {
            if (data.length > 1000) {
                data = data.slice(0, 1000);
                model.tooMany(true);
            }
            var errs = $.map(data, function (item) { return new Error(item) });
            model.errors(errs);
            model.count(errs.length);
            return model.errors();
        }
    }
});

I have confirmed that the data function is getting called and the correct date is being returned. However, no data is being sent in the HTTP post (confirmed using Fiddler2).

I've tried a couple different approaches (such as calling errSrc.read({ day: model.date() })) but haven't gotten it to work yet.
Brian
Top achievements
Rank 1
 answered on 28 Dec 2011
2 answers
69 views
Here is the output of the jsonp from the webservice I am calling (I have removed a bunch of extraneous data but maintained the overall structure).  I'm only interested the "SubRows" grouping.  I'd like to break out visits (y-axis) by start-date (x-axis) in a line chart.  How would I represent the schema for this datasource?

"data" : [
{
 "YttQZfDcyK6" :
 { 
  "measures" :
  { 
     "Visits" : 22214391
  } ,
  "SubRows" : [ 
  {
   "start_date" : "2011-01-01",
   "measures" :
   {
    "Visits" : 605521
   } ,
   "SubRows" : null
  },  
  { 
   "start_date" : "2011-01-02" ,
   "measures" :
   {
    "Visits" : 672939 
   } ,
   "SubRows" : null
  } ]
 }
} ]

Thanks ahead of time.
Bradley
Top achievements
Rank 1
 answered on 27 Dec 2011
0 answers
122 views
Any samples/Demos for Cascading Drop Down, that are bound to Remote Data Source and filtering occurs on the Server ?

Naunihal
Top achievements
Rank 1
 asked on 27 Dec 2011
4 answers
211 views
I'm trying to create a grid with a column template that has a KendoDropDownList of Checkboxes. The checkboxes are checked on load based on the data source of the grid.

I have the following, but it doesn't work at all. Can someone point me in the right direction please?

Thank you.

<
table id="grid" height="300px">
    <thead>
        <tr>
            <th data-field="Content1">Content</th>
        </tr>
    </thead>
</table>
   
<script id="consumersTemplate" type="text/x-kendo-tmpl">
    <select id="dropdownlist" />
</script>

<script id="consumerTemplate" type="text/x-kendo-tmpl">
    <input type="checkbox" name="#= Name #" value="#= Name #" 
    # if (#= IsSelected#) { # 
        checked
    }
    /
</script> 

$("#grid").kendoGrid({
    dataSource
        ConsumersName"John"IsSelectedfalse }Name"Jane"IsSelectedtrue }
        ConsumersName"John"IsSelectedtrue }Name"Jane"IsSelectedfalse
    ],
   height200,
   scrollable{
     virtualtrue
   },
   columns[
       
           templatekendo.template($("#consumersTemplate")
                                    .kendoDropDownList(
                                        template$("#consumerTemplate").html(),
                                        dataSourcekendo.template("#=Consumers#")
           ).html())
       }
   ],
   selectabletrue
}); 
Ingolf
Top achievements
Rank 1
 answered on 27 Dec 2011
0 answers
142 views
Do you have any plans to provide for portlet like drag-drop zone features similar to here : http://dev.sencha.com/deploy/ext-4.0.7-gpl/examples/portal/portal.html

I can see this being more of an "integration" piece involving multiple kendoui controls but this mechanism would still have to be supported by the drag & drop framework.

Thanks,
Joel
Joel
Top achievements
Rank 1
 asked on 27 Dec 2011
1 answer
182 views
I have an autocomplete connecting to a WCF web serivce that returns data a JSON string.

Here is how I create the autocomplete:
var search = $("#searchBox").kendoAutoComplete({
            minLength: 3,
            separator: ", ",
            dataSource: {
                type: "json",
                transport: {
                    read: "../getTitles",
                    parameterMap: function() {
                        return { sku: $("#searchBox").data("kendoAutoComplete").value() };
                    }
                }
            }
        });

The data returned is a JSON string as follows:
["Test", "Test 2", "Test 3"]

Nothing actually shows inside the autocomplete box... Am I missing something...
Atanas Korchev
Telerik team
 answered on 27 Dec 2011
2 answers
88 views
I've noticed that while adding an item to the data source then calling sync() creates the item and read() successfully returns the expected rows in Chrome and Firefox, this doesn't appear to be the case in Internet Explorer. I can see the POST is successful and returns the new item via JSON. The item appears in the grid briefly, until read() is called. The GET caused by the read() method doesn't include the newly added item in the response. When I refresh the page, the new item is there.

I originally had the same problem as noted in this thread, but I've since set cache to false in the read function but still have the issue of new items not appearing in the results only when using IE.
Joel
Top achievements
Rank 1
 answered on 27 Dec 2011
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
Date/Time Pickers
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)
SPA
Filter
Drawer (Mobile)
Drawing API
Globalization
Gauges
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
OrgChart
TextBox
Effects
Accessibility
ScrollView
PivotGridV2
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Collapsible
Localization
MultiViewCalendar
Touch
Breadcrumb
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
Popover
DockManager
FloatingActionButton
TaskBoard
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
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?