Telerik Forums
Kendo UI for jQuery Forum
1 answer
521 views
Hi,

I'm trying to resolve the refreshing issue with grid while setting data using Datasource.data() method. Grid refreshes fine when data list contains atleast one record , if data list contains empty list Grid renders the cached data. in this case very first set of data list assigned to Datasource.

setData:

 

function (selector, datalist, emptyOptions) {

 

var grid = $(selector).data("kendoGrid");

 

if (!grid) return false;

 

var len = datalist.length || 0;

 

if (grid.dataSource) {

grid.dataSource._pristine = datalist;

grid.dataSource._total = datalist.length || 0;

grid.dataSource.data(datalist);

}

 

else {

grid.dataSource =

 

new kendo.data.DataSource({ data: datalist, total: len });

}

 

this.resize(selector, emptyOptions);

},

Alexander Valchev
Telerik team
 answered on 19 Jun 2012
2 answers
79 views
Hello! What's wrong with following code?

<div id="grid"></div>
 
<script type="text/javascript">
    $(function () {
 
        var units = [{ UnitId: 2 }, { UnitId: 5}];
 
        var ds = new kendo.data.DataSource({
            // transport: {
            //   read: { url: 'http://localhost:6356/admin/GetUnitTogglesList' }
            // },
            data: units
        });
 
        ds.read();                    // For test purpose:
        alert(ds.data().length);      // show 2 - it's Ok
 
        $('#grid').kendoGrid({
            dataSource: ds,
            columns: [{ title: "Unit Id", field: "UnitId"}]
        });
 
    });
</script>

In result - Grid is empty.
And i see error in Firebug console (see attached image).
Eugeny
Top achievements
Rank 1
 answered on 19 Jun 2012
5 answers
142 views
When I call modal window above normal window I am still able to activate normal window.
How can we prevent that?
Kakaiba
Top achievements
Rank 1
 answered on 19 Jun 2012
0 answers
293 views
Any idea why the wrapper for numerictextbox add attribute readonly when I use this widget with knockout binding?
My code is:
<input type="text" class="k-textbox" id="inpNip" placeholder="" name="Nip" data-bind="value: Nip, autovalidate: true" /> As a result I get: 

<span class="k-numeric-wrap k-state-default k-state-hover">
<input class="k-formatted-value k-input valid" type="text" style="display: inline-block; " readonly="readonly">
<input type="text" class="k-input valid" id="inpNip" name="Nip" data-bind="kendoNumericTextBox: {value: Nip, }" data-role="numerictextbox" style="display: none; ">
<span class="k-select"><span unselectable="on" class="k-link">

 In first input is attribute readonly because of which numerictextbox acts strange. The behavior is visible also on knockout-kendo.js page ( http://rniemeyer.github.com/knockout-kendo/web/NumericTextBox.html ).

So any idea why it is like this? How to get rid of it?

Thanks.
/KrisD
Kristijan
Top achievements
Rank 1
 asked on 19 Jun 2012
1 answer
208 views
There is a lot of confusion in our team.  Does your DataSource bind to anything?  Ie., WCF, WCF doing JSON, JSON-RPC.  Given that we have seen only REST examples, there is a bias now for Kendo using *only* REST.  My argument is that Kendo is all client side, so why would it be limited to only one or two service protocols.

Could you discuss and perhaps give links to various examples?

Thank you.

Atanas Korchev
Telerik team
 answered on 19 Jun 2012
1 answer
337 views
Hello All,

I am writing a registration form for my site and I want to use KendoUIAutocomplete on a password input to preserve the look of with the other fields.
Is there a way to specify that this is a 'password' input type, IE: Show ***** inplace of the text.
or is there another way to get the same look on a standard <input>

Thanks for any help.

-George
George
Top achievements
Rank 1
 answered on 18 Jun 2012
0 answers
66 views
Hi All,
I got started using Kendo UI framework. I like much and love it.
I have concern about Menu. I just wrote code for static Menu. I am explaining my scenario...
---------------------------
When web page loaded (rendered) then I am seeing List and then within few seconds Menu built and showed. This is kind of strange and not acceptable.
---------------------------
Can we fix this issues or this is the right behavior. Could you guys tell me about how to resolve this issue if we can fix it.
Thanks much in advance.
--Aarzoo
aarzoo
Top achievements
Rank 1
 asked on 18 Jun 2012
1 answer
478 views
Is there a way to disable a row in batch edit mode if the row has a specific column value?
Steve
Top achievements
Rank 1
 answered on 18 Jun 2012
2 answers
241 views
I have been unable to find in the documentation how to add multiple filters with logical or instead of and.  Here is my code which results in a query like this:

filter=(SubscriptionId+eq+0+and+SubscriptionId+eq+472) 

what I want is this:

filter=(SubscriptionId+eq+0+or+SubscriptionId+eq+472) 

Is there any way to do this?

$("#ambulation2").kendoDropDownList({
            dataTextField: "Ambulation",
            dataValueField: "AmbulationId",
            dataSource: {
                type: "odata",
                serverFiltering: true,
                transport: {
                    read: "/yglservice.svc/RefAmbulations",
                    dataType: 'jsonp',
                    cache: true                   
                },
                filter: [{
                        field: "SubscriptionId",
                        operator: "eq",
                        value: 0
                },{
                    field: "SubscriptionId",
                    operator: "eq",
                    value: @UserInfo.SubscriptionId.ToString()
                }]
            }
        });
Gary
Top achievements
Rank 1
 answered on 18 Jun 2012
1 answer
136 views
Hello,

I've developed a Silverlight 5 (MEF) application that uses the TileView throughout it's different modules. Now that I've been asked to create a mobile version of this application I'm wondering how I can replicate (if possible) a similar GUI so that our users won't have to learn a new interface.

Do you think it's possible to have a Kendo control with a similar "look and feel" as a TileView? Seems problematic to me... given the smaller screens and performance differences of a desktop pc to a tablet.

Anyway, please let me know what you think and thanks!

~ Dave
Alexander Valchev
Telerik team
 answered on 18 Jun 2012
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?