Telerik Forums
Kendo UI for jQuery Forum
9 answers
188 views
Hello Atanas,

this is a new post, describing the problem that we started to talk about in the "definition file for Typescript" thread.

Create a simple Typescript file test1.ts and compile for AMD
export var NAME = "mike";
Create another Typescript file test2.ts with a shortened version of your code. It compiles perfectly.
/// <reference path="kendo.all.d.ts" />
 
module kendo.data.binders {
    export class custom extends Binder {
      constructor(element: Element, bindings: { [key: string]: Binding; }, options?: any) {
         super(element, bindings, options);
      }
   }
 }
Now create another Typescript file test3.ts. Regarding your code it is the same as test2. It additionally imports test1.
/// <reference path="../dts/kendo.all.d.ts" />
 
import T1 = module("test1");
 
module kendo.data.binders {
   export class custom extends Binder {
      constructor(element: Element, bindings: { [key: string]: Binding; }, options?: any) {
         super(element, bindings, options);
      }
   }
}
Now there are problems, not being able to find Binder, Binding, etc.

Michael G. Schneider
Atanas Korchev
Telerik team
 answered on 20 Jun 2013
1 answer
354 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
306 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
192 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
189 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
162 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
198 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
281 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
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Map
Drag and Drop
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
SPA
Filter
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
OrgChart
TextBox
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
Popover
DockManager
FloatingActionButton
TaskBoard
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
TimePicker
DateTimePicker
RadialGauge
ArcGauge
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?