Telerik Forums
Kendo UI for jQuery Forum
6 answers
46 views
*EDIT* The title should be "Remote view reloaded and added to DOM on each visit" but I can't edit the post title.

I am currently experiencing some dreadful behavior where each time I navigate to a remote view the entire contents are re-requested and added to the DOM. I am working on an app with several remote views and each time I transition from one to the other and back the state is lost because the entire contents are added to the DOM again (rather than just showing the view that was already loaded). 

I am using both app.navigate("path.to.remote.view"); and <a href="path.to.remote.view"> and the behavior is exhibited in both cases. I have no request params, the urls are identical each time.

I am guessing there is something fundamental and simple at the root, but I can't resolve this issue.

Thanks
Kiril Nikolov
Telerik team
 answered on 06 Nov 2013
2 answers
118 views
Hello

This is a very simple question. How can I get the max value from the Y-Axis on a bar chart?
I found a solution on the forum that say I could use chart._plotArea.valueAxis.range().max, but it returns 1.2 and the max value is 14. (See the image)

-Casper
Casper
Top achievements
Rank 1
 answered on 06 Nov 2013
2 answers
54 views
Hi Guys,

I have found a weird behavior on iPad2/iOS7 on Landscape only: the bottom of the tabstrip is cropped. See screenshot attached.
Live URL is:
http://www.semiconductorconnect.org/kendo/

However: when you switch from Landscape to Portrait: the tabstrip is displayed properly.

Regards.
Chris @ Willows Consulting Ltd.
Top achievements
Rank 1
 answered on 06 Nov 2013
4 answers
434 views
Please help me How Can i drag and drop Items ( multiple ) from one Listview to another
nasir
Top achievements
Rank 1
 answered on 06 Nov 2013
6 answers
189 views
A simple upload .. almost most of the code copied from the example provided by Kendo ..
But wont work.. will error after uploading..

http://codeviewer.org/view/code:37e3

This wont work on a .aspx file not in a html..
What am i doing wrong?
Dimiter Madjarov
Telerik team
 answered on 06 Nov 2013
9 answers
2.1K+ views
So I currently have the following grid that is placing a link on the value of the first table cell...  I would like the entire row to be clickable to that URL... how do I do that?

@(Html.Kendo().Grid<WorkList>()
                            .Name("AllLists")
                            .DataSource(ds => ds.Ajax()
                            .Read("AllListsData", "Workdriver")
                            .PageSize(100))
                            .Columns(c =>
                                {
                                    c.Bound(w => w.ListName).Title("List").ClientTemplate("<a href='" + Url.Action("List") + "/#=ListId#'>#:data.ListName#</a>");
                                    c.Bound(w => w.ListDescription).Title("DESCRIPTION");
                                    c.Bound(w => w.CountOfAccounts).Title("NUMBER OF ACCOUNTS");
                                })
                            .Sortable(s => s.SortMode(GridSortMode.MultipleColumn))
                            .Groupable(g =>
                                {
                                    g.Messages(m =>
                                        {
                                            m.Empty("Drag Column Header Here to Group");
                                        }
                                    );
                                }
                            )
                            .Pageable(p => p.Input(true).Numeric(false))
                            .Filterable()
                        )
Dimiter Madjarov
Telerik team
 answered on 06 Nov 2013
1 answer
75 views
Hello,

The Kendo widgets are very impressive overall, but I’d like to share some critical observations of the grid filterable functionality:
      
  1. When setting a filterable property such as extra: false, all columns are automatically assumed to be filterable. This reverses the default (and preferred behavior) of explicitly applying filterable: true on the column.
  2. The only way to remove unwanted operators is indirectly, via specifying the text for each operator that should be in the list. Furthermore, this has to be done per data type.
  3. The filterable customization functionality and the column filterable IU functionality do not work well together. This is evident in the filter customization demo. The City filter uses a  dropdownlist widget and the default operator is “Starts with”, which makes no sense in this context.
  4. When using a filterable UI with dropdownlist or autocomplete it is invariably the goal that the list of allowed values be the distinct set of values from the results in the column, but the current functionality requires use of an external data source.
The impression I get is additional filtering capabilities have been bolted on without refactoring existing functionality. Perhaps I am wrong, and I am happy to be corrected if I am understanding the functionality incorrectly. Otherwise, perhaps you can consider revising the current filterable behavior in a future release.

Thanks,
Gary
Vladimir Iliev
Telerik team
 answered on 06 Nov 2013
3 answers
549 views
Hi team,

I have some doughts about kendo ui grid .
1.how to bind the kendo ui grid using multiple models ?
2.can i bind the kendo ui grid using controllers?

Dimiter Madjarov
Telerik team
 answered on 06 Nov 2013
2 answers
271 views
Hi
i have defined a custom validator in model field,
this is working fine...

01.schema: {
02.    model: {
03.        id: "EventId",
04.        fields: {
05.            Remarks: {
06.                type: "string",
07.                validation: {
08.                    validateTextLength: function (input) {
09.                        var statusRemarks = input.data("kendoEditor");
10.                        return statusRemarks != null &&
11.                             statusRemarks.value().length < 100;
12.                        }
13.                }
14.            },

is it possible to trigger this validation in a javascript function

thanks Yaniv
Kiril Nikolov
Telerik team
 answered on 06 Nov 2013
1 answer
75 views
I am trying to put together a view that should be reloaded (all data refreshed from the server) each time it is visited. Each time the page is loaded I intend for a datasource to be created and set on the page's view model. Now, what I have (an example is attached) works on the first view. Subsequent views always throw this exception:
Uncaught TypeError: Cannot call method 'closest' of undefined
from the kendo.mobile.min.js file.

I have tried the approach outlined here: http://www.kendoui.com/forums/kendo-ui-mobile/general-discussions/destroy-totally-remove-a-view-if-possible.aspx to completely destroy and remove the view from the DOM but I get the same error. So there must be some problem with the datasource. In the example I have attached the data source's data is from an array. My real intention is to use a datasource to fetch data from a remote endpoint (the URL of which will change each time the view is visited).

Please take a look at my example and tell me what is wrong or suggest an alternative way to get the behavior I'm looking for.

Thanks
Petyo
Telerik team
 answered on 06 Nov 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?