Telerik Forums
Kendo UI for jQuery Forum
0 answers
144 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
186 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
179 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
235 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
3 answers
238 views
I see that it is very easy, and there are several examples, of how to get remote data via AJAX for Charts assuming you don't need to pass any parameters to get the remote data.  How do I pass additional params to the Controller/Action?

FYI, I am using the MVC Extensions.

Thanks in advance,
Petur Subev
Telerik team
 answered on 09 Aug 2013
1 answer
530 views
I was very suprised to see so few methods in the documentation for the Kendo Upload, specially becouse I know it's been in the toolset a longer time. I basicly did my own UI for the upload. Most of the current buttons are hidden, I keep only the dropzone. The first problem I had is I couldnt just link methods to programaticly start an upload or open file choser dialog. I managed to get that functionality bi using their respective buttons click handlers.

One method I'm strugling with is clearing the files list programaticly. So I have implemented an item edit window with a picture upload. On select I managed to extract a file preview for the image before its sent to the server. If you click the save button for the window the form gets saved and the new photo uplodaed. If you click cancel however and open the same edit window for a different item. The old picture stayed in the upload. I want to clear it. Is there a way to do that? I have the file list hidden.
Petur Subev
Telerik team
 answered on 09 Aug 2013
3 answers
1.8K+ views
Hi,

I am trying to show remote data in grid, my dataSource config is like this:

var items= new kendo.data.DataSource({                            
    transport: {
        read: {
            url: "http://localhost:59515/HTML/Service.svc/Temp",
            dataType: "jsonp",
            data: {                                        
            }
        }
    },
    error: function(e) {
        console.log(e);
    },
    schema:
    {
        data:"d",
        model:
        {
            fields:
            {
                Text: {
                    editable:true, validation: {  required:true  }
                },
                Qty: {
                    editable: true,  type:"number",  validation: {   required:true,   min:1   }
                },
                Val: {
                    editable:false
                }
            }
        }
    }
    }
);

Response JSON:
{
"d":
[
    {"__type":"MyClass:#","Qty":"4","Text":"195\/65R15 Sportiva","Val":"45.54"},
    {"__type":"MyClass:#","Qty":"4","Text":"195\/65R15 Sportiva","Val":"45.54"},
    {"__type":"MyClass:#","Qty":"4","Text":"195\/65R15 Sportiva","Val":"45.54"},
    {"__type":"MyClass:#","Qty":"4","Text":"195\/65R15 Sportiva","Val":"45.54"},
    {"__type":"MyClass:#","Qty":"4","Text":"195\/65R15 Sportiva","Val":"45.54"},
    {"__type":"MyClass:#","Qty":"4","Text":"195\/65R15 Sportiva","Val":"45.54"},
    {"__type":"MyClass:#","Qty":"4","Text":"195\/65R15 Sportiva","Val":"45.54"},
    {"__type":"MyClass:#","Qty":"4","Text":"195\/65R15 Sportiva","Val":"45.54"}
]
}

No data is displayed in the grid, though the error event handler of dataSource is called and the console.log shows following error:
  1. line: 2
  2. message: "Unexpected token ':'"
  3. sourceId: 2055063872
  4. sourceURL: "http://localhost:59515/HTML/kendo/js/jquery.min.js"
  5. status: "parsererror"
Inbxx
Top achievements
Rank 1
 answered on 09 Aug 2013
2 answers
135 views
Hi,

I have noticed that the images I have used in my mobile application being downloaded in my mobile album sometimes. How to prevent the downloading of images?

Thanks,
Amrutha.
Amrutha
Top achievements
Rank 1
 answered on 09 Aug 2013
3 answers
1.9K+ views
Hi, i'm currently experimenting with kendoUI, and it looks pretty good and easy to use.
I have a question regarding binding data to a multiple series chart. My objective would be binding local data from a datasource, and then move on to binding remote JSON data to the chart.
Starting from the scatter line multiple series example at http://demos.kendoui.com/dataviz/scatter-charts/scatter-line.html, i tried putting the provided data into a data source:
var ds = new kendo.data.DataSource ({
        data: [
            {"name": "0.8C", "values": [[10, 10], [15, 20], [20, 25], [32, 40], [43, 50], [55, 60], [60, 70], [70, 80], [90, 100]]},
            {"name": "1.6C", "values": [[10, 40], [17, 50], [18, 70], [35, 90], [47, 95], [60, 100]]},
            {"name": "3.1C", "values": [[10, 70], [13, 90], [25, 100]]}
        ],
    });
However, i can't understand how to bind this data to the chart. Of course, i will need to specify the chart's datasource as the defined variable, but in single-series charts i must specify the columns from the data source. How can i configure the chart to display correctly the legend (name field) and each value?
Ricardo
Top achievements
Rank 1
 answered on 09 Aug 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
Application
Drag and Drop
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?