Telerik Forums
Kendo UI for jQuery Forum
5 answers
604 views

Is there a way to create a heat map kind of visualization over geojson map layers in kendo map

for eg something like this :

 

Alex Hajigeorgieva
Telerik team
 answered on 10 Mar 2017
1 answer
1.2K+ views

I have the following switch that retrieves the group by dropdown selected value:

 

                  switch (groupValue) {
                case "1":
                    groupField = { field : "GroupByEvent"};
                    break;
                case "2":
                    groupField = { field: "GroupByHorse" };
                    break;
                case "3":
                    groupField = { field: "ProductName" };
                      alert(groupField.field);
                    break;
                case "4":
                    groupField = {field: "GroupByPaymentMethod"};
                    brak;
                default:
                    groupField = { field: null };
                    break;
                      
            }

 

how can I change the kendo grid group by according to the case? (default means no grouping)

 

 $("#grid").kendoGrid({
                        dataSource: {
                            transport: {
                                read: {
                                    url: "https://demos.telerik.com/kendo-ui/service/Products",
                                    dataType: "jsonp"
                                }
                            },
                            pageSize: 5,
                         
                            group: {
                                groupField ???
                            }
                         },

Tsvetina
Telerik team
 answered on 10 Mar 2017
2 answers
233 views

I am working on a search page where search results will get displayed in a grid. I have a search button that will trigger the to execute http call to the server to retrieve the data. However, only when for the first time search button clicked request gets sent once, every subsequent click two requests are being sent. I am out of ideas what is causing this.
Here is the code that gets executed once each time search button is clicked:

$scope.gridData = new kendo.data.DataSource({ transport: { read: function (e) { $http.post('/Provider/ProviderSearchResult', angular.toJson(dataTransferObject)) .then(function success(response) { e.success(response.data); console.log("success: " + response.data); }, function error(response) { alert('something went wrong') console.log("error: " + response); }) }, }, pageSize: 10, sort: { field: "rating", dir: "desc" }, });

Any help would be appreciated. Thank you.

Irmantas
Top achievements
Rank 1
 answered on 10 Mar 2017
1 answer
143 views

Hi Guys, I'm wondering if the desktop widgets support flexbox?  Can you point me towards any documentation?

I'm debating moving to the Bootstrap 4 Alpha, which has been redesigned to use Flexbox.

Thanks

marc

Ivan Zhekov
Telerik team
 answered on 10 Mar 2017
1 answer
553 views
Hello,

I'm experimenting with the Kendo Grid's filtering API function. I'm wondering if the API has any functionality for taking in an SQL string for filtering, at least a WHERE clause. Something like the following:

        $('#kendoGrid').data('kendoGrid').dataSource.filter('WHERE status = N');

Thank you.
Stefan
Telerik team
 answered on 10 Mar 2017
10 answers
1.8K+ views
I have a MVC Grid which is loading fine on the initial load. It uses the following code:

.DataSource(dataSource => dataSource 
        .Ajax()
        .PageSize(100)
    .Read(read => read.Action("AccountByType", "Organization", new { AccountType = 1 }))
)

I can successfully refresh the grid by calling the following:

$("#AccountGrid").data("kendoGrid").dataSource.read();

However, I need to change the query value that is passed in based on different selections the user makes on the page. So for example, I need to change the AccountType from 1 to 2 and refresh the grid. I tried the following:

$("#AccountGrid").data("kendoGrid").dataSource.options.transport.read.url = "/Organization/AccountByType?AccountType=2";
$("#AccountGrid").data("kendoGrid").dataSource.read()

But it doesn't work. Any suggestions on how to make this work?



Stefan
Telerik team
 answered on 10 Mar 2017
8 answers
641 views

Hi,

I want something like progress bar in each cell. Please see attachment. so let say in my cell, i show something like 100/1000 (i.e 10%) then a small progress bar should be shown under the value of cell. please see attachment's "Total" column. also it should be dynamically changing. so lets say user changes some value in other cell and due to this, at client side, the total becomes (200/1000) then progress bar should be changed accordingly.

if its not provided by telerik, can you please guide how to achieve the same.

Alex Hajigeorgieva
Telerik team
 answered on 10 Mar 2017
10 answers
272 views

I have a spreadsheet, with a datasource which retches remote data. When I sort the spreadsheet and edit row 2 (which was originally row 100), the datsource thinks that I have edited row 100. Is there a solution to this?

Marc

Marc
Top achievements
Rank 1
 answered on 10 Mar 2017
1 answer
141 views

As the titles says, you can try it for your self in your own demo, http://demos.telerik.com/kendo-ui/grid/editing-popup with an IPad.

Open the popup for editing and you can still scroll the grid in the background. You can also try to move the popup, but instead you scroll the grid.

This is a big problem if the modal window is so big that you have to move/scroll the window. If you try to do that you only scroll the grid behind the modal window and everything seems stuck...

Stefan
Telerik team
 answered on 10 Mar 2017
2 answers
484 views

Hello!

 

We are currently using the Kendo UI Grid component to display data about people. Right now, for each column we can have one or two filters by setting the option extra to 'true'.

 

But now we need more filters. We need to be able to add dynamically more than two filters. Is there an out-of-the-box way to achieve that? Our idea is to add an extra button next to the 'Apply' and 'Clear filter' buttons that allows us to add another filter.

We noticed that the filter are using binding, is there a way to use it to add more filters?

 

Best Regards

Jyothsna
Top achievements
Rank 1
 answered on 10 Mar 2017
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?