Telerik Forums
Kendo UI for jQuery Forum
6 answers
1.5K+ views

I'm trying to make an autocomplete and I'm using Visual Studio for debugging. The autocomplete does ask for data, my code returns it then I get this from Visual Studio:

Microsoft JScript runtime error: Unable to get value of the property 'toLowerCase': object is null or undefined
 
function anonymous(d, __f, __o) {
return (d.Title.toLowerCase().lastIndexOf('key', 0) == 0)
}

I'm guessing it is due to d.Title being undefined... BTW: key above was the search word typed into the autocomplete.

I'm creating the autocomplete like this:

// Search box.
    $("#searchBox").kendoAutoComplete({
        minLength: 3,
        dataTextField: "Title", //JSON property name to use
        dataSource: new kendo.data.DataSource({
            type: "json", //Specifies data protocol
            pageSize: 10, //Limits result set
            transport: {
                read: "/Search",
                parameterMap: function() {
                    return { title: $("#searchBox").data("kendoAutoComplete").value() };
                }    
            }
        })
    });


Here is the data returned:

[{"Title":"Doctor Who: The Trial of a Time Lord"},{"Title":"Doctor Who: The Key to Time"},{"Title":"Doctor Who: The Time Meddler"},{"Title":"Doctor Who: The End of Time"}]
Peter
Top achievements
Rank 1
 answered on 18 Jul 2013
10 answers
505 views
Hi,

This is my first time using Kendo UI and am considering using for a new level project mid year :)
I am wanting to see if there is a way to 'destroy' a view - 

At the moment I have a view:

         <div data-role="view" data-stretch="true" id="map2" data-title="Map" data-show="startMap">
MAP GOES HERE
</div>

The logic grabs data to a local array and alters the map, however the view is cached once it is loaded
I have tried to use data-show but that crashes, I would like to know a way to totally delete a view if possible?
Destroy() did not do much for me.


If you have any other similar JSFiddle snippets I would be very greatful

Thanks

Daz.
Bill
Top achievements
Rank 1
 answered on 18 Jul 2013
1 answer
42 views
Hello,

http://demos.kendoui.com/web/scheduler/selection.html

Steps to reproduce the issue:

1. Open the above link.
2. Select event which have 6/13/2013 9:00 AM (Evaluations).
3. Issue is Partially selection color  -> Please check this screenshot for more information.



Thanks,
Jayesh Goyani
Dimo
Telerik team
 answered on 18 Jul 2013
1 answer
120 views
Hi,

The custom download builder is not working: http://www.kendoui.com/custom-download.aspx
 
Is it only for me?
Kiril Nikolov
Telerik team
 answered on 18 Jul 2013
2 answers
296 views
Hi,
I am facing a problem in rendering of Grid's footer.The Grid Footer Rendered wrongly by default , on opening fresh it looks attachement "Error_withoutData_1.JPG" but  if any Data is inserted within  the Grid only then it aligns  Correctly as expected  like in attachement "withData.JPG" .I had adjusted with the height attribute in the grid but no luck. 

$("#DDGrid")
.kendoGrid(
{
dataSource : DD_DataSource,
navigatable : true,
pageable : true,
height : 335, 
.....});

I am using  kendoui web,Framework .Anyone Pls help me out .,Thanks in Advance .
Regards,
Winds
Alexander Valchev
Telerik team
 answered on 18 Jul 2013
1 answer
123 views
As the title reads, is it possible to reverse the direction of a vertical linear gauge, so it starts to move from top to bottom? My scenario is the following:
I'm feeding the gauge with real time depth data, and I have defined top / surface to be at 0. When moving deeper, I'd like the pointer to move downwards towards the bottom of the gauge.

It moves fine with the real time data now, but in the wrong direction :)

Any suggestions?

<script>
    function createGauges() {
        $("#depthBar").kendoLinearGauge({
            pointer: {
                value: 0,
                shape: "arrow"
            },
 
            scale: {
                majorUnit: 1000,
                minorUnit: 500,
                min: 0,
                max: 12000,
                vertical: true,
            }
        });
    }
 
    $(document).ready(function() {
        createGauges();
    });
</script>
Nicklas
Top achievements
Rank 1
 answered on 18 Jul 2013
1 answer
1.5K+ views
Using this custom CSS I am able to remove all the borders on a gird. Works great.

/* Grids can't have borders */
.k-grid, .k-grid *   { border: 0 !important; }


the problem is that it removed borders from all the elements in the grid. How can I edit the CSS so that only the Gird has all the borders and lines removed, but all the child controls still have their borders?
Dimo
Telerik team
 answered on 18 Jul 2013
1 answer
129 views
Im pretty sure i have found a bug with the treeview.

Here is a fiddle that illistrates the problem: http://jsbin.com/ocaraj/3/edit

To see the bug open up a console window and drag a node into a node that you have not loaded,  ie. the nodes children have not been loaded. In the 'dragend' event (and possibly others) the e.sourceNode is null if you drop it on an unloaded node. But if the node has been loaded it works as normal, ie e.sourceNode is the dropped node.
Alex Gyoshev
Telerik team
 answered on 18 Jul 2013
1 answer
48 views
The following style was added to the kendo.metro.css on line 1025.

.k-menu.k-header,
.k-menu .k-item {
  border-color: #4c5356;
}

This is the only instance of this color in the file. Is this an intentional change?
The previous color was #dadada since .k-menu.k-header was undefined.
Dimo
Telerik team
 answered on 18 Jul 2013
1 answer
719 views
I have the following Razor code in a Template from a Column. The div inside the form renders fine, but strangely the <form> tags from the Html.BeginForm do not get rendered.

(I need a separate form in each of the cells)
columns.Bound(e => e.DisplayText).Title("ACTION").Template(
        @<text>
             @if (item.UserClient.IsActionAvailable())
                      {

         using (Html.BeginForm("Subscribe", "eServices", FormMethod.Post, new {id = @formId}))
       {
              <div id="@divId" class="subForm">
                 <input type="hidden" name="User" value="@clientId" />
             </div>
         }

Petur Subev
Telerik team
 answered on 18 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?