Telerik Forums
Kendo UI for jQuery Forum
3 answers
76 views
I am using the KendoUI MVC wrappers, I believe Q2 2013. In the documentation I see that the ColorPicker has a preview flag that can disable the preview pane. This does not appear to be available in the MVC wrapper? Am I missing something?

Thanks
Dave Goughnour
Dimiter Madjarov
Telerik team
 answered on 27 Nov 2013
1 answer
57 views
Hello,

We see that tabbing doesn't work in Chrome on the grid control samples . We try to tab on header and page indexes in grid, but it doesn't hit on appropriate areas.
We admitted this behaviour in our application too (kendo v2013.2.716).
It is to be noted you may see this issue only in Chrome. 

Should we expect fixing of the mentioned above bug by new releases of kendo or maybe you can propose workaround? 

Thank you,

Best regards
Vladimir Iliev
Telerik team
 answered on 27 Nov 2013
1 answer
627 views
Hello,

In my Grid i have a column with 2 commands, which both use custom functionality like this.
{
  className: "btn-edit",
  text: "Bewerken",
  name: "edit",
  click: function (e) {
      e.preventDefault();
      var tr = $(e.target).closest("tr"); /* get the current table row (tr) */
      var data = this.dataItem(tr);
      CIX.CRM.Navigate('/businesses/' + data.ID, '/administration', data);
      }
},
{
  className: "btn-destroy",
  name: "destroy",
  text: "Verwijderen",
  click: function (e) {
               e.preventDefault();
               var tr = $(e.target).closest("tr"); /* get the current table row (tr) */
               var data = this.dataItem(tr);
               CIX.CRM.MessageDialog("Verwijderen", data.Code + ' - ' + data.Name, "Weet u zeker dat u " + data.Name + " wilt verwijderen ?",  [{ title: "Ja", action: _delete }, { title: "Nee", action: _cancelDelete }], data);
    }
 }

The problem is... when i give the 2nd command the name "destroy", the click event of that command is never called. When i give it another name, it doesn't show the destroy icon and leaves the inner span with an empty classname.

is there another way to have an icon with the destroy action without breaking the click event handler ?

Thanks in advance.


Petur Subev
Telerik team
 answered on 27 Nov 2013
1 answer
193 views
Hi!
I am using a ListView together with a template to show information to my users.
If the user presses an item in my listview, a new listview apperes showing sub data for the item the user pressed.
When I'm not using a template, a > sign is visible to the right, notifying the user that the item can be pressed.

How can I add this > sign to my template so it looks the same as the build in one?
My current template looks like this:

Regards
Per
<script type="text/x-kendo-template" id="feedTemplate">
    <div style="float:right">
        >
    </div>
    <img class="item-image" src="${ImageUrl}" />
    <h3 class="item-title">${Title}</h3>
    <p class="item-description">${Description}</p>
    <a href="\\#" data-role="button" class="delete">Delete</a>         
</script>
Alexander Valchev
Telerik team
 answered on 27 Nov 2013
1 answer
186 views
Hello, 
for design reasons i need to group by one column at time, there is a way to do it with the configurations? Or do it with some event bind?

I use MVC with kendo extensions.


Thanks,
Vladimir Iliev
Telerik team
 answered on 27 Nov 2013
1 answer
361 views
Hi,

I'm getting no where with trying to get this to work.

I need to be able to fill a ScrollView widget with images after the click of a button or some other event - not on the load of the page. 

So, my user logs in and upon login verification the widget is shown and filled with the user's images. I can not get the widget to display any images. Right now I am using a local JSON object for data but there will be a remote call to get the JSON object. (I have confirmed the JSON object works if the dataSource and widget is set up and initialized on page load like the DataBinding example for the ScrollView.)

I need to hook up the following dataSource to a Scroll View on a button click and I need to be able to update the data source and the scroll view on another button click:

var _ds = new kendo.data.DataSource({
            data: mzData,
            serverPaging: true,
            pageSize: 36,
            schema: {
                data: "images.image",
                total: "images.count"
            }
        });
_ds.read();

Here's a sample of my JSON:

