Telerik Forums
Kendo UI for jQuery Forum
1 answer
107 views
I wonder how people are storing the treeview in the database (table's, structure) and what queries they use for the 'crud' actions.

Cheers!
ringo
Top achievements
Rank 1
 answered on 30 Mar 2015
1 answer
277 views
Hi,
In this example: http://demos.telerik.com/kendo-ui/combobox/api

If I set the ReadOnly true, I cannot anymore select from the combo. Is this the default behavior?

Thanks
Kiril Nikolov
Telerik team
 answered on 30 Mar 2015
2 answers
143 views
Situation:
Treeview with a 'remote' HierarchicalDataSource and autosync set to true.
Transport used: read/update/create/destroy

When adding a node it shows up in the treeview but no remote call (create you would expect) is made even after manually calling sync on the datasource.

Do I miss a step here ?


Another issue is when drag and drop a item in the treeview, it's calling the destroy transport. Is that normal ?

Cheers.
ringo
Top achievements
Rank 1
 answered on 30 Mar 2015
1 answer
238 views
Hello,

Say we have a treeview with a structure like:

- Main folder
     - option 1 
    -  option 2


What does Kendoui expect back with an remote update call when we update the text 'main folder' name to 'my folder' ?
All 3 nodes / only the main folder node or something else ?

Same question for updating option 1: all 3 nodes or only the updated node ?

Would also be nice to know this for create and delete as well. A php backend example for crud would be great.








ringo
Top achievements
Rank 1
 answered on 30 Mar 2015
4 answers
232 views
Hi,
I've come accross a very strange behavior of multiselect wrapper in a certain situation. I'm either not using the control properly or maybe it could be a wrapper bug.
The model contains two properties:
 - ItemIds (to be Posted back on submit)
 - Items (contains complete objects, with all properties for presenting like Code, Name and Id)

The initially preselected Model.Items are directly put into the code on the server, rest of items user can select is loaded via AJAX.

@(Html.Kendo().MultiSelectFor(x => x.ItemIds)
        .DataValueField("Id")
        .TagTemplate("#:data.Code# - #:data.Name#")
        .ItemTemplate("#:data.Code# - #:data.Name#")
        .AutoBind(false)
        .Value(Model.Items)
        .DataSource(d => d.Read(r => r.Action("GetItems", "ItemService").Data("getAdditionalData"))
        .ServerFiltering(true))
)

So, when the page is loaded, the MultiSelect contains some initially preselected items (properly serialized as objects in the javascript code), we can add some more, post them back. So far so good.

But - when we add some validation (no matter which control contains invalid data) and the ModelState in the controller becomes invalid, the javascript serialization of the .Value(Model.Items) doesn't serialize all object properties (like Code, Name and Id) but only the Id property. So there are no initially preselected items in the multiselect.
I'm 100% sure the Model.Items contains all the information in both situations - no matter if the model state is valid and invalid. 

I've also a workaround for this problem. Do not use the wrapper - use the javascript and serialize the Model.Items manualy like this:

01.$(selector).kendoMultiSelect({
02.                "dataSource": {
03.                    "transport": {
04.                        "read": {
05.                            "url": "/ItemService/GetItems",
06.                            "data": getAdditionalData
07.                        },
08.                        "prefix": ""
09.                    },
10.                    "serverFiltering": true,
11.                    "filter": [],
12.                    "schema": { "errors": "Errors" }
13.                },
14.                "itemTemplate": "#:data.Code# - #:data.Name#",
15.                "tagTemplate": "#:data.Code# - #:data.Name#",
16.                "autoBind": false,
17.                "dataValueField": "Id",
18.                "value": @Html.Raw(Json.Encode(Model.Items))
19.            });

But this workaround complicates other things and I really would prefer to use the wrapper instead of this. 

Thanks,

Ori
Ori
Top achievements
Rank 1
 answered on 30 Mar 2015
1 answer
149 views
Text formatting doesn't work properly if I have a long message in the editor.

Entered a long message. Tried formatting the text with option bold, italics and adding a hyperlink and then the editor starts failing with a lot of amp;amp;amp;amp;amp;amp;amp;amp;gt;  for example.

If i try to apply similar formatting with smaller text it works fine.

Regards
Alex Gyoshev
Telerik team
 answered on 30 Mar 2015
1 answer
174 views
I am going to use kendo ui. From a clean start, what should I consider when choosing MVVM framework?
Is there any inherent advantages of one over the other?
Does it depend on my usage of kendo ui?
Will Telerik be more likely to fix any bugs in their own if I have any issues? Does that even matter?

Any help or guidance is appreciated! Thank you!
Petyo
Telerik team
 answered on 30 Mar 2015
5 answers
375 views
Hi,

I have a read-only grid where I am using .READ method to fetch data from the database and show it on screen. The grid has a scrollbar. I want the grid to auto scroll to the end so that the last record is visible on screen.

Please help.

Regards,
Sanjay
Sanjay
Top achievements
Rank 1
 answered on 30 Mar 2015
7 answers
1.2K+ views
Hi,
    I have a requirement to create a Hierarchical grid in which I should be able to add new rows and the child grid should be added as well.When adding a new row I dont want the detailinit property to be run as many times as the number of rows is present. I only want to add asingle row to the existing grid and leave it intact.
I am implementing this in HTML. So please do give a solution for the HTML based one.
Thanks in advance
Regards,
Vijay
Alexander Valchev
Telerik team
 answered on 30 Mar 2015
1 answer
448 views
Browser is chrome 41.0.2272.101 m
OS is Windows 7
jquery is 2.1.3
kendo UI is v2015.1.318


When I load the following content (in two files, in the page and in a js file), the following is the result:

# var myCustomVariable = "foo"; #
#= myCustomVariable #
Bob
Jim
Anton


This is a much simplified version of what I was trying to do, but demonstrates the issue (the original problem I was running into was getting this literal hash template output while trying to call render a function that had kendo.Template.compile($('#myTemplate').html())(data);... but this is a simpler version of the same problem).

From what I can tell from documentation (from which the hash template is lifted) it should work. As well, it seems like the template is running and connected properly (since the remainder output all seems to be executing as expected). I couldn't find any forum or other posts on this topic and no errors are being thrown... It just seems to be completely ignoring the hash template directives and rendering as literals (although I have other scenarios where hash templates do work, but this scenario seems like it should too).

Is there something I'm missing here? This seems pretty straightforward but...


PAGE CONTENT:

<div id="application"></div>

    <script type="text/x-kendo-template" id="layout-template">
        <div id = "wrapper" > 
            <div id="main-section">
                <section id="content"></section >
            </div>
        </div>
    </script>

    <script type="text/x-kendo-template" id="index-template">
        # var myCustomVariable = "foo"; #
        <p>
            #= myCustomVariable #
        </p>
        <ul data-role = "listview" data-bind = "source: items.customers" data-template = "item" id = "main"> 
        </ul>
    </script>

    <script type="text/x-kendo-template" id="item">
        <li> 
            <span data-bind = "text: customerName"> </span>
        </li>
    </script>




SCRIPT FILE:
 
var custList = kendo.observable({
    customers: [{
        customerName: "Bob",
        notes: "Wants his order by Saturday"
    }, {
        customerName: "Jim",
        notes: "Owes us $300"
    }, {
        customerName: "Anton",
        notes: "2 items outstanding on last order"
    }]
});

var layoutModel = kendo.observable({

});

var indexModel = kendo.observable({
    items: custList
});

var layout = new kendo.Layout("layout-template", {
    model: layoutModel
});

var index = new kendo.View("index-template", {
    model: indexModel
});

var poc = new kendo.Router({
    init: function () {
        console.log("router init")
        layout.render("#application");
    }
});

poc.route("/", function () {
    console.log("router root route")
    layout.showIn("#content", index);
});

$(function () {
    poc.start();
});
p



Petyo
Telerik team
 answered on 30 Mar 2015
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)
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?