Telerik Forums
Kendo UI for jQuery Forum
3 answers
422 views
I'm using the Kendo UI Web Editor to allow the user to add formatted content.

I then save this content to a MySQL database.

What is the correct way to load such content to the editor again to allow for further editing?

I tried
editor.value("<?=$html;?>");
and
editor.paste("<?=$html;?>");
Where $html is the string with the HTML from the MySQL-database. However this causes the editor to be blank (no content) and for the editor widget to not initialize (it is only shown as a blank textarea).
Robin
Top achievements
Rank 1
 answered on 26 Feb 2013
1 answer
432 views
A treeview TV uses a remote hierarchical data source.

A button click on the page launches some ajax whose done() handles an array of node data that is returned.
nodes =
[ { id:101, text: "One", hasChildren: true }
, { id:201, text: "Two", hasChildren: true }
, { id:301, text: "Three", hasChildren: false }
]
The nodes are nested as follows
for (var i=1;i<nodes.length;i++) {
   nodes[i-1].items = [ nodes[i] ];
}
and appended to a treeview
TV.append ( nodes[0] );
The treeview appends them correctly as
One
 +- Two
     +- Three
However, the problem is that the children dataSources for nodes One and Two do not get updated.  The top level dataSource of TV does have get updated.  I stepped through get() using developer tools and saw that the method was properly descending into the children dataSources to locate the target value... it just wasn't there :(
uid101 = TV.dataSource.get(101); // some uid
uid201 = TV.dataSource.get(201); // undefined
uid301 = TV.dataSource.get(301); // undefined
I have also tried doing a series of appends (using the original unnested data) and had a similar to worse problem (the TV nodes don't even get placed at the correct levels).
parent = null;
parent = TV.append ( nodes[0], parent );
parent = TV.append ( nodes[1], parent );
parent = TV.append ( nodes[2], parent );

Can you suggest a technique that works for adding a new 'path' of nested nodes to TV from with my done() handler ?
Petur Subev
Telerik team
 answered on 26 Feb 2013
3 answers
327 views
Is negation in the filter supported?

I need to do something on the lines of:
dataSource.filter({ field: "firstname", operator: "not startswith", value: "foo" });
Rosen
Telerik team
 answered on 26 Feb 2013
1 answer
155 views
I have to follow all steups in documentation but its raise error while control is running i.e Microsoft JScript runtime error: Object doesn't support property or method 'kendoDateTimePicker'. reply ..
Atanas Korchev
Telerik team
 answered on 26 Feb 2013
2 answers
786 views
Hi I've been testing the ASP MVC and didnt find a way to use the grid edit inline with a field with dropdown list. is this possible? Even on the samples provided i've adapted the sample "Editing_Custom" to be Inline edit and get the same error which is "Uncaught ReferenceError: Employee is not defined "

Sorry, didnt mentioned initially, but the goal is to use the Inline edit, and i get the error when a new row is added to the grid. 

Thanks in advance. 
Congrats for your products.
Ricardo
Top achievements
Rank 1
 answered on 26 Feb 2013
2 answers
357 views
Hi,

I am trying to load a html form just below the kendo grid for edit from the selected Kendo Grid row. I am able to get the selected grid row using events and dataitem. ( var dataItem = this.dataItem($(e.currentTarget).closest("tr"));)

How do we bind it to the editable html form? Do we have any functionality like gridtoform? Is there any demo related to this?
Saran
Top achievements
Rank 1
 answered on 25 Feb 2013
1 answer
106 views
Hello Kendo Admin,

            Scenario;
                          I'm using a  listview and  after it loads the page on  my android 2.3.3.  I have noticed that the ">" on the grid sometimes shows up and sometimes DOESN'T shows up.

             Problem: 
                        I've notice that when the ">" sign on the grid doesn't shows up. The listview is LOCK and I can't navigate to other pages.  But, when it shows up. I can navigate to othere pages and works smoothly.   I have NO CONTROL  on why is this happend? 


             I have attached the screen shot and it's in listview.zip.  The source code is in index1.zip.


   Please help..

Thanks
Alexander Valchev
Telerik team
 answered on 25 Feb 2013
2 answers
208 views
I tried to follow Cascading ComboBoxes, but I cannot make it work. The code is as follows...

<input id="cmb21a" />
<input id="cmb21b" />
 
<script>
    $("#cmb21a").kendoComboBox({
       dataTextField: "name",
       dataTextValue: "parentID",
       dataSource: {
          data: [
                  { parentID: 1, name: "P1" },
                  { parentID: 2, name: "P2" },
                  { parentID: 3, name: "P3" }
          ]
       }
    });
 
    $("#cmb21b").kendoComboBox({
       cascadeFrom: "cmb21a",
       dataTextField: "name",
       dataTextValue: "id",
       dataSource: {
          data: [
                  { parentID: 1, id: 11, name: "P1a"},
                  { parentID: 1, id: 12, name: "P1b" },
                  { parentID: 1, id: 13, name: "P1c" },
                  { parentID: 2, id: 21, name: "P2a" },
                  { parentID: 2, id: 22, name: "P2b" },
                  { parentID: 2, id: 23, name: "P2c" },
                  { parentID: 3, id: 31, name: "P3a" },
                  { parentID: 3, id: 32, name: "P3b" }
          ]
       }
    });
 </script>
Something seems to be missing. After loading the first combobox contains all data, the second combobox is disabled. When selecting a value from the first combobox, the second combobox shows a spinning icon, looping forever.

Michael G. Schneider
mgs
Top achievements
Rank 1
 answered on 25 Feb 2013
2 answers
74 views
Hello,

I have a page that incorporate the scroller and it seems not to be working on windows phone 7.5 in internet explorer.

is it the intended behaviour?
Frederic
Top achievements
Rank 1
 answered on 25 Feb 2013
2 answers
187 views
We have a DataSource bound to remote service. If we call the query function from one view, and then navigate to a view that has a ListView that auto-binds to the same DataSource, it always calls the remote service again, even if the DataSource already has data loaded. We would expect it to bind to the DataSource and use the data that is already loaded, rather than make the same call back to the remote server again.

We have found a workaround, in that we can disable auto-binding and call the refresh function on the ListView in the init event of the view, but that does not seem ideal, when really all we want it to do is auto-bind the ListView to the DataSource, and only fetch data if it is not loaded yet.

Jonathan Marston
Jonathan M
Top achievements
Rank 1
 answered on 25 Feb 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?