Telerik Forums
Kendo UI for jQuery Forum
2 answers
147 views
I've spent a lot of time trying to get items that are added to a ListView or "source" bound element (i.e. <div data-bind="source: myData"></div>) to fade in using FX Fade (http://docs.kendoui.com/api/framework/fx/fade) instead of just appearing abruptly.  Unfortunately, I have been unsuccessful.  Can you explain how to do it in *both* cases (i.e. when using a ListView and when using source binding)?

Here is as far as I got when trying it with a ListView:
var myData = [];
 
$('#MyListView').kendoListView({
  dataSource: myData,
  template: myTemplate,
  dataBinding: function (e) {
    for (var i = 0; i < e.items.length; i++) {
      kendo.fx($('div[data-uid="' + e.items[i].uid + '"]')).fade('in').play();  // THIS DOES NOT WORK.
    }
  }
});
 
myData.push('Test data item');  // SHOWS UP IN THE DIV, BUT DOES NOT FADE IN.

Your help would be greatly appreciated.  Thanks.
Don
Top achievements
Rank 1
 answered on 23 Jun 2013
6 answers
292 views
Morning All,

Are there any plans to release a light box or image gallery control?  

I have seen your AeroViewer Demo , which is close to my clients requirement but as yet no source to see which controls you have used to create it.

Are controls for multimedia on your RoadMap?

Cheers

Steven
Gabriel
Top achievements
Rank 1
 answered on 23 Jun 2013
15 answers
3.9K+ views
How can I turn on (or create) a subtle hover highlight for rows when my grid is row-selectable?  

This should be a built-in feature since such an effect should look good within the chosen theme.  

If it's not, can you suggest some CSS and what class to apply it to that would use theme-friendly hover highlighting?
Andrew
Top achievements
Rank 1
 answered on 22 Jun 2013
2 answers
64 views
Hi,

I'm trying to display a single data object which is loaded through a remote datasource.

My ideal component would be either

a) A listview which stretches to the entire screen and doesnt scroll
or
b) A view which has the data source loading functionality of a list view and passes that into a view

Do you have any recommendations on how to proceed? Are there other alternatives which I haven't considered?

Thank you!
Matt
Matt
Top achievements
Rank 1
 answered on 21 Jun 2013
2 answers
88 views
Hello,

I have a custom mobile site that is using a hand-built mobile framework, but at the end of last year, we imported a kendo ScrollView into the site in order to have and improved image carousel.

This worked flawlessly, we simply called:
$(SELECTOR_HERE).kendoMobileScrollView();

This week, we attempted to update the site to the Q1 release (v2013.1.319 ) of the Kendo Framework, and found that this line has started throwing an error and no longer creates a carousel.

 After importing the non-compressed version of kendo mobile, I was able to track down the following:
MobileWidget = Widget.extend({
        ...
        ...
        container: function() {
            var element = this.element.closest(kendo.roleSelector("view layout modalview"));
            return kendo.widgetInstance(element, kendo.mobile.ui) || ContainerNullObject;
        }

After running the debugger, I can see that element is undefined, so I am assuming that kendo is now assuming that I am forcing the whole site to be a mobile app... which would be a ton of work to implement on this legacy site.

Has kendo officially stopped supporting individual initialization of the mobile components unless you are running the whole page as an app? (this would be very disappointing and greatly reduce the usefulness of the product for my company)

If not, can anyone tell me if the syntax changed or something in Q1?

Thanks!

Jim
Top achievements
Rank 2
 answered on 21 Jun 2013
3 answers
176 views
Hi:

I have a Company entity with a collection of child Employee entities.  The controller is defined like this:

public JsonResult JsonIndex()
{
    //var allCompanies = _db.Companies;
 
    var allCompanies = from c in _db.Companies
                       select new
                    {
                        CompanyName = c.CompanyName,
                        hasChildren = c.Employees.Any(),
                        ImageUrl = "/Images/icons/Employee3_16.png",
                        children = from e in c.Employees
                        select new
                        {
                            CompanyName = e.FirstName,
                            hasChildren = false,
                            ImageUrl = "/Images/icons/Company20_16.png",
                        }
                    };
 
    JsonResult json = Json( allCompanies,JsonRequestBehavior.AllowGet );
    return (json);
}
The company entities appear in the first level of the treeview correctly.  Where there are employees, the graphic on the left appears, but when I try to click on it to show them, it disappears.  As you can see, I am renaming the columns in the employee records to match the same names so they should bind correctly, shouldn't they?  I've looked at the remote data example, but the demos won't work on my machine (I've got another post asking about that), so I can't see what the json string should look like.

My Razor MVC cshtml looks like this:
@(Html.Kendo().TreeView()
      .Name("treeview2")
      .DataTextField("CompanyName")
      .DataImageUrlField("ImageUrl")
      .LoadOnDemand(true)
      .HighlightPath(true)
      .Events( events =>
        events.Change( "onTreeViewChange")
      )
      .DataSource(dataSource => dataSource
                                    .Read(read => read
                                                      .Action("JsonIndex", "Home")
                                    )
      )
      )
The employee entities exist correctly when I view them from the controller code.  Can you tell me what I am missing?

Thanks,

Terry











Petur Subev
Telerik team
 answered on 21 Jun 2013
6 answers
796 views
hi expert,

I am new to Kendo component. In our project, we do not use the MVVM model because we adapt an existing application. We do a kind of face-lift with Kendo control. We have no problem to provide data to Combobox, calendar and some smaller control. But with the grid we hit a wall! ;-)


