Telerik Forums
Kendo UI for jQuery Forum
1 answer
349 views
Is it possible to change the bar color when a bar is clicked?  If I have 5 orange bars I want to click on one and have it turn blue.  Then if I click a different one the blue one turn orange and the new clicked one turns blue.  Is this possible without having to generate the entire chart?
Iliana Dyankova
Telerik team
 answered on 20 Jun 2013
1 answer
303 views
  Hi All,

How to achieve the grid containing check- box   for selection and textbox  to get input as attached in screen.

so  user will input the value in textbox and selected the row using checkbox and click save button.


I am using MVC4+kendo ui grid.

Dimiter Madjarov
Telerik team
 answered on 20 Jun 2013
46 answers
191 views
When reading the documentation I rather often do not know, what datatypes are expected as parameters or which datatype is returned from a method call. I appreciated, if these details were given in the documentation.

Let me make an example. Look at TreeView expand method. The parameter is described as "nodes Selector". What does this mean? Is it a jQuery selector such as "#tree" or "div.tree"? Or is this an DOM object or maybe a jQuery object? The samples show that probably both a selector or a DOM object can be given to the method. If this is so, I would like to read it in the documentation.

A user might also try to find out about method parameters by looking at the TypeScript definition. There he will find...
class TreeView extends kendo.ui.Widget {
    expand(nodes: string): void;
}
Probably this is not correct, as the samples show that also a DOM object can be expanded.

Michael G. Schneider
Atanas Korchev
Telerik team
 answered on 20 Jun 2013
1 answer
187 views
Before I dig too deep into it, I'd like to know if the following is possible on a menu.

I have a static background I must use, then on top of it I need a flat 1 level hierarchical menu that looks like this:

Canada  England Brazil
Toronto Halifax Vancouver Calgary Montreal

As the use clicks or hovers over a country, the cities appear below and can be selected.

1) Can all the UI elements (borders, shading etc) be removed (I have a background I must use)
2) Can the menu go horizontal as per example above?

Iliana Dyankova
Telerik team
 answered on 20 Jun 2013
12 answers
160 views
There is a weird behavior of the button control when trying to test it on android all other platforms everything works well except when trying to mouse hover or click the button an error will occur "cannot call the method call of undefined in kendo.all.min.js"

The weird thing is if i host the application on an http server the error triggers however if i open it from a local file "file:///" nothing happens it works well.

PS: am using your download demo files , file name is "appearance.html" kendo version is  2013.1.514.

Error Details : Uncaught TypeError: Cannot call method 'call' of undefined kendo.mobile.min.js:10arguments.length.t.(anonymous function)kendo.mobile.min.js:10b.event.dispatchjquery.min.js:3v.handlejquery.min.js:3
Kiril Nikolov
Telerik team
 answered on 20 Jun 2013
5 answers
234 views
Tried to do so in many ways, but it always seems to be attached to the bottom of the list view and scrolled out of view when we have a lot of items.

Any suggestion would be appreciated.
Kiril Nikolov
Telerik team
 answered on 20 Jun 2013
1 answer
66 views
If I want to integrate kendoui web widgets into mobile for use on mobile platform , is it possible ?  
for example , panelbar widget and slider maybe very common useful for mobile ,  do you have any documents to follow ? 
btw ,  how to change  of  theme of   kendoui web widgets  same as mobile original style ?

Sebastian
Telerik team
 answered on 20 Jun 2013
1 answer
196 views
Hello,
           I am opening a modal view when a tabstrip item is selected as shown in the screenshot (Show Modal.png).

In the select method of kendo ui mobile tabstrip I am
preventing  the default event propagation i.e, to show the modal view by using e.preventDefault(),  to show a confirmation dialog box as shown in the screenshot(Prevent Default Action.png). 

Code:-

<div id='modal_tabs' data-role="tabstrip" data-select='tabChange'>
  <a href="#index" data-icon="custom">Home</a>
</div>
function tabChange(e){
                   if (someCondition) {
                        e.preventDefault();
                      showConfirmation(showPopUpMsg, 'Unsaved changes', doTabActiveOnOK); // show confirmation dialog box
                   }
               doTabActiveOnOK = function(button){   // callback function
                      if (button == true) { //  if ok button is pressed
                                 $("#modal_tabs").data("kendoMobileTabStrip").select(1);  // not supported
                            }
                }
}
If  'ok'  button is pressed on the confirmation dialog I want to perform the default action again(to show the modal) or select the tabstrip manually.  How to perform this task?

 Thanks,
Dave.
Petyo
Telerik team
 answered on 20 Jun 2013
1 answer
280 views
Why is my grid still empty even though the datasource response is getting populated?

Controller method:
[HttpGet]
  public ActionResult Search([DataSourceRequest] DataSourceRequest request)
  {
      DataSourceResult result = new DataSourceResult();
 
      var data = new[] {
          new { PartID=1, PartNumber="ABC123", Description="Part One" },
          new { PartID=2, PartNumber="XYZ879", Description="Part Two" },
          new { PartID=3, PartNumber="ZZZ999", Description="Part Three" },
      };   
 
      result = data.ToDataSourceResult(request);
      return Json(result, JsonRequestBehavior.AllowGet);
  }
Client:
var dataSource = new kendo.data.DataSource({
      transport: {
          read: {
              serverPaging: false,
              serverSorting: false,
              url: "@Url.Action("Search", "PartMaster")",
              dataType: "json",
              type: "GET"
          },
          schema: {
              data: "Data",
              model: {
                  fields: {
                      PartID: { type: "number" },
                      PartNumber: { type: "string" },
                      Description: { type: "string" }
                  }
              }
          }
      },
      requestEnd: function (e) {
          var response = e.response;
          var type = e.type;
          console.log(type);
          console.log(response.length);
      }
  });
 
  function dataSourceError(e) {
      console.log(e.status);
  }
   
  dataSource.bind("error", dataSourceError);
   
  $("#resultsGrid").kendoGrid({
      dataSource:dataSource,
      height: 600,
      scrollable: true,
      sortable: true,
      columns: [{ field: "PartID" }, { field: "PartNumber" }, { field: "Description" }],
      dataBound: function (e) {
          console.log(e);
      }
  });

Atanas Korchev
Telerik team
 answered on 20 Jun 2013
3 answers
438 views
To add an element to a kendo data source i used the .add() method. Similarly i want to update and remove an element in the data source.

I looked through the documentation for the data source and could not find .update()/.edit()/.destroy() methods. Can you please advise.
Kiril Nikolov
Telerik team
 answered on 20 Jun 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?