Telerik Forums
Kendo UI for jQuery Forum
1 answer
93 views
Is there a way to get the drawer to swipe up from the bottom rather than the sides?
Kiril Nikolov
Telerik team
 answered on 31 Jan 2014
3 answers
145 views
I am trying to create a view with vertical list of resources but with a horizontal time line is this possible?

group: {
    resources: ["Rooms"],
    orientation: "vertical"
  },  //this makes resources as well as timeline vertical

Example below
                                                      tue 10 september
                             12am |1am|2am|3am|4am|....................
Resource a
Resource b
Rosen
Telerik team
 answered on 31 Jan 2014
3 answers
79 views
scheduler.view().name for "workWeek" is showing undefined. All other views are working fine. Please advise
Rosen
Telerik team
 answered on 31 Jan 2014
1 answer
114 views
Hi,

I am using the latest version of Kendo DataViz: 2013.3.1324

If I use whitespace or - in my charts field names all I get is errors. For example, my data looks like this (Chome log of datasource):

19: ct.extend.init
20: ct.extend.init
Bandwidth IN: 8.9
Bandwidth Out: 3.96
_events: Object
err-line: 30
name: 1390908600000
parent: function (){return r}
uid: "eb22f21c-41b7-47de-af24-8f4a86aa4a58"
__proto__: i


I get this error:

