Telerik Forums
Kendo UI for jQuery Forum
2 answers
796 views
Hi,

I have a series of tabs in my interface, and notifications belong in each.
So for this, I really need to insert my notification into the DOM of the TAB (which has it's own HTML content) - in order to show it "within that area"

Is this what the "appendTo" method is supposed to be used for?
I realize it says "Defines the element to which the notifications will be appended or prepended"
But why would you use it?

I'm asking because I cannot seem to get appendTo working, when I use it, my notification doesn't appear at all, and I just need a sanity check as to whether I should be bothering to use this to "position" the notification in the first place.
Dimo
Telerik team
 answered on 30 Mar 2015
1 answer
129 views
validation: {
                            pattern: {
                                value: "^\d+([ ](SS|FS|SF|FF))?([+]\d+)?([(]\d+[)])?[*]?$",
......



this is my string value   1 SS+1(1)*  

Why it is wrong ???? 

in console   :   /^\d+([ ](SS|FS|SF|FF))?([+]\d+)?([(]\d+[)])?[*]?$/.test( '1 SS+1(1)*' )     that is true .
also I am testing it on web service  https://regex101.com/#javascript    -    that is also true 
Petur Subev
Telerik team
 answered on 30 Mar 2015
1 answer
109 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
286 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
147 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
242 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
238 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
150 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
176 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
385 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
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?