Telerik Forums
Kendo UI for jQuery Forum
1 answer
86 views
Can I assign XML data to kendo DataSource without configuring the field of the object, like one we do with JSON data?
Alexander Valchev
Telerik team
 answered on 22 Aug 2012
1 answer
101 views
I have following code according to spec:

<a  href="#chartView?period=7" >This Year</a>
        <a  href="#chartView?period=8" >Last Year</a>
and
<div data-role="view" id="chartView" data-title="@ViewBag.Title" data-layout="databinding" data-show="initChart">

However wen I click on button I have error in console and nothing happens:

Error: Syntax error, unrecognized expression: #chartView?period=8
throw new Error( "Syntax error, unrecognized expression: " + msg );
jquery-1.8.0.js (wiersz 4512)

I'm not able to make my aplication working with spec.

It looks there were breaking changes in jquery 1.8.0, everything is working in 1.7.1, so please could you look?
Petyo
Telerik team
 answered on 22 Aug 2012
6 answers
5.7K+ views
I've just downloaded a KendoUI from your web-site, and I can see everything but binaries folder where, if I understand correctly, should be a Kendo.Mvc.dll. I can see /examples, /styles, /js, /source and /LicenseAgreement, but no /binaries.
So which download actually has a dll which is expected to be referenced from a project instead of Telerik.Mvc.dll?
pawan
Top achievements
Rank 1
 answered on 22 Aug 2012
3 answers
1.8K+ views
Hi:
I was getting the following:
Compiler Error Message: CS1061: 'System.Web.Mvc.HtmlHelper<dynamic>' does not contain a definition for 'Kendo' and no extension method 'Kendo' accepting a first argument of type 'System.Web.Mvc.HtmlHelper<dynamic>' could be found (are you missing a using directive or an assembly reference?)

Source Error:
Line 3: }
Line 4: <h2>TabStrip2</h2>
Line 5: @(Html.Kendo().TabStrip()
Line 6: .Name("tabstrip")
Line 7: .Items(tabstrip =>

Solution: Added
<configSections>
  <sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
    <section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
    <section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" />
  </sectionGroup>
</configSections>
and:
<system.web.webPages.razor>
  <pages pageBaseType="System.Web.Mvc.WebViewPage">
    <namespaces>
      <add namespace="System.Web.Mvc" />
        <add namespace="System.Web.Mvc.Ajax" />
        <add namespace="System.Web.Mvc.Html" />
        <add namespace="System.Web.Routing" />
        <add namespace="Kendo.Mvc.UI" />
    </namespaces>
  </pages>
</system.web.webPages.razor>
To my web config file.
Phil
Kushal
Top achievements
Rank 1
 answered on 22 Aug 2012
5 answers
336 views
Hi 

Im trying to put the upload component inside window.
After the select file window is opened and i select a file, i see it twice in the list. if i uncheck the multiple option then i see it uploaded twice to the server but in the list i see only one file.

i have the latest jquery and kendoui libraries.

  @(Html.Kendo().Window()
           .Name("window")
           .Title("Upload images")
           .Content(@<text>
                         @(Html.Kendo().Upload().Multiple(false)
                                     .Name("files")
                                     .Async(a => a
                                                     .Save("Save", "Properties")
                                                             .Remove("Remove", "Properties")
                                                     .AutoUpload(true)
                                     )
                               )
                     </text>)
           .Draggable()
           .Modal(false).Visible(true))
Drew
Top achievements
Rank 1
 answered on 22 Aug 2012
1 answer
221 views

When i click on grid i get this error

Syntax error, unrecognized expression: tr:not(.k-grouping-row) > td:not(.k-hierarchy-cell,.k-detail-cell,.k-group-cell,.k-edit-cell,:has(a.k-grid-delete)) 

 

jquery-1.8.0.js, line 4512 character 2

The grid loads with data, paging and sorting works dispite the error, but I can not batch edit, double clicking on cell does not bring up editing.

Any ideas?

Thanks

my grid

$(document).ready(function () {
            dataSource = new kendo.data.DataSource({
                transport: {
                    read:  {
                        url: "/franchisees/stock/EmailKendo",
                        dataType: "json"
                    },
                    update: {
                        url: "/franchisees/stock/Update",
                        dataType: "jsonp"
                    },
                    destroy: {
                        url: "/franchisees/stock/Destroy",
                        dataType: "jsonp"
                    },
                    create: {
                        url: "/franchisees/stock/Create",
                        dataType: "jsonp"
                    },
                    parameterMap: function(options, operation) {
                        if (operation !== "read" && options.models) {
                            return {models: kendo.stringify(options.models)};
                        }
                    }
                },
                batch: true,
                pageSize: 25,
                schema: {
                    model: {
                        id: "ProductID",
                        fields: {
                            ProductId: { editable: false, nullable: false },
                            Name: { validation: { required: true } },
                            Level: { type: "number", validation: { required: true } },
                            MinQuantity: { type: "number" },
                            OrderByThe: { type: "number" },
                            Order: { type: "number", editable: true }
                }
                    }
                }
            });
 
        $("#grid").kendoGrid({
            dataSource: dataSource,
            navigatable: true,
            sortable: true,
            pageable: true,
            toolbar: ["create", "save", "cancel"],
            columns: [
                "Name",
                { field: "Level",  width: 150 },
                { field: "MinQuantity", width: 100 },
                { field: "OrderByThe", width: 100 },
                { field: "Order", width: 100 }],
            editable: true
        });
    });

Alan Mosley
Top achievements
Rank 1
 answered on 22 Aug 2012
0 answers
48 views
Hi, I writing beacouse i have problem with sort column. My column content date on format: 17-08-2012/22:03. When i sort this column i get sort example:
13-08-2012/22:03
13-07-2012/22:03
17-06-2012/22:03
17-06-2012/22:03
21-08-2012/22:03

Or
21-08-2012/22:03
17-06-2012/22:03
17-06-2012/22:03
13-08-2012/22:03
13-07-2012/22:03

I try add to column format: "{0:dd-MMMM-yyyy/h:s}" but this is not working.

        field: "data",
        title: "<?php echo $translate->_("Date");?>",
        sortable: true,
        filterable: false,
        width: 120,
        format: "{0:dd-MMMM-yyyy/h:s}"


Please help me:/

Ps. sorry for my poor english.
Jacek
Top achievements
Rank 1
 asked on 22 Aug 2012
3 answers
170 views
Hi guys,

I'm trying to change my tabstrip gradient color and it's not working. How do I change it?

This is what I currently have:

#custTab .km-tabstrip {background-color:#ccc;}

All that does is change the top half of the tabstrip
Martin
Top achievements
Rank 1
 answered on 22 Aug 2012
0 answers
68 views
Hi all,
All elements of kendo ui are very fexible and usable. That is very important but elements as filters, page, and sorts in grids or width in splitter, can be saved state.
states can be saved for future elements entered by means of cookies?
and then set starting these elements obtained from the cookies saved?

The ui framework have any native method for this, or there is that develop any solutions...

best regards
bogamo
Top achievements
Rank 1
 asked on 22 Aug 2012
0 answers
98 views
How to get Time Picker/ DateTime in editable grid
piyusjh
Top achievements
Rank 1
 asked on 22 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?