Telerik Forums
Kendo UI for jQuery Forum
3 answers
167 views
The TypeScript definitions for TreeView should be checked. Some seem to be wrong. For example...

  • The parameter's datatype of "collapse" is not string.
  • The parameter's datatype of "expand" is not string,
  • The return datatype of "dataItem" is not void.
Michael G. Schneider
Alex Gyoshev
Telerik team
 answered on 18 Mar 2013
3 answers
218 views
I just updated to 2012.3.1114 and all of my Grid code that uses selectable: "row" and a change: function do not work??

I click a row or cell in the Grid and nothing happens - no event is fired.

The on-line demo for Grid selection does not use a change function so hard to tell if something has changed?

This is a big issue for me .. please can you tell me if this is a bug or has something changed with row selection / change ?

UPDATE:

This appears to be a CHROME issue on Windows 8.  Running the same code in IE10 works....
Nikolay Rusev
Telerik team
 answered on 18 Mar 2013
1 answer
106 views
I was asked this question by coworkers, and wanted to check my thoughts with you all, and ask if you have any others.

One obvious answer is that if we're using Kendo UI components frequently, this has the advantage of making our own both consistent and familiar.

I think the most important answer, though, is that by doing so we'll have access to all the framework features of the kendo components, which your site lists as: "Datasource, Templates, MVVM, Effects, Drag and Drop, Validator, Globalization, Styling, Integration." Are all of those Kendo features in fact available to custom widgets that have extended kendo.ui.widget?

Any other thoughts about a good response/justification to the question?

Thanks in advance,

Jon
Petyo
Telerik team
 answered on 18 Mar 2013
17 answers
382 views
As I find Kendo UI extremely well fitted for me and I love many things about it I have crucial concerns about the following things:

During my trial process I have confronted a series of road blocks. I would like to see what solutions there might be. Please let me know if they have a solution or if I should consider another html5 framework instead. I have been trying to accelerate the speed of transitions between views (screens). How can that be managed? I would like to make the time (delay) of the transitions a bit shorter (faster) and test with different types of transition effects.

Also, I have noticed the response of the touch in rows or buttons is not the way native apps behaves. They have a bit of a delay when you touch something. Native apps will react to the on Release event after a touch and then, after a short delay, do the action. How can that be done with Kendo UI? 

Is there a way of creating charts in mobile Kendo UI? Can you provide some example URLs?
 
Can I make a web URL display inside the mobile web app while keeping the navigation and tab bar? Can I see a PDF file hosted in a URL within the same mobile web app with the navigation bar on top?
 
I have also noticed that using the Google maps API makes the tiles act weird and this only happens with Kendo UI as far as I know. Check out the video included.
Petyo
Telerik team
 answered on 18 Mar 2013
1 answer
95 views
I want to change the grid initialization from javascript to use mostly data attributes

In my js I have the following:
filterable: {
 name: "FilterMenu",
 extra: true,
 messages: {
  isTrue: "On",
  isFalse: "Off"
  }
},
How do I move it to a data attribute?

I have the following now but how do I fill in the messages part?
data-filterable='{
        "name" : "FilterMenu",
        "extra" : "true",
        "messages" : "{
        }"
    }'

Thanks!
Alexander Valchev
Telerik team
 answered on 18 Mar 2013
1 answer
119 views
Hello,

The documentation on the web site is very simple; do you have any documentation on using multiple templated views, and how you would link the views together, and route to them effectively?

Thanks.
Petyo
Telerik team
 answered on 18 Mar 2013
10 answers
420 views
Hi I'm new to kendo and can't get the dragstart function to work.

I keep getting this error when trying to use the dragstart function
"ReferenceError: treeview is not defined", If I do define "treeview"
I get the error, "TypeError: treeview.data is not a function".

this is the function i used:
treeview.data("kendoTreeView").bind("dragstart", function (e) {
    if ($(e.sourceNode).parentsUntil(".k-treeview", ".k-item").length == 0)
    {
       e.preventDefault();
    }
});
This is how I implemented the treeView
<div id="treeView">
   @(Html.Kendo().TreeView()
     .Name( "treeview" )
     .DragAndDrop( true )
     .DataTextField( "Title" )
     .LoadOnDemand( true )
     .DataSource( datasource => datasource
       .Read( read => read
         .Action( "PageList", "Home" )
       )
     )
     .Events( events => events
       .DragStart( "dragstart" )
       )
     )