All object are quite complex with setter and getter and got several link to other object. I am not the "object part" programmer and I can't talk much on that. The point is that when I do:

$elem.kendoGrid({
    dataSource: {
        data: obj[acteurParam['prop']]  //return my collection
    },
});


The JS start a big big non stop loop. If I break the process and check in the stack windows of me firebug, I can see that KendoGrid try to do many many "Wrap" again the object. I think Kendo read the custom object and try to wrap it to Observable or something like that. Than Kenfo follow link to other objet and loop indefenitly.


Do I have a way to block that? Can I define manually with object to link. Example: Obj1.Title to column 1 and obj1.Name to column 2 ?


Any suggestion?
Pierre
Top achievements
Rank 2
Iron
Iron
 answered on 21 Jun 2013
4 answers
216 views
I have an HTML5 <progress> element where I want both the value and the max driven by the VM.

I have tried this on a couple browsers, and it seems that attribute values for MAX and VALUE are fetched at init, but are not later updated. Is this something that can be driven dynamically? My fallback will have to be JQuery.

<div class="Part">
    <progress id="ProgressBar"
        data-bind="attr: { max: TotalSize, value: TileCount }"></progress>100%
</div>
Daniel
Telerik team
 answered on 21 Jun 2013
4 answers
800 views
I have a page that loads an ajax request into a mobilelistview. Everything works fine except the loadmore button appears no matter if there is more data or not. Here's my code:

$(document).ready(function () {
 
        $("#memberList").kendoMobileListView({
            dataSource: new kendo.data.DataSource({
                pageSize: 10,
                serverPaging: true,
                schema: {
                    data: "Data",
                    total: "Total",
                    model: {
                        fields: {
                            CustomerID: { type: "string" },
                            EmailAddress: { type: "string" },
                            FirstName: { type: "string" },
                            LastName: { type: "string" },
                            MemberID: { type: "string" },
                            MemberTypeName: { type: "string" },
                            PlayerTypeName: { type: "string" }
                        }
                    }
                },
                transport: {
                    read: {
                        url: "@Url.Action("MemberListRead", "Club")",
                        type: "POST",
                        data: {
                            firstName: $('input[name="FirstName"]').val(),
                            lastName: $('input[name="LastName"]').val()
                        }
                    }
                }
            }),
            template: kendo.template($("#memberTemplate").html()),
            loadMore: true
        });
    });
I have confirmed total and pageSize return the correct information but even if total is 0 the load more button appears. Is this a kendo bug or have I done something screwy with the code?
Kiril Nikolov
Telerik team
 answered on 21 Jun 2013
4 answers
142 views
We have created a very simply HTML file to demonstrate a problem with the KendoUI Window affecting iPad and Android browsers only.
When run on PC Browsers such as Firefox, Chrome, Safari and IE10, the sample will automatically resize the internal table to fit inside the popup window.
On iPad and Android devices however this (Style="Height:100%") does not work as the sampe demonstrates in as few lines as possible.
Could you kindly please recommend a fix for this?

Regards, Garry.
Tom
Top achievements
Rank 1
 answered on 21 Jun 2013
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?