Telerik Forums
Kendo UI for jQuery Forum
2 answers
125 views
It's seems that after the latest update (v2013.1.716), the loading icon from ListView is showing all the time after doing a search.  Was this the intended behavior? 
The example here http://demos.kendoui.com/mobile/listview/filtering.html#/ behaves the same way. It's kinda misleading...makes you think there's still something out there.
This does not happen in v2013.1.703, or earlier as I recall.
KSBA Techie
Top achievements
Rank 1
 answered on 11 Aug 2013
2 answers
45 views
http://jsbin.com/owilaf/17#/
http://jsbin.com/owilaf/17/edit

Using a simple template like <a>${ProductName}</a> causes the ListView to be buggier. 
Using a more complex one like 
<div class="product">
<img src="../../content/web/foods/#=ProductID#.jpg" alt="#=ProductName# image" class="pullImage"/>
<h3>#:ProductName#</h3>
<p>#:kendo.toString(UnitPrice, "c")#</p>
</div>

paradoxically will make the ListView to behave a bit better.
ScrollView is messed up, ListView the same... I think I'll go back to .703 or .514 even though I need the ListView virtualization. (the GetByUid undefined bug which is fixed only in .716)

KSBA Techie
Top achievements
Rank 1
 answered on 11 Aug 2013
4 answers
74 views
http://jsbin.com/owilaf/17#/
http://jsbin.com/owilaf/17/edit

Using a simple template like
<a>${ProductName}</a>
causes the ListView to be buggier.  Using a more complex one like 
<div class="product"><img src="../../content/web/foods/#=ProductID#.jpg" alt="#=ProductName# image" class="pullImage"/><h3>#:ProductName#</h3><p>#:kendo.toString(UnitPrice, "c")#</p></div>
paradoxically will make the ListView to behave a bit better.
ScrollView is messed up, ListView the same.  I think I'll downgrade to 703 or 514 even t hough I need the ListView virtualization.  (the GetByUid undefined bug which is fixed only in 716)
KSBA Techie
Top achievements
Rank 1
 answered on 11 Aug 2013
8 answers
200 views
I have a listview with a data-source that's setup to get 10 items at a time and perform endless scroll.  This list is basically a chat wall, so when it's first loaded I'll get the most recent 10 posts and if user scrolls down I'll get older posts, etc.  While the user is actively in the list, if a new post arrives I'm simply adding the post to the data source which is then appending the new post to the listview, etc.  However, once I add an item to the data source the endless scroll no longer works when the user scrolls down.

After adding the item to the data source, do I need to set anything else on the data source to keep endless scroll alive.  I'm originally setting the schema.total to zero since the user will basically never reach the end of the data items anyway.
KSBA Techie
Top achievements
Rank 1
 answered on 11 Aug 2013
6 answers
75 views
Hi,
after I have updated my mobile app to kendo Q2 I've had some weird behavior with the "kendoMobileListView" .
Once the list has been loaded the loading image just keeps there spinning, and the data has been shown already. I removed this property and it worked fine and once I've add it again the list made the same issue.
KSBA Techie
Top achievements
Rank 1
 answered on 11 Aug 2013
0 answers
114 views
I have a feeling this has already been asked and answered before, but I could not find any reference information.

I am trying to use a Kendo Web Grid in my Kendo Mobile application.  Everything seems to work OK (no errors that I can find), but the grid does not display properly...it is almost as if the grid is in-place but nothing is displayed.

I am trying to combine the stylesheets as listed below:

        <link href="@Url.Content("~/Content/kendo/2013.2.716/kendo.default.min.css")" rel="stylesheet" type="text/css" />
        <link href="@Url.Content("~/Content/kendo/2013.2.716/kendo.common.min.css")" rel="stylesheet" type="text/css" />
        <link href="@Url.Content("~/Content/kendo/2013.2.716/kendo.mobile.all.min.css")" rel="stylesheet" type="text/css" />

and the supporting JS files as listed below:

        <script src="@Url.Content("~/Scripts/kendo/2013.2.716/jquery.min.js")"></script>
        <script src="@Url.Content("~/Scripts/kendo/2013.2.716/kendo.all.min.js")"></script>
        <script src="@Url.Content("~/Scripts/kendo/2013.2.716/kendo.aspnetmvc.min.js")"></script>

Is there a preferred order?  I have tried alternate orders with no luck.  Is there anything else I can try?

*** EDIT ***

My mistake had nothing to do with CSS files...I had not initialized the mobile application on the page I was trying to use the grid on.  My apologies.
Steven
Top achievements
Rank 1
 asked on 11 Aug 2013