ReferenceError: line is not defined
at eval (eval at <anonymous> (http://192.168.99.30/kendo-2013.3.1324/js/kendo.dataviz.min.js:9:28980), <anonymous>:3:15)
at g (http://192.168.99.30/kendo-2013.3.1324/js/kendo.dataviz.min.js:15:31102)
at fn.extend._bindFromObject (http://192.168.99.30/kendo-2013.3.1324/js/kendo.dataviz.min.js:16:18853)
at fn.extend.bindPoint (http://192.168.99.30/kendo-2013.3.1324/js/kendo.dataviz.min.js:16:18380)


If I change err-line to errline I get this error:

SyntaxError: Unexpected identifier
at Function (native)
at ht.getter (http://192.168.99.30/kendo-2013.3.1324/js/kendo.dataviz.min.js:9:28980)
at g (http://192.168.99.30/kendo-2013.3.1324/js/kendo.dataviz.min.js:15:31086)
at fn.extend._bindFromObject (http://192.168.99.30/kendo-2013.3.1324/js/kendo.dataviz.min.js:16:18853)
at fn.extend.bindPoint (http://192.168.99.30/kendo-2013.3.1324/js/kendo.dataviz.min.js:16:18380)
at Object.an._bindPoints (http://192.168.99.30/kendo-2013.3.1324/js/kendo.dataviz.min.js:19:19572)


If I remove any other data except errline, the chart draws.

Is it possible to get a fix for this?



Alexander Popov
Telerik team
 answered on 31 Jan 2014
2 answers
73 views
hello I'm adding dynamic tabs but I do not see the tab   bottom line
navbar click >> add dynamic tab

navbar menu

Crew Click
Documant Click


code

function SetMasterTab(tabName) {
 
    var dynamicTab = "";
    var node = "";

    var value = document.getElementById("tabstrip");

    if (value === null) {

        dynamicTab += '<div id="forecast">';
        dynamicTab += '<div id="tabstrip"></div>';
        dynamicTab += '</div>';
        $('div#ActivePageContent').append(dynamicTab);
    }
 
            node += '<ul>';
            node += '  <li class="k-state-active">' + tabName + '</li>';
            node += '</ul>';
      
        node += '<div class="' + tabName + '">test tes tests <br/> TEST TEST TEST</div>';
         
        $('#tabstrip').append(node);
       
    }

    $("#tabstrip").kendoTabStrip({
        animation: {
            open: {
                effects: "fadeIn"
            }
        }
    });
}

serdar
Top achievements
Rank 1
 answered on 31 Jan 2014
2 answers
238 views
I'm re-posting this as a separate issue from the one I've been working on with Petur.  I have a kendo grid, actually a sub-grid, for which I've defined a command button.  In the button I need to use a property from the master grid, which is no problem, and a property from the current row of the sub-grid where the button will be clicked.  The syntax for this is not working out, and I have not been able to find an example either of multiple parameters, nor of using a property of the current row in such a manner.  I get an error that the current row property is not defined when the page renders.  I need to sent both properties to the controller which will redirect to the proper CRUD view.  I've tried two different syntaxes.  Code is shown below.  The first example will render but lacks the critical second property.  Petur has a sample project from me that these buttons could be dropped into for you to see the problem.  The project is called TriLevel PolymorphicGridTest.

@model IEnumerable<kendoBatchHeaderTest.Models.BatchHeader>
 
@{
    ViewBag.Title = "Transaction Review";
}
 
<h2>Batches to Review/Post</h2>
 
@(Html.Kendo().Grid(Model)
    .Name("BatchGrid")
    .Pageable()
    .Sortable()
    .Scrollable()
    .HtmlAttributes(new { style = "height:700px" })
    .Columns(columns =>
                {
                    columns.Bound(b => b.BatchID)
                                        .Width("100")
                                        .Title("Batch ID");
                    columns.Bound(b => b.Created_DTTM)
                                        .Width("175")
                                        .Format("{0:MM/dd/yyyy hh:mm tt}")
                                        .Title("Created");
                    columns.Bound(b => b.PostingStatus)
                                        .Width("175")
                                        .Title("Status");
                }
            )
    .DataSource(dataSource => dataSource
        .Ajax()
        .PageSize(40)
        .Read(read => read.Action("FetchBatchCollection", "Home"))
    )
    .ClientDetailTemplateId("transactions")
    //.Events(events => events.DataBound("dataBound"))
)
 
<!-- Nested grid for transaction object, member of BatchHeader.TranCollection
     There can be many ITransaction objects per BatchHeader -->
<script id="transactions" type="text/kendo-tmpl">
    @(Html.Kendo().Grid<kendoBatchHeaderTest.Models.Transaction>()
            .Name("TranGrid_#=BatchID#")  // makes the sub-grid name unique so that it will be displayed on each child row.
            //.Pageable()
            .Sortable()
            .Scrollable()
            .HtmlAttributes(new { style = "height:175px; width:800px" })
            .Columns(columns =>
                {
                    columns.Template(@<text></text>)
                                       .ClientTemplate("<a href='" +
                                       Url.Action("Edit", "Home") +
                                       "/#=BatchID#'>Edit</a>")
                                       .Width("100px");
                    columns.Template(@<text>@Html.ActionLink("View Details", "Edit", "Home",
                                        new { BatchID = "#=BatchID#", TransactionID =  "=#TransactionID#" }, null)</text>)
                                        .Width("100px")
                                        .ClientTemplate("<a href='/Edit/Home/#=BatchID#/=#TransactionID#</a>");
                    columns.Bound(b => b.TransactionID)
                                        .Width("100")
                                        .Title("Transaction ID");
                    columns.Bound(b => b.TranactionType)
                                        .Width("200")
                                        .Title("Type");
                    columns.Bound(b => b.PostingMessage)
                                       .Width("600")
                                       .Title("Posting Message");
                }
                    )
                    .DataSource(dataSource => dataSource
                        .Ajax()
                        .PageSize(5)
                        .Read(read => read.Action("FetchTransactionCollection", "Home", new { batchID = "#=BatchID#" }))
                    )
            //.ClientDetailTemplateId("detailTransactions")
            //.Events(events => events.DataBound("dataBound"))
                    .ToClientTemplate()
            )
Richard
Top achievements
Rank 1
 answered on 31 Jan 2014
1 answer
83 views
Hi ,

   I have use Drop down in Grid view its perfect working with Inline but not working with Pop Up mode. also i have create sap rate edit template but its also not call.
and also how to use j query validation on grid Column.

Thanks
Sandip Patel
Alexander Valchev
Telerik team
 answered on 30 Jan 2014
16 answers
603 views
I have a pretty problem that I've been searching for an answer to and haven't found anything like what I need.  I have a kendo grid bound to a model object for my view. The model is a custom object of type BatchHeader.  BatchHeader owns a collection of Transaction objects. Each Transaction object has XML data unique to a given transaction type so the data varies by transaction.  I have TranDetail objects derived from a base class, one derived type for each transaction type, each with it's own properties and validation code.

On the View page I need to display pending Batch/Transaction/Details in a nested grid format for review, potential correction, and posting.  The first two grid objects are pretty straightforward.  The third is turning into a real pain.  The third level has to be polymorphic as the transactions in a batch may not be homogeneous.  I can't pass in an object of type object because reflection won't get it's properties for iteration (tried that already).  I can't use the base class because then all I have access to are the common properties (tried that too), many of which (but not all) I want to suppress anyhow.  So far I haven't been able to figure out how to pass in any kind of an object to the third level grid that I can work with.

One thing I thought of is to transform the detail transaction object's data into a datarow and pass that in but I haven't figured out how to bind it, iterate it, and suppress the columns I don't want.  On top of that, I'm new to C# and MVC although I've been writing code for a very long time.  Each generic transaction object can have only one detail record so it's not like I need to mix types at once, but I'm not finding a way to pass in a known type at runtime.  The other problem of course is that it's not possible to know in advance what type of detail transaction requires presentation.

Is it possible to have multiple detail grids, one per tran type, and suppress the ones' I don't need in a given instance?  That seems inelegant.  I like the datarow idea but since the page already has a model I'm not sure how to bind the datarow to the third level grid either.

Any help willl be greatly appreciated!
Richard
Top achievements
Rank 1
 answered on 30 Jan 2014
3 answers
361 views
I have a problem that I am unable to solve. 

I have an input field that shown when a modalview is opened. When I click that text input field on my iPhone 5S, it opens the keyboard. But when I enter text it is not shown in the input field. I tried debuggin an give it a focus $("element").focus(), but that' didn't bring the keyboard nor gave the input field a focus.

When I put an input field inside the main view, I get focus when I tap it.

Any suggestions how to solve this.

Things I've done:
- Create another input field with another id (doesn't work)
- Tried to capture the click event via jQuery - it didn't trigger any click event!
- No filters are applied to the input field (there are, but I commented them out)
- The field react to the kendoTouch>Tap event

Things I've noticed:
- Tapping on a button in a modalview transfers the click to the elements behind it (using Kendo UI Mobile v2013.2.1021) - this is another problem that I haven't solved out yet

Steve
Telerik team
 answered on 30 Jan 2014
1 answer
50 views
Good afternoon everyone,

I wanted to ask if it's possible to make the grid fully editable client-side (without synchronizing with the back end on update/delete), and
then serialize the data source so that model binder can pick it up, preferably as a list of items.

The idea is to present to the user fully interactive grid as one part of the form, let the user fill out the rest of the required data and submit everything at once, including the list of entries.
Alexander Popov
Telerik team
 answered on 30 Jan 2014
Narrow your results
Selected tags
Tags
+? 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?