Telerik Forums
Kendo UI for jQuery Forum
1 answer
51 views
In v2012.3.1401's kendo.window.js line 795. Should be using $ instead of global `jQuery`
Alex Gyoshev
Telerik team
 answered on 05 Feb 2013
1 answer
90 views
hi.

  kendoui doesn't include a toolbar control?

 thanks!
Sebastian
Telerik team
 answered on 05 Feb 2013
1 answer
105 views
I am looking for a way to structure textual content within a cell (e.g. <li> bullets or <p> or <div> or <br>).  

This would be one cell:
Monday Menu
Breakfast: eggs&bacon
Lunch: bean&bacon soup
Dinner:bacon-barded duck


The following is just one idea. Maybe there is a better way:

Assuming the fields:

          MondayBreakfast,MondayLunch,MondayDinner, TuesdayBreakfast, TuesdayLunch, TuesdayDinner ... etcetera

is this a legal cell template?

                               
                    <td>   <div>${MondayBreakfast}</div><div>${MondayLunch}</div><div>${MondayDinner}</div>     </td>                       
                   <td>   <div>${TuesdayBreakfast}</div><div>${TuesdayLunch}</div><div>${TuesdayDinner}</div>  </td>  

If yes, how would the columns attributes (title literal, sortable, groupable, etc) be defined in the grid configuration?
.
,schema: {
                model: {
                    fields: {
                        MondayBreakfast: { type: "string" },
                        MondayLunch: { type: "string" },
                        MondayDinner: { type: "string" },
                       TuesdayBreakfast: { type: "string" },
                       TuesdayLunch: { type: "string" },
                        TuesdayDinner: { type: "string" },
                       WednesdayBreakfast: { type: "string" },
                       WednesdayLunch: { type: "string" }
                         etc etc
                    }
                }
            }
        },
 columns: [
    { field: ??  , groupable: false, sortable: false, title: "Monday Menu", width: 150 },
    { field: ?? , groupable: false, sortable: false, title: "Tuesday Menu", width: 150 },
   
]
.
.
.
Rosen
Telerik team
 answered on 05 Feb 2013
1 answer
65 views
Is this a panel?
Is there any sample exists which related to this?

Thanks in advance
Alexander Valchev
Telerik team
 answered on 05 Feb 2013
1 answer
206 views
Hi. when I use the newest v2012.3.1315's splitter (kendo.web.min.js) in ie9's compatibility view, the ie9 become very slow when I just mouse mouse on the page. it's ok in  ie9's normal view and chrome.
when I replace it whith the v2012.3.1114's splitter(kendo.web.min.js), then all it'is ok.
So the newest v2012.3.1315 kendoui maybe has Serious performance problems.
Thanks!




Kendo 
Alex Gyoshev
Telerik team
 answered on 05 Feb 2013
1 answer
338 views
Hello - This question is regarding the usage of kendo.init() method in a mobile app. I am trying to inject some kendo ui markup using an ajax call, *after* the kendo app has been instantiated. For brevity's sake, I am showing some oversimplified code, see below:

<div id="container" data-role="content">
<ul data-role="listview" id="mylist">
<li> item 1 </li>
<li> item 2 </li>
<li> item 3  </li>
<li> item 4  </li>
</ul>
</div>    


Once the ajax call has returned and the above code has been appended to the kendo view, I am doing the following:

