Telerik Forums
Kendo UI for jQuery Forum
3 answers
252 views
I'd like to set the legend and plotArea on multiple pie charts to fixed width and height to maintain visual consistency for a client's dashboard app.  There doesn't seem to be any legend.width, legend.height, plotArea.width, or plotArea.height properties, however. Is there a workaround for this which can let me set fixed legend and plotArea sizes consistently? 
Iliana Dyankova
Telerik team
 answered on 23 Oct 2013
1 answer
104 views
Hi!

We are trying to bind declaratively to date columns represented like "/Date(1325289600000)/". This works when creating the grid in code and setting column type to "date", but not declaratively. This is shown in the DtStart column. As shown in the DtStop column though this does work when the date value is a real date as opposed to a string.

It is possible to create a template for the column using for example "#=kendo.dateParse(DateFrom)#", but the datepicker will still not "understand" the value.


The full example can be seen here: http://jsfiddle.net/Gkgg9/3/

Thanks for any help!
/Victor
Alexander Popov
Telerik team
 answered on 23 Oct 2013
1 answer
403 views
I had loading ajax spinner working in my MVC project. When I convert my project to use Kendo UI it stopped working. Because it there is no dialog method in Knedo Ui. I post my old code can you help me convert this code to work with Kendo 
Thanks

  
        var loader = $('#loader').dialog({ autoOpen: false, modal: true, resizable: false, width: 150, height: 50 });
        $(".ui-dialog-titlebar").hide();
        
        loader.ajaxStart(function () {
              $(this).dialog('open');
     
        }).ajaxStop(function () {
              $(this).dialog('close');
        });
Kiril Nikolov
Telerik team
 answered on 23 Oct 2013
1 answer
125 views
Hi,

 in my viewmodel i have defined a datasource with type: "odata".
The datasource is bound to a listview like this:
var template = kendo.template($("#Template_Pre").html()
                      + viewModel.templates["someKey"].Item
                      + $("#Template_Sub").html());
 
$("#mylist").kendoMobileListView({
    dataSource: viewModel.listDataSource,
    template: template,
    appendOnRefresh: false,
    pullToRefresh: true,
    scrollThreshold: 30
});
The used template is a combination of parts defined in html and code. - including some if-statements.
Inside the template i have this textbox:
<input data-role="numerictextbox" data-bind="value: someIntValue" />

This should make it possible for the user to change the "someIntValue" directly from the list.
In another function i want to foreach all the bound items and submit the new "someIntValue" values to the server,
but every time i try that the values are still the original ones.

Any ideas what i'm missing to make this work?

Here is the model i defined in the schema of the datasource:
model: {
        id: "myId",
        fields: {
            myId: { editable: false, type: "number" },
            someStringValue: { editable: false, type: "string" },
            someIntValue: { editable: true, type: "number", validation: { min: 0 } }
            }
        }

Petyo
Telerik team
 answered on 23 Oct 2013
1 answer
90 views
Hello,

We encounter the following issue,
- a form with many combobox-es each of them will load its items using ajax from the server using ServerFiltering (true)
- sometime obtaining the filtered items takes a bit, and our users just go ahead and start to fill in the next combobox in the form.
- problem is that at some point the previous combo async operation completes and the dropdown of previous combobox will open and the focus is shifted back to the previous control

The behavior we consider appropriate here would be that the previous combo handles silently the end of async operation if it is no longer focused control on the form.
Can this behavior achieved somehow with current version.

As a side note there was something similar with TabStrip control where asynchronous tab contents were stacked as the asynchronous operation completed, I see now that this was solved in the last internal build (2013.2.1015) perhaps you can consider a similar fix for the combo async behavior explained above.

Thanks
Ovidiu
Alexander Popov
Telerik team
 answered on 23 Oct 2013
1 answer
613 views
I have a view that has a navigation button to another view that looks like this:
<a id="GoIssue" data-role="button" href="Main/Issue?priorPage=Picklist&fieldName=reqOrWO&value={TBS}" data-icon="details" ></a><br>

I'd like to disable it under certain conditions.   I have tried adding a class to it and checking the class in the click handler:
//  Start disabled until someone puts something IN the reqOrWO field
$('#GoIssue').addClass("disabled");
 
