Telerik Forums
Kendo UI for jQuery Forum
1 answer
103 views
I'm really happy with the implementation direction you guys went with for the MultiSelect.

There is, however, one issue I noticed in the BETA download...   when constructing the float wrapper div, the BETA download uses the class floatWrap instead of k-floatwrap

This occurs in both the kendo.all.min.js and the kendo.multiselect.min.js
Georgi Krustev
Telerik team
 answered on 01 Mar 2013
1 answer
182 views
Hello,

I have the following challenge:
I'm using the ListView in an ASP.NET MVC application, where the Kendo UI ListView sits in a Partial View. The items in the list view shall be created using another Partial View (so their content may be different item by item). I've tried to hook up some jQuery code, which alter the elements by using AJAX calls, but it seems that my code runs before the ListView gets rendered. The Action URL is stored in a data attribute of the generated 'div' sections.
Here is the .cshtml code for the partial view:

@model TheModel
@*@{ Layout = null; }*@
<link href="@Url.Content("~/Content/listviewitem.css")" rel="stylesheet" type="text/css" />
<script type="text/x-kendo-tmpl" id="template">
    <div class="itemclass" data-actionurl="${ActionUrl}" />
</script>
<div>
    @(Html.Kendo().ListView<TheDetailModel>()
        .Name("ListView")
        .TagName("div")
        .ClientTemplateId("template")
        .Pageable()
        .DataSource(p_DataSource => p_DataSource
            .Read(p_Read => p_Read.Action("TheDetailModel_Read", "TheModel")
            .Data("additionalData")))
        )
</div>
<script type="text/javascript">
    function additionalData() {
        return { p_TheDetailModelId: "@Model.Id" };
    }
    jQuery(function () {
        jQuery('.itemclass').each(
            function (index, element) {
                var actionUrl = jQuery(element).attr('data-actionurl');
                jQuery.ajax({
                    url: actionUrl,
                    success: function (result) {
                        jQuery(element).html(result);
                    }
                });
            }
        )
    });
</script>

Has anybody an idea how to make this work as expected?
Daniel
Telerik team
 answered on 01 Mar 2013
3 answers
123 views
I have watched my users use the DateTime Picker and have noticed that they are slightly confused by its default UI behavior. I'd like to make a case for a small tweak, for better intuitiveness.

Recommendation:   the selected date should be forgotten, not remembered, when the user clicks on the header and chooses a different month from the list of months.

We are using the DateTime Picker to pick a day, which triggers some other action. Nothing special.  The day cell style shows that is has been chosen. However, when the user clicks on the header and chooses a different month, any previously chosen day number is remembered. If the previous selection was May 3rd, when the user changes to December, the 3rd will be selected. The cell style shows it. This pre-selection causes users to pause every time. They wait for the desired selected-date behavior to occur because they see the visible sign that a selection has occurred. Then they realize it is a default and click on a date.

Not a big problem, just a small hitch in the step. 

Thanks




Georgi Krustev
Telerik team
 answered on 01 Mar 2013
1 answer
234 views
Hi,
I am creating a customized kendo alert box in which i am adding DOM elements dynamically.The response of the kendo button click which is created dynamically is not up to the mark in safari and chrome browser of iPhone device. In android browser the button click event is not working.
PFA the file.
Alexander Valchev
Telerik team
 answered on 01 Mar 2013
2 answers
393 views
I have a hierarchical grid but i first have to save the parent before adding child records. But you can open the child view even if the parent isn't saved yet. Does anyone has a solution? Catch an onrowleft event or something?

Thanx
Vladimir Iliev
Telerik team
 answered on 01 Mar 2013
4 answers
237 views
Hello everyone, I would like to override the close() function of a modalView. What I need is to do something first before it closes.

Here is what I am trying to do:

var modalView = $("#modalview-menu").data("kendoMobileModalView");    
modalView.close = function () {
  // do something...
  ...
  // then close it.
}

Thanks!
Anton
Top achievements
Rank 1
 answered on 01 Mar 2013
1 answer
696 views
I've got a kendo grid where I need to fire a function AFTER the destroy command is completed for row. I know that the 'remove' event on the grid fires before it happens, is there any way to capture the event after completion?

Thanks
Vladimir Iliev
Telerik team
 answered on 01 Mar 2013
2 answers
230 views
Hi,
 
        Is it possible to get the numeric pad when user clicks on a kendo numeric text field? like <input type="number"> in HTML5.
even I set the input field to be type number, when I wrap it with kendo numeric field it converts to type text.

Regards
Shivanka
Feng Zhu
Top achievements
Rank 1
 answered on 01 Mar 2013
2 answers
185 views
The kendo listview documentation says that you can pass in a selector or an array.  An array of what?

I have a complex kendo grid that is using inline custom editors based on information in the row.  This all works great, EXCEPT for the listview I'm adding.

Given something like this (I'm using underscore js by the way), how do I select the list items using javascript?

function createListViewEditor(container, options) {
        var list = _.find(_viewModel.model.LookupListCollection, function(x) {
            return (x.Id == options.model.StagingControlStageAttributeLookupCollectionId);
        });
 
        var listItems = [];
 
        _.forEach(list.LookupValues, function(x) {
            listItems.push({ text: x.CustomName, value: x.Id });
        });
 
        var lvSource = new kendo.data.DataSource({
            data: listItems
        });
 
        var listView = $('<div />')
            .appendTo(container)
            .kendoListView({
                dataSource: lvSource,
                selectable: "multiple",
                template: kendo.template($('#multiselecttemplate').html())
                 
            }).data("kendoListView");
 
        var indices = multiListSelectionHelper(listView.dataSource.data(), options.model.AttributeFieldValue.split(','));
 
        listView.select(indices);
 
        listView.bind("change", function(e) {
            var data = e.sender.dataSource.view(),
                selected = $.map(e.sender.select(), function(item) {
                    return data[$(item).index()].value;
                });
 
            options.model.AttributeFieldValue = selected.join();
        });
    }
     
    function multiListSelectionHelper(options, current) {
        var items = [];
        _.forEach(options, function (x) {
            _.forEach(current, function(y) {
                if (x.value == parseInt(y)) {
                    items.push(x);
                }
            });
        });
 
        return items;
    }
Phil
Top achievements
Rank 1
 answered on 28 Feb 2013
6 answers
848 views
I write only super high performance RESTful services that support both If-Modified-Since and If-None-Match request headers for data services.  Your randomization of the JSONP callback function name is killing my performance because it's making each subsequent request to the service random rather than static.  I don't see a way via configuration to make the JSONP call static and/or programmable.  Any suggestions?
Stevoh
Top achievements
Rank 1
 answered on 28 Feb 2013
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?