Telerik Forums
Kendo UI for jQuery Forum
3 answers
274 views
Hi, I have a kendoWindow in a partial view.  When I open the window, the controls below the partial view display move down and when I close window they move back up.  Is there a way to open/close window without affecting layout of page?
Kiril Nikolov
Telerik team
 answered on 23 Jan 2015
3 answers
1.7K+ views
Hello,

I'm using the Kendo grid (Ajax binding) for some basic CRUD behavior. I'm using three foreign key columns and relying on the GridForeignKey editor for inline editing. Everything is working as expected, except one of the dropdowns contains 8100+ items and is extremely slow to open. If I use a standard dropdown (non-kendo) the list populates quickly, however I haven't been able to match the CSS of the kendo dropdowns so looks very out of place.

Anyone have any suggestions?

Cheers,
Andrew.

Alexander Popov
Telerik team
 answered on 23 Jan 2015
4 answers
353 views
I am using AngularJS Directives for Kendo UI 2014.3.1119, using ASP.NET Web API on .NET 4.5.2.
The Kendo UI Demo page for TreeList with AngularJS does not seem to fit in my scenario.
I've an AnguarJS SPA that uses Kendo UI Directives.

I've an existing HTML page containing a simple HTML table powered by ngRepeat.
This HTML is bound to an existing AnguarJS controller.

Until now, I have been using standard AngularJS $http Service like below that I'd use to get data from server : ( not OData, just regular JSON )

My goal :
========

Was to actually enable grouping in the table, and looking that the demo TreeList control seem to be the one I wanted to use, as I the records are read-only.
At the end of the post I've also posted the code that I've tried so far and it did seem to hit the server


but I am getting the error in browser console which reads :


"TypeError: Cannot read property 'toLowerCase' of undefined"


ng Controller :

service.getData(tempSkip, $scope.queuePageSize).success(function (data, status, headers, config) {
    $scope.messages = data;
    $scope.showCaption = false;
    $scope.loadingMessages = false;
}).error(function (data, status, headers, config) {
    $scope.workingText = 'Oh CRUD ! Change a few things up and try again.';
    console.log('error getting messages');
    $scope.loadingMessages = false;
});


ng Service :

(function () {
    'use strict';
 
    angular
        .module('app')
        .service('messageQueueService', ['$http', messageQueueService]);
 
    function messageQueueService($http) {
        var baseUrl = rootUrl + 'api/MessageQueue/';
        this.getData = getData;
 
    function getData(skip, take) {
            return $http({
                url: baseUrl + 'Get',
                params: {
                    val1: skip,
                    val2: take
                },
                method: 'GET'
            });
        }
}
})();

Here is what I've tried so far :

I do not prefer re-creating a new service file for an existing service but I created one for test anyway. Below is how it looks :

(function () {
    'use strict';
 
    angular
        .module('app')
        .factory('messageQueueKendoDsService', ['$http', messageQueueKendoDsService]);
 
    function messageQueueKendoDsService($http) {
         var baseUrl = rootUrl + 'api/MessageQueue/';
         var knedoDataSource = new kendo.data.DataSource({
            transport: {
                read: {
                    async: false,
                    url: baseUrl + 'Get',
                    dataType: 'json'
                }
            },
            batch: false,
            serverPaging: true,
            serverSorting: true,
            serverFiltering: true,
            schema: {
                model: {
                    id: 'Id',
                    fields: {
                        parentId: { field: 'FenergoMessageId', nullable: true },
                        Id: { field: 'Id', type: 'number'}
                    }
                }
            }
        });
         return knedoDataSource;
    }
})();

Then in my controller :

$scope.treelistOptions = {
    dataSource: messageQueueDataSource,
    sortable: true,
    columns: [
        {
            field: 'Id',
            title: 'Message ID'
        },
        {
            field: 'FenergoMessageId',
            title: 'Fenergo ID'
        }          
    ]
};

And finally in my HTML :

<div>
    <div data-kendo-treelist="" data-options="treelistOptions"></div>
</div>


My Questions :
  1. How can I fix this ?
  2. What is the most elegant solution ?
  3. Would not that be possible to reuse the existing Angular Service that I've ?
Nikolay Rusev
Telerik team
 answered on 23 Jan 2015
3 answers
1.0K+ views
i am using binding to local data of Grid widgets. i need to add functionality for click event in table cell like open a pop-up window on clicking the cell. so I like to assign class or id to dynamically created table rows and columns. How to i do this?
Thanks - Khara
Dimo
Telerik team
 answered on 23 Jan 2015
1 answer
296 views

Every time I do a paging request, I get this in the console:

Jan 21, 2015 2:33:25 PM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: getOutputStream() has already been called for this response
at org.apache.catalina.connector.Response.getWriter(Response.java:638)
at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:214)
at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:105)
at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)
at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)
at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:336)
at java.io.Writer.write(Writer.java:157)
at org.apache.jasper.runtime.JspWriterImpl.print(JspWriterImpl.java:473)
at org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(ImportSupport.java:171)
at org.apache.jsp.WEB_002dINF.views.error_jsp._jspx_meth_c_005fimport_005f1(error_jsp.java:229)
at org.apache.jsp.WEB_002dINF.views.error_jsp._jspService(error_jsp.java:119)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:160)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1228)
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1011)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:955)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:868)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Jan 21, 2015 2:33:25 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [appServlet] in context with path [/bpe] threw exception [java.lang.IllegalStateException: getOutputStream() has already been called for this response] with root cause
java.lang.IllegalStateException: getOutputStream() has already been called for this response
at org.apache.catalina.connector.Response.getWriter(Response.java:638)
at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:214)
at javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:105)
at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)
at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)
at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:336)
at java.io.Writer.write(Writer.java:157)
at org.apache.jasper.runtime.JspWriterImpl.print(JspWriterImpl.java:473)
at org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(ImportSupport.java:171)
at org.apache.jsp.WEB_002dINF.views.error_jsp._jspx_meth_c_005fimport_005f1(error_jsp.java:229)
at org.apache.jsp.WEB_002dINF.views.error_jsp._jspService(error_jsp.java:119)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:160)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:303)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1228)
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1011)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:955)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:868)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Atanas Korchev
Telerik team
 answered on 23 Jan 2015
6 answers
196 views
Hi,

I have successfully implemented the Scheduler in an application with the use of the online examples. After running it for a few weeks, the customer requested a new overview of all scheduler events.

Therefore I have created a simple Kendo gridview that lists all user events, with a toolbar that contains the CRUD commands.
When the user clicks the edit button, a popup appears and the same (custom) schedule edit screen from the schedule page is shown. However, if the user clicks the save/update button, the recurrencerule property from the object is always null when sent to the server. All other properties are filled in.

Since I'm reusing my customeditortemplate I thought it would work without modification, but it appears I'm missing something.
Alexander Popov
Telerik team
 answered on 23 Jan 2015
5 answers
122 views

I've found a small bug in the grid which has an impact on sorting.
To reproduce this issue, execute the following:

Create a grid that allows SingleColumn sorting. DO NOT SET the following:

JavaScript
sortable: { mode: 'single' }

If configured like above, you won't be able to reproduce the bug.
It should be configured the following way:

JavaScript
sortable: true

If you configure the Grid with the MVC HtmlHelper (.Sortable(a => a.SortMode(GridSortMode.SingleColumn)), you will get the sortable: true as Javascript output.

- Enable the column menu
- Sort a column
- Sort another column by using the column menu (use the small arrow).

You have now achieved multi-column sorting while only a single column should be able to be sorted (default value of sortable is single!​).​
If you have server side sorting on, you will notice you will receive 2 objects in the sorts object.

Eurotracs
Top achievements
Rank 1
 answered on 23 Jan 2015
1 answer
149 views
Hi,

I use Cascading DropDownList (with data from service) on my page. Control is default hidden(in div with style="display:none"), and becomes visible on click to proper button.

It is possible to load data on page load? By default data were loaded when control becomes visible..

Thanks
Alexander Valchev
Telerik team
 answered on 23 Jan 2015
1 answer
474 views
I have a mobile listview configured and working correctly to display a list of items that a user can select. They can select multiple items. When the user selects an item I simply add/remove the item from an array. The problem is that if they click the same item too fast then code code does not see the item in the array because the first pass through the click function hasn't finished when the second click happens. 

Is there a way to handle this type of situation

$("#selectList").kendoMobileListView({
        dataSource: ViewModel.get("itemsource"),
        template: $("#tmpl-selection-list").text(),
        pullToRefresh: false,
        click: ViewModel.itemSelected
});

itemSelected: function(e){
            var item = e.dataItem, addIt = true, currentItems = [];              
            currentItems = ViewModel.get("itemsource");
            if(item !== null){
                $.each(currentItems, function(s, _item){
                     if(item.blog_id === _item.blog_id){
                        addIt = false;
                }
             });
                    
             if(addIt){
                 currentItems.push(item);
             } else {
                 currentItems = $.grep(currentItems, function(o) {
                   return o.blog_id !== item.blog_id;
              });
            }
            ViewModel.set("itemsource", currentItems);
        }
 },
        
Petyo
Telerik team
 answered on 23 Jan 2015
1 answer
117 views
Hi all;

Just wondering if there's a way using Kendo on a mobile device to target a specific keyboard?  For example, some Apple apps I've seen with automatically default to the numeric keyboard or the phone dialer....

Thanks,
Jason
Petyo
Telerik team
 answered on 23 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
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?