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

I have a datasource bound spreasheet. When I enter a value in a cell, the change is reflected in the datasource. That's good.
Now I have the following:
A1: 100
A2: 200
A3: =SUM(A1:A2)

On entering the formula in cell A3, the bound datasource gets the sum value 300 correctly. Then I change value in cell A1 from 100 to 150, the displayed value in cell A3 is updated to 350, but my datasource is not updated nor notified about this change. 

So the spreasheet show:
A1: 150
A2: 200
A3: 350


But the bound datasource actual have:
A1: 150
A2: 200
A3: 300

How can I fix this?

Thanks,

Anna
Bozhidar
Telerik team
 answered on 05 Oct 2017
5 answers
487 views

Hi,

I'm trying to develope a tabbed angular material view where each tab contains a kendo grid. By clicking on the tab a post request is fired and, in the callback, columns definition and data are computed. After all these operation grid's data options are reassigned. Unfortunately the grid is not updated, i've googled and searched in the forum and the suggestion is to call the reload method gained through a reference to view. I'm trying to avoid these to keep my code clean and not reference view from controller and on the other way the building an attribute for that is quite useless.

Is there any event to fire to reload view? Is there any other strategy? Or simply am I missing something?

 

Thanks in advance,

Greetings

Alex Hajigeorgieva
Telerik team
 answered on 05 Oct 2017
4 answers
277 views
The selectable and navigatable properies of a listview can not be set using the data-selectable and data-navigatable attributes. This is because they are not in the default options object of the listview.

Regards, Jaap
Stefan
Telerik team
 answered on 05 Oct 2017
4 answers
236 views

I'd like to create a new external file for custom message to show a message.

This message will show when datasource is empty.

This is a message for: data-no-data-template="NoDataFoundTemplate"

I have created a new file:"kendo.message-noDataCustomMessage" .

this is my file:

/* <Widget-name> messages */

if (kendo.ui.<Widget-name>) {
kendo.ui.<Widget-name>.prototype.options.messages =
$.extend(true, kendo.ui.<Widget-name>.prototype.options.messages,{
  "<message-name>": "<translation",
  noDataFound:"Nessun Elemento Trovato"
  //...
});
}

 

 

Ivan Danchev
Telerik team
 answered on 05 Oct 2017
7 answers
815 views

Hi,

I using the Kendo Multiselect with grouping option.  I have to show the items in the order in which I received them.  When I apply the group, the order is altered.

See the example  http://dojo.telerik.com/uNaQu.

In this example, Maria Anders is the first name of the non-grouped list.  Yet she is the second name in the group "Germany" in the grouped list.  

The order should remain the same, but this is not what happens.

 

 

 

 

 

Nencho
Telerik team
 answered on 05 Oct 2017
1 answer
848 views

Hello

One of my columns bound to a DateTime field of my model (all culture settings and js files are included, I guess not this one is the problem).

.Columns(columns=>columns.Bound(c=>c.SomeDateField).Format("{0: yyyy.MM.dd. HH:mm}";)

Showing the date is perfect: looks like '2017.10.03. 15:05'. The problem is when I click the Edit button (I have a command column too with InLIne edit). It is automatically converted to:

Tue Oct 03 2017 15:05:58 GMT+0200 (Central European Summer Time)

Yes, with this long text. It's not really userfriendly either to edit this cell or create a new row with this kind of cell...

Is it possible to use here some kind of datetime picker? I have also a numerictextbox field, that's so nice: I can only enter numbers or use the step-up and step-down buttons. :)

Thank you

Stefan
Telerik team
 answered on 05 Oct 2017
1 answer
940 views

Hi!

Is there any way to disable a command.Edit() or a command.Destroy() button? I don't want to hide them, the user should see there's an option for both functions, but I want to disable them depending on the @User.IsInRole("RoleName") status. I tried several ways: using Javascript and adding k-state-disabled class will make them disabled-look but they are still clickable. I also tried this way:

.Columns(columns => columns.Command(command=>{command.Edit().HtmlAttributes(new {@class = @User.IsInRole("RoleName") ? "k-state-disabled" : ""});

...

but same result as Javascript result: stays clickable but they are grayed out.

Thanks for your help

Stefan
Telerik team
 answered on 05 Oct 2017
1 answer
151 views

i'd like to do this with MVVM.

<div id="grid"></div><script> $("#grid").kendoGrid({ columns: [{ field: "name" },{ field: "age" }], pageable: true, noRecords: { template: "No data available on current page. Current page is: #=this.dataSource.page()#"}, dataSource: { data: [{name: "John", age: 29}], page: 2, pageSize: 10}});</script>

 

 

How i write this (noRecords) in the mvvm?

no-data-records?

data-no-data-records?

or

data-noData-records?

Stefan
Telerik team
 answered on 05 Oct 2017
4 answers
1.3K+ views
in my customized (multiple photos) upload, I preview each photo that user uploaded and have a drop down list for each photo, this drop down list lets user select photo type. Each photo needs a different type. When user click 'upload' button, how can I check that these photos are of different type? I noticed the onUpload() event handler is triggered for EACH photo, so I cannot put this check in onUpload(). I cannot user async.batch mode either, since I'm not able to show the preview of those photos.
Plamen
Telerik team
 answered on 05 Oct 2017
3 answers
196 views
Hello,
1) have where and external template are   The is bind to that The script inside template has div with no data-bind specified. In want to make ajax call to get data source and bind that data to  how to do that, since new data is not part of viewModel?

2) if we specify kendo.bind() statement in javascript we  need to write data-bind="source: x" in div attribute right? either one of them should be written or both are
        
Dimitar
Telerik team
 answered on 04 Oct 2017
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?