1 answer
154 views
I am attempting to setup a Kendo Grid in AJAX mode, but have some sort of history feature with the browser.  This is so that if the user has sorted/paged the grid then clicks another link then hit's the browser back button to come back to the grid, that they will be given the same set of data they were looking at when they left.

I don't really care about storing every step of the paging/sorting in the browser history (although this is an option), I'm more just interested in doing so when the user clicks on a link that that takes them to a whole new page.  Imagine a search screen with the grid, where a user clicks on a search result, discovers it's not what they were looking for, then presses the back button to get back to the results he was looking at.

I know I could use server side mode of the grid for this, but AJAX appears to be alot faster and I would like to optimize for this performance.

Through my investigation so far, it seems I have some options on how this could be done:

1.  Use the new HTML5 history api
To use this I would need to build up the query string for the paging/sorting and then store that into the browser history.  I could probably do this on the databound event of the grid.  Question on this one would be, is there any way to ask the grid for the query string?  It obviously knows how to build it because it does so in server mode.  It would be nice not having to recreate this code.

2.  Using ASP.NET MVC Session
It seems like I could store some of the paging/sorting information into the session and then retrieve it.  But I would only want it to take effect when the user has pressed the back button.  If they press the Results link directly, it should just go to the default first page, no sorting grid.  Only when they press back should they get the paging/sorting they were using before they left the page.  Does anyone have any idea on how to accomplish this?

3.  Using cookies
Seems like the same basic idea as #2 with the same questions

Any help or ideas would be greatly appreciated! 
Josh
Top achievements
Rank 1
 answered on 09 Aug 2013
1 answer
1.7K+ views
I would like to merge columns for a given row using the "colspan" attribute.  However, this seems to cause a "Cannot read property 'nodeName' of undefined" error. Is there a way to fix this? 

<table>
<thead>

<tr>
<th filter='false'>FIRST NAME</th>
<th filter='false'>LAST NAME</th>
<th filter='false'>STATE</th>
<th filter='false'>GENDER</th>
</tr>
</thead>
<tbody>

<tr>
<td>JOHN</td>
<td>SMITH</td>
<td>VIRGINIA</td>
<td>MALE</td>
</tr>

<tr>
<td colspan="4">
Address Info goes here
</td>
</tr>

</tbody>
</table>
Dimo
Telerik team
 answered on 09 Aug 2013
1 answer
141 views
 i have a form with a button that upon clicked should fill a grid with data via ajax to a php script. the php script is ok but no data is shown on the grid..here 's my code below...any help please!!!

//function for button clicked
      $(function(){
          $("#fetchmani").click(function(){
            var routes    = document.getElementById('routes').value;
                  $.ajax({
                        type: 'POST',
                        url: 'data/fetchmani.php',
                        data: "routes="+ routes,
                        success: function(response){
                           var grid = $("#grid").data("kendoGrid");
                           grid.dataSource.read();
                        }
                      });
        });
      });
              </script>
            <button id="fetchmani" class="k-button" style="margin-left:15px;width:100px">Fetch Manifest</button>


// grid code
var routeid = 0;
                $(document).ready(function () {
                      dataSource = new kendo.data.DataSource({
                            transport: {
                                read:  {
                                    url: "data/fetchmani.php",
                                    dataType: "json",
                                    type:"POST"
                                },
                                parameterMap: function(options, operation) {
                                  return {
                                      id: routeid
                                  }
                              }
                            },
                            batch: true,
                            pageSize: 20,
                            serverPaging: true,
                            serverSorting: true,
                            serverFiltering: true,
                            schema: {
                            data:"data",
                            total:"total"
                            }
                        });
Atanas Korchev
Telerik team
 answered on 09 Aug 2013
5 answers
205 views
Hi all,

Here is what I am trying to do (unsuccessfully, I might add) and would appreciate any direction you can give me

From my Javascript kendo ui site, I want to upload a file to a cross domain WCF service that is hosted in Azure. 

In addition to uploading the files, I need to send additional parameters to the upload fucntion on the server

Is this possible to do?

Here is what my operationContract looks like:
[OperationContract]
[WebInvoke( Method = "POST",
UriTemplate = "/uploadmodeldata/?id={Id}&customerdatatype={customerdataType}&data={data}")]
void UploadModelData(string Id, string customerdataType, byte[] data);


How can I use the KendoUI upload widget to send files to this web service?

Do I trap the onUpload Event and call this? any ideas?


thanks,
Jas

T. Tsonev
Telerik team
 answered on 09 Aug 2013
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?