Telerik Forums
Kendo UI for jQuery Forum
1 answer
144 views
Hi Kendo Team,
We have a requirement where we need to dynamically create charts based on data on the same page currently we developing in Asp.net MVC. We have attached a sample requirement image of widgets where each widget contains a chart and some options for the user to change the chart settings like  chart type and date range etc.


Thanks
Vinay
Petur Subev
Telerik team
 answered on 19 Dec 2013
1 answer
141 views
Hello,

We are currently trying to slowly upgrade from Telerik ASP.NET controls to Kendo UI and MVC within our web forms application but ran into a problem with the Kendo Window and asp.net controls - specifically a textbox.

What is happening is whenever we have an asp:Textbox inside a div that has been transformed into a kendo window via $(".window").kendoWindow(), if we click an asp:LinkButton with an onclick event that is also within that window, the value on the textbox always comes back as "". When I remove the $(".window").kendoWindow() line, everything works fine.

We were able to reproduce this in isolation and I'm attaching the project file. Can someone help us figure out whats going on and why textboxes inside windows lose their value?

If you breakpoint inside the btnTest1_Click method after having opened the modal and typed in the Test1 text box and clicked Submit Test 1, you'll see that txtTest1 has lost its value. Why?
Dimo
Telerik team
 answered on 19 Dec 2013
1 answer
111 views
In my app, I have a list of people that loads the first 50 when you navigate to the view.  When you first navigate, the app.showLoading() method is called.  If you click or tap anywhere on the screen during the loading process it errors out saying:

Error: Uncaught TypeError: Cannot read property 'top' of undefined

Url: http://localhost:5555/assets/js/kendo.all.min.js

Line #: 46

Is there any way to prevent the kendo showLoading method from throwing this error?  Should I just handle the error by hiding it instead?  It seems that even though it errors, if you close the error window, all the data still has been loaded properly.
Alexander Valchev
Telerik team
 answered on 19 Dec 2013
8 answers
144 views
Hi guys,

First of all thank you for this amazing feature, I bet I won't be the only one to say that but the DnD is really convienient !
I'm new to mvvm and I'm trying to implement the draganddrop on it.

I'm almost there, I just don't know how to declare/bind the hint function/property on the view.
My hint function should do the classic/normal behavior 

  hint: function (element) { // Cand configure that ..
            return element.clone();
  }

here's my view 

<div data-role="draggable" data-filter="[role='row']"> </div>

So in fact my main question is how to you define a function using the data attributes on the view ?

data-hint ? and then what should be my content ? 

Any idea ?

Thank you

T
Telmo Silva
Top achievements
Rank 1
 answered on 19 Dec 2013
6 answers
4.7K+ views
Hi,

I need to show all records in a grid, so no paging.  By default grid uses paging (10 records).  Is there any property that can turn off paging?

I tried to use PageSize(-1), but I got "NaN - NaN of 50 records", so it actually disabled paging but gave me "NaN - NaN".  I tried PageSize(0) and it works same way as PageSize(10).

So what I've end up doing  is entering 1000000 value in to PageSize property.  It works, but I don't like this approach.  Is there is a right way of doing it?

Thanks a lot.

Sincerely,
Vlad.

.Sortable()
.Scrollable()
.ColumnMenu()
.Pageable(x =>
    {
        x.Enabled(true);
        x.PreviousNext(false);
        x.PageSizes(false);
        x.Info(true);
        x.Input(false);
        x.Numeric(false);
        x.Refresh(true);
    })
.Resizable(resize => resize.Columns(true))
.Reorderable(reoder => reoder.Columns(true))
.DataSource(ds => ds.Ajax()
                      .ServerOperation(false)
                      .PageSize(1000000)
                      .Events(events => events.Error("error"))
                      .Read(read => read.Action("TodayOrders", "Orders")))

Alexander Valchev
Telerik team
 answered on 19 Dec 2013
1 answer
115 views
Hi, I'm trying to render a list of metrics with sparklines using a listview. I'm using MVVM to do this..... but it doesn't bind the spark lines ... here is some of my code:
<div data-role="listview"
        data-template="metric-summary-template"
        data-source="app.getMetricDescriptionsDataSource"
        style="width: 380px; height: 200px; overflow: auto">
</div>
<script type="text/x-kendo-tmpl" id="metric-summary-template">
        <div class="metric-view">
            <div>#= Name #</div>
            <div data-role="sparkline"
                 data-series="[{
                                   type: 'column',
                                   field: 'TMax',
                                   color: '\#ff0000',
                                   negativeColor: '\#0099ff'
                               }]"
                 data-tooltip="{ visible: true }"
                 data-source="app.getTestDS"
                 style="height:30px"></div>
        </div>
    </script>
In this code the sparkline code is static, but I hope to make it dynamic ... do you have some advice? 

Thanks in advance ...
Alexander Valchev
Telerik team
 answered on 19 Dec 2013
1 answer
71 views
Hello,

I am using the Kendo UI Grid with popup edit mode.  I need to make changes to the update and cancel buttons to make them work properly for what I'm doing.  How do I go about making these buttons do something different than how they are originally programmed?  I tried searching for this and have not found anything that works for me.  I would be happy to provide any additional information if needed.  Thanks!
Alexander Popov
Telerik team
 answered on 19 Dec 2013
1 answer
168 views
I'm having an issue where I'm subtracting large numbers and showing the result in a grid.  I'm formatting the column as N2 and it's showing -.00 when the result is a small negative number such as -.0000001.  I can do the rounding manually in one case, but there's another case where this is being dynamically queried from the database and it's more difficult for me to round.  Any idea out there for getting Kendo to show 0.00 consistently?
Georgi Krustev
Telerik team
 answered on 19 Dec 2013
5 answers
281 views
Hi,

I have implemented the following example : http://jsfiddle.net/UsCFK/22/

I have it working but would like to apply some styling. Namely, when the current row being dragged passes across underlying rows, I would like to apply styles to the underlying rows.

Thanks

Alexander Valchev
Telerik team
 answered on 19 Dec 2013
9 answers
591 views
Hello and thanks in advance.

I am attempting to retrieve one years worth of events at a time using the navigate event, and checking the year from the args date against the last retrieved date that is being set on a global variable. This logic is working great, however, once I navigate back to 2011 and beyond, or forward to 2014, the read() runs on every navigation without being explicitly called.

Here is my navigate function...

navigate: function(e) {
var year = new Date(e.date).getFullYear();
if (year != app.lastRetrievedYear) {
app.lastRetrievedYear = year;
app.dataSourceUrl = "/api/event/" + year;
dataSource.read();
}
}

And my transport function on my dataSource...

transport: {
read: {
url: function() {
return app.dataSourceUrl;
},
dataType: "json"
}

Per my understanding, the read() shoud only occur on initial load unless otherwise called. I have set breakpoints in FireBug and analyzed my conditional on the navigate and when in 2011, it does not hit this logic, yet still runs the read() function.

Any help? Thanks!
Vladimir Iliev
Telerik team
 answered on 19 Dec 2013
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?