Telerik Forums
Kendo UI for jQuery Forum
46 answers
283 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
226 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
191 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
281 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
81 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
243 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
328 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
488 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
7 answers
218 views
Hi,

I'm using a multi select within a Kendo window.  The Kendo window is configured in iFrame mode.  In IE10 (only IE10) the multi select renders outside of the window.  Other browsers don't seem to have this problem.

Here is a screen clip of the issue:
http://gregferguson.net/images/filezilla-ie10.PNG

Here is a JS Fiddle:
http://jsfiddle.net/u97tP/2/

Thanks,
Greg
Georgi Krustev
Telerik team
 answered on 20 Jun 2013
3 answers
209 views
I'm trying to create (in a navbar) a drop-down menu using a mobile button and popover.  The button-styling works fine, but I cannot seem to add the image inside the button; the best I have gotten is to leave it to the right (and out outside) of the button.

Here is a jsfiddle
http://jsfiddle.net/raltman/LCh3E/1/

What is the best approach for making this work correctly?
Robert
Top achievements
Rank 1
 answered on 19 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
Drag and Drop
Application
Map
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
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
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
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
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
LLM Kit
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?