Telerik Forums
Kendo UI for jQuery Forum
3 answers
780 views
In our project, we have attached some events to the grid's dataSource.
We are having inconsistent behavior and the only difference between the code is the normal and minified version.

This is what we are doing:

- Create the grid with autoBind disabled
- Update the options of the grid (with some other settings) and set autoBind enabled this time
- We add an item and we press save (which calls the grid.saveChanges()) method.

In the normal version everything is working as expected (we have eventlisteners attached to the requestStart and requestEnd event of the dataSource and they work perfectly).
However, in the minified version, it does not work as it does with the normal version. Our eventlisteners (requestStart and requestEnd) never get called.

Is there any report open about this issue?
I would love to create a Dojo about this issue, but I'm unable to insert an item into your example datasource.

Regards
Alexander Valchev
Telerik team
 answered on 30 Jan 2015
1 answer
138 views
Hello,

I am attempting to create new data elements using drag and drop. When I add shapes directly to the diagram in the drop function and set the position the shape shows up at the expected location. However, I want to be able to create new data items and add them to the data source instead. I use the change function to set the position of the new element when it is added, however after this event fires the diagram reorders all of the elements in a line. I have created a sample in the Dojo: http://dojo.telerik.com/iMoja

Is there a property that I need to set to ensure this doesn't happen?

Thanks
Daniel
Telerik team
 answered on 30 Jan 2015
9 answers
335 views
I need to know how to build a multi-level menu from an XML data source.   Right now the child elements are appearing in the main level.

My JavaScript:
var template_navigation_menu = kendo.template('<li><a href="#=url#" target="#=target#" title="#=title#">#=text#</a></li>');

var navigation_menu = $("#navigation_menu").kendoMenu();
$(document).ready(function () {
    function navigation_menu_render()
    {
        $("#navigation_menu").html(kendo.render(template_navigation_menu, this.view()));
    }
 
    var datasource_navigation_menu = new kendo.data.DataSource(
    {
        transport:
        {
            read: "xml/navigation" + get_culture_path_modifier() + ".xml"
        },
        schema:
        {
            type: "xml",
            data: "/navigation/menu/item",
            model:
            {
                fields:
                {
                    item_id: "item_id/text()",
                    parent_id: "parent_id/text()",
                    text: "text/text()",
                    url: "url/text()",
                    target: "target/text()",
                    title: "title/text()",
                    google_sitemap_priority: "google_sitemap_priority/text()",
                    google_sitemap_frequency: "google_sitemap_frequency/text()",
                    main_inclusion: "main_inclusion/text()",
                    footer_inclusion: "footer_inclusion/text()"
                }
            }
        },
        change: navigation_menu_render
    });
 
    datasource_navigation_menu.filter({ field: "main_inclusion", operator: "eq", value: "true" });
    datasource_navigation_menu.read();
});


My XML Data Source:
<?xml version="1.0" encoding="utf-8" ?>
<navigation>
    <menu>
        <item>
            <item_id>1</item_id>
            <parent_id>0</parent_id>
            <text>Home</text>
            <url>/</url>
            <target>_top</target>
            <title>Click here to return to the Home Page.</title>
            <google_sitemap_priority>1.0</google_sitemap_priority>
            <google_sitemap_frequency>daily</google_sitemap_frequency>
            <main_inclusion>true</main_inclusion>
            <footer_inclusion>true</footer_inclusion>
        </item>
    </menu>
    <menu>
        <item>
            <item_id>2</item_id>
            <parent_id>0</parent_id>
            <text>Item 1</text>
            <url>/item.html</url>
            <target>_top</target>
            <title>Click here to view item 1.</title>
            <google_sitemap_priority>0.8</google_sitemap_priority>
            <google_sitemap_frequency>daily</google_sitemap_frequency>
            <main_inclusion>true</main_inclusion>
            <footer_inclusion>true</footer_inclusion>
        </item>
    </menu>
    <menu>
        <item>
            <item_id>3</item_id>
            <parent_id>0</parent_id>
            <text>Item 2</text>
            <url>/item.html</url>
            <target>_top</target>
            <title>Click here to view item 2.</title>
            <google_sitemap_priority>0.5</google_sitemap_priority>
            <google_sitemap_frequency>daily</google_sitemap_frequency>
            <main_inclusion>true</main_inclusion>
            <footer_inclusion>true</footer_inclusion>
        </item>
    </menu>
    <menu>
        <item>
            <item_id>4</item_id>
            <parent_id>0</parent_id>
            <text>Item 3</text>
            <url>/item.html</url>
            <target>_top</target>
            <title>Click here to view item 3.</title>
            <google_sitemap_priority>0.8</google_sitemap_priority>
            <google_sitemap_frequency>weekly</google_sitemap_frequency>
            <main_inclusion>true</main_inclusion>
            <footer_inclusion>true</footer_inclusion>
        </item>
    </menu>
    <menu>
        <item>
            <item_id>5</item_id>
            <parent_id>0</parent_id>
            <text>Footer-Only Item 1</text>
            <url>/item.html</url>
            <target>_blank</target>
            <title>Click here to view item.</title>
            <google_sitemap_priority>0.3</google_sitemap_priority>
            <google_sitemap_frequency>monthly</google_sitemap_frequency>
            <main_inclusion>false</main_inclusion>
            <footer_inclusion>true</footer_inclusion>
        </item>
    </menu>
    <menu>
        <item>
            <item_id>6</item_id>
            <parent_id>0</parent_id>
            <text>Footer-Only Item 2</text>
            <url>/item.html</url>
            <target>_blank</target>
            <title>Click here to view item.</title>
            <google_sitemap_priority>0.3</google_sitemap_priority>
            <google_sitemap_frequency>monthly</google_sitemap_frequency>
            <main_inclusion>false</main_inclusion>
            <footer_inclusion>true</footer_inclusion>
        </item>
    </menu>
    <menu>
        <item>
            <item_id>7</item_id>
            <parent_id>0</parent_id>
            <text>Item 4</text>
            <url>/item.html</url>
            <target>_top</target>
            <title>Click here to view item.</title>
            <google_sitemap_priority>0.3</google_sitemap_priority>
            <google_sitemap_frequency>monthly</google_sitemap_frequency>
            <main_inclusion>true</main_inclusion>
            <footer_inclusion>true</footer_inclusion>
        </item>
    </menu>
    <menu>
        <item>
            <item_id>8</item_id>
            <parent_id>7</parent_id>
            <text>Item 4 - Sub Item 1</text>
            <url>/subitem.html</url>
            <target>_top</target>
            <title>Click here to view sub item.</title>
            <google_sitemap_priority>0.3</google_sitemap_priority>
            <google_sitemap_frequency>monthly</google_sitemap_frequency>
            <main_inclusion>true</main_inclusion>
            <footer_inclusion>true</footer_inclusion>
        </item>
    </menu>
