Telerik Forums
Kendo UI for jQuery Forum
1 answer
162 views

I have a treeList inside a kendoUI window with a "Close" button, with two HierarchicalDataSource objects (one will load the remote data, one will load local data). 

I change between datasources with .setDataSource().

The first time I will open the window, I will load my data from the remote url source.
I use the dataBound event and $('#treeLIst').data("kendoTreeView").dataSource.data() to dump all the data items and store them in memory if a new item is appended.

Then I will close the window and on close the $('#window').data('kendoWindow').destroy() will run.

If I open the window again I will check if the memory variable has any data and will read from the local HierarchicalDataSource.
I used console.log to see the current HierarchicalDataSource and there are no url settings there so that means that the correct data source is read, but in my Chrome's network tab all the xhr requests from the HierarchicalDataSource being resent. also when I use the .append([dataObject], selectedNode) it will append the data object properly properly but multiplied the times I closed and reopened the kendo window. So if I close and open the window twice, 2 items will be appended and so on...

My guess is that the that the first HierarchicalDataSource is never really destroyed and each time I close and open the window it will be bound to my treeList even if the the treeList element has a totally different id.

Stefan
Telerik team
 answered on 15 Mar 2017
1 answer
245 views

Check the following scenario:

1. Go to the following http://dojo.telerik.com/uwUno

2. Click on "Chai" (first cell)

3. Enter <enter> in keyboard. The grid jumps up.

How can we disable this?

Alex Hajigeorgieva
Telerik team
 answered on 15 Mar 2017
1 answer
5.2K+ views

Is there anyway to overwrite the default styles for this class? I have a stylesheet which includes

 

.k-animation-container {
width: 500px;
max-height: 50%;
overflow: scroll;
}

 

but it is overwritten by something inside Kendo.

I need my validation lists in my spreadsheet to be wider, and it's not possible if the container element has its width set by something inside the Kendo framework.

Thanks!

Dimo
Telerik team
 answered on 15 Mar 2017
3 answers
3.4K+ views

Hi guys,

I have a MVVM grid. it has a save event to update some columns by edit another column, but only while refresh() run they are updated and shown in the grid, which is very not user friendly. Could you tell me how to update these and won't refresh the whole grid so that the scroll won't be moved? Thanks.

Here is my code:

 changeApprovedFOB: function (e) {
        debugger;
        var data = e.model;
        if (e.values.APPROVED_FOB != undefined) {
            data.QUOTATION_PREMIUM_DISCOUNT = data.MANUAL_FOB == 0 ? 0 : (Math.round((data.QUOTATION_FOB - data.MANUAL_FOB) / data.MANUAL_FOB) + "%");

            if (e.values.APPROVED_FOB != 0) {
                data.APPROVED_PREMIUM_DISCOUNT = data.MANUAL_FOB == 0 ? 0 : (Math.round((e.values.APPROVED_FOB - data.MANUAL_FOB) / data.MANUAL_FOB) + "%");
            }

            this.QuotationDataSource.pushUpdate(data);

            $('#Grid').data('kendoGrid').refresh();
        }
        else {
            this.QuotationDataSource.pushUpdate(data);
        }
    }

Tsvetina
Telerik team
 answered on 14 Mar 2017
1 answer
517 views

Hi.

I need to customize clasicall colum menu of grid. Insted of him i need to show his "Filter" - submenu.. But only on some columns. I solved this by cobe below:

             function columnMenuInit(e, data) {
                 var self = this;
                 var field = e.field;
 
 
                 var gridId = "GridODU";
                 self.tr = this.thead.find("[data-field=" + e.field + "]");
 
 
                 if (field !== "Id" && field !== "id" && field !== "DruhPrijmu_Code" && field !== "ZuctovaciSymbol_Code") {
 
                     var menu = e.container.children().data("kendoMenu");
                     var filterMenuOptions = self.tr.data("kendoColumnMenu").filterMenu.options;
 
                     var menuParentWrapper = menu.wrapper;
                     menuParentWrapper.removeAttr('class');
                     menuParentWrapper.attr('class', 'k-reset');
                     menuParentWrapper.html("");
                     menuParentWrapper.append("<li class='customMenu'></li>");
 
                     if (filterMenuOptions.name == "FilterMultiCheck") {
                         menu.wrapper.find(".customMenu").kendoFilterMultiCheck(filterMenuOptions);;
                     } else {
                         menu.wrapper.find(".customMenu").kendoFilterMenu(filterMenuOptions);;
                     }
 
                 }
}

 