kendo.init($("#container");

This, however doesn't seem to work - the list looks like an HTML list and not a Kendo listview widget. On the other hand, if I individually initialize the listview widget using $("#mylist").kendoMobileListView(), it works.

Could you provide an explanation to this? 

I am using the init() method as described in the docs (http://docs.kendoui.com/getting-started/data-attribute-initialization). I am also curious to know why the init() method is not in the API reference.

Thanks,
Petyo
Telerik team
 answered on 05 Feb 2013
1 answer
1.0K+ views
Calling the jsonp response but receiving Error : jQuery18207158344800118357_1359997121430 was not called. can some one let me know how to fix this ? Appreciate your help. Below is the client code :

<script>
        function mobileListViewPullToRefresh() {
        var dataSource = new kendo.data.DataSource({
serverPaging: true,
    pageSize: 2,
type: "odata",
error: function(e) {
console.log("Error " + e);
alert(e.errorThrown);
   },
    transport: {
    read: {
                   url: "http://localhost:50675/movie/GetAll", 
                       dataType: "jsonp"
                       },
                       parameterMap: function(options) {
            alert("Inside parameterMap")
            alert(JSON.stringify(options, null, 4));
                       return {
                           q: "javascript",
                           page: options.page,
                           rpp: options.pageSize,
                       };
                      }
                 },
                 schema: {
        errors: function(response) {
       return response.errors;
   },
data: function(data) {
                    if (data.movieList.length == 0) {
    return [];
    }
return data.movieList;
       },
       total: function(data) {
        alert(data.movieList.length);
                           return data.movieList.length;
                       }
              }
});

$("#localListView").kendoMobileListView({
           dataSource: dataSource,
           pullToRefresh: true,
           appendOnRefresh: true,
           template: $("#categories-template").html(),
           pullParameters: function(item) {
            alert("Inside pullParameters")
            alert(item.length);
            alert(JSON.stringify(item, null, 4));
               return {
                   page: 1
                };
            }
       });
       };
       
       window.kendoMobileApplication = new kendo.mobile.Application(document.body);
    </script>

When checked in Chrome developer tools the response is successfully received from server. Below is the jsonp response from the server :

({"movieList":[{"ID":1,"Title":"Movie","ReleaseDate":"/Date(487189800000)/","Genre":"Comedy","Price":30},{"ID":1,"Title":"Movie","ReleaseDate":"/Date(487189800000)/","Genre":"Comedy","Price":30}],"count":4})

Petyo
Telerik team
 answered on 05 Feb 2013
2 answers
511 views

I want to sum my orders as GrandTotal, But my grid cannot do it.
Grand Total row is always 0
Please help Urgent

Big Thanks

my grid

@(Html.Kendo().Grid((IEnumerable<Apex.Models.bmfsummary>)ViewData["BMFsummary"])
    .Name("Grid")
    
    .Columns(cols =>
    {
 
        cols.Bound(ss => ss.eventdate).Title("Date").ClientFooterTemplate("Grand Total");
        cols.Bound(ss => ss.totalPrice).Title("Total").Format("{0:n2}").ClientFooterTemplate("#=sum#");
 
         
 
    })
 
 .DataSource(dataSource =>
               dataSource.Ajax()
                          
                         .Aggregates(aggregates => { aggregates.Add(ss => ss.totalPrice).Sum(); } )
                          
                         .Read(read => read.Action("Summary", "BMF"))
)
Rosen
Telerik team
 answered on 05 Feb 2013
3 answers
135 views
Hi,
I am using KendoUI version: 2012.3.1315.commercial.
I need help to understand the below code:
i use TabStrip and in my second Tab, i uses ListView to load my data. In the listView, i wanted to call the record as pagination.

I have encounter a very funny behaviour with my code. The LoadMore button when press\click, it just disappear, no event fired to fetch my next record.  

Thanks for the advise.

Following are my code:

HTML:
<div data-role="view" data-title="Views" id="overview-list" data-init="ProjectList" data-layout="overview-layout" >
 
 
  <ul data-role="listview" data-style="inset" data-type="group"  >
        <li>
            <ul id="endless-scrolling" >
       
            </ul>
           
           
        </li>
    </ul>
 
   
 <script id="endless-scrolling-template" type="text/x-kendo-template">
   <a href="/_layouts/projectDetail.aspx?id=#=ID #" data-transition="slide"">
                     <div class="Lists">
                            <img class="pullImage" src="#=Picture1 #" />#= Title #
                             <div class="metadata">
                              #= Description #
                             </div>
                        </div>
                        </a>
    
</script>
</div>

and my Javascript:
$(function () {
       window.kendoMobileApplication = new kendo.mobile.Application(document.body);
 
   });
   var Skip = 0; //Number of skipped row
   var Take = 1; //
   
   function ProjectList() {
       var dataSource = new kendo.data.DataSource({
           transport: {
               read: function (options) {
                   // make AJAX request to the remote service
                   $.ajax({
                       type: "POST",
                       url: "mobile.aspx/AllProject",
                       data: "{ Skip:" + Skip + ", Take:" + Take + " }",
                       contentType: "application/json; charset=utf-8",
                       dataType: "json",
                       headers: { "cache-control": "no-cache" },
                       success: function (data) {
                           Skip = Skip + Take;
                           options.success(data.d);
                       }
                   });
               },
               cache: false
 
           },
           schema: {
               total: function () { return 0; }
 
           }
       });
 
      var listMore  =$("#endless-scrolling").kendoMobileListView({
           dataSource: dataSource,
           template: $("#endless-scrolling-template").text(),
            loadMore: true
     
       });
 
       
    }


CH
Top achievements
Rank 1
 answered on 05 Feb 2013
2 answers
264 views
One of the ListViews displays no content when applying a template. For example, this section:

<script type="text/x-kendo-template" id="tmpl_jailcard_comment">
    begin list
    <ul data-role="listview" data-style="inset" data-type="group" >
        <li id="Item-A">AAA</li>
        <li id="Item-B">BBB</li>
        <li id="Item-C">CCC</li>
    </ul>
    end list
</script>

Produces no LI elements, only the enclosing UL element

When the UL attribute "data-role" is removed, the list displays the three items.
This might have to do with data binding, even though the above UL list does not work with dynamic data.

- bind data when calling the template from the view that uses the template: 
<span data-bind="source:this" data-template="tmpl_jailcard_comment"></span>
- bind data when navigating to the view:

kendo.bind("#scr_jailcard_comment", viewModel);
Any ideas what can cause this issue?

Attached is a stand-alone HTML file to reproduce the issue

EDIT:
On the following jsffiddle, the listview only displays when not binding any data to the view:

http://jsfiddle.net/elgato/CMCzC/7/

It does not matter binding an object or null.
mg1970
Top achievements
Rank 1
 answered on 04 Feb 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
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?