//  disabled is implemented by returning false on the click action if it has the disabled class
//  the disabled class also has visual aspects as well.
$('#GoIssue').click(function ()
    {
        event.preventDefault ? event.preventDefault() : event.returnValue = false;
        return (!$(this).hasClass('disabled'));
    });
At first, I just tried returning false, but navigation still occurred.  So, I tried adding the additional code to call preventDefault() [if present] and event.returnValue [if not].  But none of this seems to prevent the navigation from going to the target page.

Am I missing something?  Is there a simpler way?

Thanks

Kiril Nikolov
Telerik team
 answered on 23 Oct 2013
3 answers
263 views
I have been trying to change the overlay property for a pie chart series.  According to your documenation at http://www.kendoui.com/documentation/dataviz/chart/configuration.aspx and http://demos.kendoui.com/dataviz/pie-chart/index.html, I should able to set the overlay property of the pie series to the string "glass" as so:
series: [{
type: "pie",
field: "Amount",
categoryField: "DisplayName",
colorField: "color",
padding: 20,
overlay: "glass"
}]

However, this has no effect on the chart.  After digging through the source code for the chart, I believe that overlay is not a string, but an object.  So instead of the above, I should use this:
series: [{
    type: "pie",
    field: "Amount",
    categoryField: "DisplayName",
    colorField: "color",
    padding: 20,
    overlay: {
        gradient: "glass"
    }
}]

I think this is an error in your documentation that needs correcting.

Additionally, it would be great to know all of the possible values that can be supplied there.  After further inspection of your source code, it appears that "none", "glass", "roundedBevel" are valid values that can be used.  Are there others?

Thanks,
Sara
T. Tsonev
Telerik team
 answered on 23 Oct 2013
10 answers
903 views
Hi,

Does Kendo UI will have a full calendar? Like:

http://arshaw.com/fullcalendar/

Greetings.
Atanas Korchev
Telerik team
 answered on 23 Oct 2013
3 answers
692 views
I have tried several things with no success. The most I can is the helper to be called BUT instead of the value being passed it passes #: Style # as string instead of its value

without calling the helper i can display all values

My question is: how do I call a helper that has parameters inside a ClientTemplate?


Helper (MyHelpers.cshtml on app_code folder)

@helper ProductDisplay(string Style, string DefaultColor, string Name)
{
    <div class="prodName" data-id="@(Style + "-" + DefaultColor)">@Name</div>
    string img = "http://url/image/" + Style + DefaultColor + "_1?$ereredq$&bregc=0,0,0,0";
    <text><img src="@img" /></text>
}


Grid
============================================        
@(Html.Kendo().Grid<TestProject.Models.ProductModel.ProductInformation>()
        .Name("webGrid").AutoBind(true).Scrollable(scr=>scr.Height(430))
        .DataSource(dataSource => dataSource 
            .Ajax()
            .Read(read => read.Action("GetProducts", "Home")
           )
            .ServerOperation(false)
        )
        .Columns(columns =>
        {
            columns.Template(@<text></text>).ClientTemplate(@MyHelpers.ProductDetail("#: Style #, #: DefaultColor #, #: Name #").ToHtmlString());
        })
              .Pageable()
              .Scrollable()
   )
Nikolay Rusev
Telerik team
 answered on 23 Oct 2013
5 answers
213 views
I currently use Knockout, but am trying out Kendo to see how the two compare. With Knockout there are a couple of potential view model creation patterns, one is to use a literal:

var viewModel = {
    firstname: ko.observable("Bob")
};

ko.applyBindings(viewModel );

and the other is to use a function:

var viewModel = function() {
    this.firstname= ko.observable("Bob");
};

My preference has always been to use a function because it essentially gives you a 'factory' allowing you to create multiple instances of the same view model.With KendoUI, all the examples I have seen use a literal syntax:

var viewModel = kendo.observable({
    firstname: "Bob"
});

kendo.bind(document.body, viewModel);

My question is, with Kendo is it possible to emulate the Knockout style of view model creation via functions? This would allow me to create multiple instances of the same view model, add 'private' functions, etc ...
Alexander Popov
Telerik team
 answered on 23 Oct 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?