var mzData = {
    "images": {
        "count": 101,
       " image": [
            {
                "thumbnail": "http://core.windows.net/photos/thumbnails/a7ebe-ed83-464b-8666-08579d0f4/4fa8dce2-5532-49b0-aca7-2bfce063e6c9/26874/357742050405162-1383426800383.jpg",
                "width": 1024,
                "height": 768,
                uri: "http://core.windows.net/photos/a7ebe-ed83-464b-8666-08579d0f4/4fa8dce2-5532-49b0-aca7-2bfce063e6c9/26874/357742050405162-1383426800383.jpg"
            },
            {
               "thumbnail": "http://core.windows.net/photos/thumbnails/a7ebe-ed83-464b-8666-08579d0f4/4fa8dce2-5532-49b0-aca7-2bfce063e6c9/26874/357742050405162-1383426800383.jpg",
                "width": 1024,
                "height": 768,
                uri: "http://core.windows.net/photos/a7ebe-ed83-464b-8666-08579d0f4/4fa8dce2-5532-49b0-aca7-2bfce063e6c9/26874/357742050405162-1383426800383.jpg"
            }
        ]
    }
};

I have tried several different things including:

 var mz1 = $("#mzScrollView").data("kendoMobileScrollView");
        mz1.dataSource.data(_ds);

And
$("#mzScrollView").kendoMobileScrollView({ dataSource: _ds });
and
$("#mzScrollView").kendoMobileScrollView({ dataSource: _ds.data });

Nothing works.

Can you please tell me how to hook up a Scroll View widget to a remote data source and display the data on an event like a button click? Also, I need to know how to update the same widget with other remote data. For example, I will show images in the widget that are public and with the click of another button I will show images that are private.


Thanks.
Petyo
Telerik team
 answered on 27 Nov 2013
7 answers
426 views
How can I scroll a list view with endless-scrolling="true" to the top? I tried this:
app.view().scroller.reset();
and it works to a point. The view scrolls to the top, but the list appears to be empty and any inertia continues to scroll the page down.

I don't have access to the particular list element as I'm trying to apply a generic function that works on every view no matter if there is a list view or not.

Cheers
Dean
Petyo
Telerik team
 answered on 27 Nov 2013
1 answer
39 views
seems like the bookmarklet for themebuilder mobile is missing?
Kamen Bundev
Telerik team
 answered on 27 Nov 2013
3 answers
303 views
Here is my Model

model: {
id: "MSOrderNumber",
fields: {
     OrderNumber: { type: "number" },
    OrderDate: { type: "date" },
  },
},

The grid source's model is
public class Result
{
public string OrderNumber { get; set; }
public DateTime OrderDate { get; set; }
 }

The OrderNumber is bound properly but the OrderDate field shows up empty and also there is filter on this Date column, it should work on date filter.
Am I missing something here ? Any extra definition or anything like that required ?
Atanas Korchev
Telerik team
 answered on 27 Nov 2013
5 answers
475 views
I have a combox where the choices are driven by a remote datasource as follows:
input.kendoComboBox({
        dataTextField: 'label',
        dataValueField: 'id',
        dataSource: {
            type: "json",
            serverFiltering: true,
            transport: {
                read: {
                    url: 'api/getchoices,
                    data: {
                        filter: function(){
                                 return input.val();
                        }
                    }
                }
            }
        }
    });

The comboxbox is also bound to a view model
<input data-role="combobox" data-bind="value: id"/>
My problem is that when the page initially loads, the combobox shows the value of the id field and not the label that corresponds to that id.  This is not an issue if I use a local array as the datasource, but the remote datasource is filtered based on user input and not designed to look up label based on id.

In code (in the viewmodel actually) I have the value of the label corresponding to this id, and I would like it to appear when the form is loaded.

I was thinking to possibly append an additional item (current id/label) onto the datasource list of choices, but I also don't want to query the remote datasource unless the user interacts with the control.

What is a good way to have the combobox display the label when the page loads, but also not disturb the id value which is stored in the view model unless the user actually changes the control value?

Also, can anyone comment the use of input.val() to feed my remote query.  I do want to use the value that the user has typed in, but am wondering if combobox has some built-in alternative to using input.val().
Jayesh Goyani
Top achievements
Rank 2
 answered on 27 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?