</navigation>
Ashok
Top achievements
Rank 1
 answered on 30 Jan 2015
2 answers
236 views

Hello,

We have a Kendo Grid UI that is databound with a remote JSON.
We want to use the build-in Popup window to add and edit a row.
Now there is one value that needs to be bound to a treeview.
The treenode with the ID of the databound Item should be preselected.
The new value of the selected node should be submitted to the webservice.
Neither is happening.

The TreeView is correctly shown. But is not selecting the right node.



Here my code :
/*
1 PART of the Grid
*/

editable: {
                    mode: "popup",
template: kendo.template($("#popup-editor-werkaanvraag").html())
                    },
  edit: function(e){
  var inlineDefault = new kendo.data.HierarchicalDataSource({
                                data: [
                                    {text: "KK",id:0, items: [
                                            {text: "Hoofdgebouw",id:150},
                                            {text: "Pav 1",id:151},
                                            {text: "Pav 2",id:152}
                                        ]},
                                    {text: "SRF",id:1, items: [
                                            {text: "Bed Linen",id:154},
                                            {text: "Curtains & Blinds",id:155},
                                            {text: "180",id:180}
                                        ]}
                                ]
                            });
         }
  var treeview = e.container.find(".nested-treeview").kendoTreeView({
                                dataSource: inlineDefault
                            });

     } 


/*
2 PART of the Template
*/

  <script id="popup-editor-werkaanvraag" type="text/x-kendo-template"> 
<div style="width:800px" date-role="treeview" class="nested-treeview"  data-bind="value:locatie_id" ></div>
  </script>

Gert
Top achievements
Rank 1
 answered on 30 Jan 2015
5 answers
585 views
I have an application that has many grids in it.
Basically, a single script needs to be called every time dataBound has been called without exception. 
How can I accomplish this?
It would be nice to be able to override the dataBound event for all the grids.
A simple solution would be a chain where my method would call the base implementation.
Dimo
Telerik team
 answered on 30 Jan 2015
6 answers
2.0K+ views
I am attempting to put a 'Step' onto a NumericTextBoxFor.  Intellisense tells me to use a decimal value; however, using a decimal value throw an error:

@Html.Kendo().NumericTextBoxFor(model => model.MyProperty).Step(0.01)
It doesn't like the 0.01.  If I put an integer value (ex: 1), it does not give an error.  Why does it not like the decimal values?  
Alexander Popov
Telerik team
 answered on 30 Jan 2015
2 answers
295 views
Hi to all Telerik Team,

Good day!

I would like to ask about my issue in Kendo Upload Progress Bar, I'm using 1E-11, and progress bar is working,
but sometimes, if didn't touch the browser for 3 minutes and start to upload a file, the progress bar percentage value become 105%
and it hangs and never finished. But when I refresh the browser and try to upload the file again it works well.

Can you provide me a solution for this? I really need to finish this task.

Thank you and God bless.
Dimiter Madjarov
Telerik team
 answered on 30 Jan 2015
1 answer
586 views
Hi All;
I am using server side paging and I set my grid to show column sum at the column`'s footer. However, it calculates the sum data for each page. I want to calculate it for all page at once and show it in footer.
Is there a solution to do this?
Petur Subev
Telerik team
 answered on 30 Jan 2015
3 answers
79 views
How do I get the new style/icon for the Filter Row?  Here is the link to the example:

http://demos.telerik.com/aspnet-mvc/grid/filter-menu-customization

Dimo
Telerik team
 answered on 30 Jan 2015
1 answer
119 views
The reorderable and resizable options of the grid do not work when hosted inside the IE webbrowser control. The same page (index.html) when loaded in IE and other browsers works fine.
Nikolay Rusev
Telerik team
 answered on 30 Jan 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?