Telerik Forums
Kendo UI for jQuery Forum
1 answer
101 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
122 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
430 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
259 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
648 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
929 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
1 answer
55 views
My form looks like this:

datepicker
autocomplete1
autocomplete2
dropdownlist1
dropdownlist2
textbox1
textbox2

I can tab thru all the controls on a PC, it works perfectly.  However on my iPad, using the previous/next buttons, it skipps the two dropdownlist.  It will go directly from the second autocomplete to the first textbox or the other way around if I'm going backwards.  The dropdownlist are never selected.  Is this because you can't type in a dropdownlist?  I guess it would make sense because on the iPad there isn't really anything you can do from the keyboard with a dropdownlist, you have to touch it.  If that's the case it's fine I just want to make sure.
Georgi Krustev
Telerik team
 answered on 18 Mar 2013
1 answer
406 views
I have:
1. Grid with clientbinding and popup editing
2. On popup window I have a ComboBox with client binding

As I guess, ComboBox is connected with Model in grid row. And then I change selection in ComboBox manually, this changes go to Model.
But, if I change ComboBox value with method value(t), Model in grid doesn't change (dirty = false). So, if I click Update Button on popup Window - nothing happened.
I've tried to fire "change" event (...trigger("change")) with value(t), but in doesn't work too.

P.S. Do you speak Russian? )
Petur Subev
Telerik team
 answered on 18 Mar 2013
1 answer
83 views
Hello All,

    I am facing weird designing issue in Grid.
    When i click on first column of grid and then continuously press TAB key, so only grid header row can move but detail records of grid doesn't move.
    Please see attachment details. 


   Thanks in an advance.

Eric,
Petur Subev
Telerik team
 answered on 18 Mar 2013
2 answers
275 views
Hi,

I have implemented NumericTextbox from Kendo-UI-web controls.

Case-1: I just want that when user enters an amount (e.g. 9000) more than allowed max. amount (e.g. 5000), then on lost focus of the input the entered amount (i.e. 9000) is replaced with max. allowed amount (i.e. 5000) by kendo UI. Hence my RangeValidator from Data-annotation doesn't get fired anytime. Our client wants that validation instead of automatic replacement. Please guide us how to achieve this.

Case-2: As the kendo-JS hides the original input and places another to show. This behavior prevents RequiredValidator from data-annotations to get fired at client-side, which is badly required by our client. Please guide us how to achieve this.

Feel free if you find any difficulty to understand above mentioned case studies.

Waiting for quick reply,

Thanks in advance,
PSSPL
Songbackerteam
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
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
DropDownTree
ListBox
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
Styling
ColorPicker
Pager
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
Licensing
PivotGridV2
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
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?