</div>
and this is my controller code:
public class HomeController : Controller
{
  public ActionResult Index()
  {
    var pageList = BusinessLogic.Page.PageInfoList.Get();
      return View( "Index", pageList );
  }
 
  public JsonResult PageList( int? id )
  {
    var pageInfoList = PageInfoList.Get();
    var pageList = from e in pageInfoList
           where
            (
             id.HasValue ? e.ParentPageId == id : e.ParentPageId == null
            )
             select new
             {
              id = e.Id,
              Title = e.Title,
              hasChildren = (pageInfoList.Any
                    ( p => p.ParentPageId == e.Id ))
             };
 
             return Json( pageList, JsonRequestBehavior.AllowGet );
  }
}

Any help would be much appreciated.

I also need help to bind the items that i drag and drop to the new position.
Vladimir Iliev
Telerik team
 answered on 18 Mar 2013
1 answer
254 views
Hi!

Given this code:
var rightpane = $("#rightPane").data("kendoMobilePane");
rightpane.navigate("#start", "fade");

How do I disable transition? Because default is slide:left yes? I want no transition.

In this post:
http://www.kendoui.com/forums/mobile/application/cosmetic-scrolling-problem-during-view-transitions-ios.aspx#Ou2dAxlhfUuErfuR-LvfcQ
Petyo writes "If this is a critical issue for your application, you may consider disabling the transition for the view in question"

How is it done? Thank you
Alexander Valchev
Telerik team
 answered on 18 Mar 2013
3 answers
638 views
Coming from a jQuery Mobile world when you altered a listview you had to refresh the listview to get things to work. Is there anything I have to do to get dynamically created checkboxes to become selectable? The checkboxes demo works fine but when I try and generate them dynamically they won't allow selected/checked. Below is the sample template I'm trying to use which is simple enough. Thanks for your help.

<script id="position-template" type="text/x-kendo-template">
<li>
    <label>
        <input type="checkbox" value="#= Id #" />
        #= Title #
    </label>
</li>
</script>
Martin
Top achievements
Rank 1
 answered on 18 Mar 2013
7 answers
911 views
I have an issue with my web page that contains Kendo UI grid. In this web page, I have a top portion that uses Knockout. The bottom part of the page is a Kendo UI Grid which is from another partial page (RenderPartial)

...
<fieldset >
<div >
<span id="MyId" class="uneditable-input koeditable" data-bind="text: Name"></span>
</div>
</fieldset>
<section>
@{ Html.RenderPartial("DetailEntries", new ViewDataDictionary {{ "Id", @ViewBag.Id } });}
</section>

DetailEntries is the partial page which is a Kendo ui grid with Filterable() option.

I got an error when rendering this page. 

It happens at this knockout function

// The following function is only used internally by this default provider.
// It's not part of the interface definition for a general binding provider.
'parseBindingsString': function(bindingsString, bindingContext) {
try {
var viewModel = bindingContext['$data'];
var rewrittenBindings = " { " + ko.jsonExpressionRewriting.insertPropertyAccessorsIntoJson(bindingsString) + " } ";
return ko.utils.evalWithinScope(rewrittenBindings, viewModel === null ? window : viewModel, bindingContext);
} catch (ex) {
throw new Error("Unable to parse bindings.\nMessage: " + ex + ";\nBindings value: " + bindingsString);
}
}


Error: 
Uncaught Error: Unable to parse bindings. 
Message: ReferenceError: filters is not defined; 
Bindings value: value: filters[0].operator  

bindingsString : "value: filters[0].operator"
bindingContext: ko.bindingContext which contains the ViewModel for my top portion.

If I remove the filterable option from the Kendo UI grid, the page renders without error.

Please help.

Alex
Erik Stadler
Top achievements
Rank 1
 answered on 18 Mar 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
Drag and Drop
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
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?