This solution works like I expected, but there is problem with doubled request to server for column fiter data. First request is made before columMenuInit event (thid fill with data filter submenu) and inicialization of kendoFilterMenu / kendoFilterMultiCheck in columMenuInit event cause second request.

Is there some way how to do only one request ? Or is there any other solution how to achieve desired behaviour  ?

 

Thanks!

Angel Petrov
Telerik team
 answered on 14 Mar 2017
14 answers
1.2K+ views
I would like to position the tooltip on line graphs to be more directly above the plot point that to the right. Is this possible? How can I accomplish this?
Iliana Dyankova
Telerik team
 answered on 14 Mar 2017
1 answer
130 views

if I specify an angular directive in the shape template, it gets lost from the rendered SVG. For example, I have a html template for shape like this:

<script id="template" type="text/x-kendo-template">
<div ng-model="eBDiagram.task"></div>
</script>

in shapeDefaults.visual:

        visualShapeTemplate = options => {
            // Render template and bind it to the current data item
            var dataItem = options.dataItem.content;
            var renderElement = $('<div />').appendTo('body');

            // Import the Drawing API namespaces
            var draw = kendo.drawing;

            // Compile the shape template
            var contentTemplate = kendo.template($('#template').html());
            renderElement.html(contentTemplate(dataItem));

            // Create a new group that will hold the rendered content
            var output = new kendo.drawing.Group();
            draw.drawDOM(renderElement, null)
                .then(group => {
                    output.append(group);

                    /* Clean-up */
                    renderElement.remove();
                });

            var visual = new kendo.dataviz.diagram.Group();
            visual.drawingElement.append(output);

            return visual;
        }

 

but data isn't bound through 'ng-model' in the resulting SVG. I even tried explicitly to link the scope variable with the template, but no data appeared in the resulting SVG:

            if (renderElement) {
                .$compile(renderElement)($scope);
            } 

Niko
Telerik team
 answered on 14 Mar 2017
1 answer
221 views

Is there a way (like Excel does) to show summary stats when users select multiple cells? Excel shows count & sum at the bottom of the sheet on the right hand side.

Thanks!

Ivan Danchev
Telerik team
 answered on 14 Mar 2017
3 answers
972 views

I have downloaded the new Kendo version 2017.1.223. I am using all components, and using the default Kendo styles by including kendo.default.min.css. I know that the icons changed in 2017, but there seems to be a problem related to classes that are generated by the Kendo grid.

With the new Kendo version, the column settings icons in the column headers are 3 vertical dots instead of a caret. When I inspect a column header element, I see that the span is using class 'k-icon k-i-more-vertical'. Our production site still has the previous Kendo version, and inspecting the column header element shows that the span is using class 'k-icon k-i-arrowhead-s'. 

I have attached screenshots to illustrate the problem. Please advise how to fix this so that the column headers contain caret icons instead of 3 vertical dots.

Orlin
Telerik team
 answered on 14 Mar 2017
2 answers
123 views

How can I format multiple sort query string parameters so that a WebAPI method expecting a DataSourceRequest (WebApiDataSourceRequestModelBinder) will parse correctly?

A query string such as

?page=1&pageSize=10&sort=foo-asc

works fine for paging and single column sort. What should the query string parameters look like for multiple column sort?

 

 

esp
Top achievements
Rank 1
Veteran
 answered on 13 Mar 2017
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?