Telerik Forums
Kendo UI for jQuery Forum
11 answers
2.5K+ views
Hi,
In Kendo UI Grid when navigatable is true, by right the keyboard Navigation should work base on the value of the "selectable" property. If the selectable value is "row"  then the up-arrow key should make the previous row, selected... and similarly down-arrow key should make the next row, selected! However, Kendo Grid regardless of the value of selectable property, it's always navigating over cells!

I'm not sure if it's a bug or it's the way it works!

However, this would be both logically and practically make sense for keyboard navigation to work based on the value of the "selectable" property.

Please kindly help to evaluate the above request and advise how can we achieve keyboard navigation (up and down arrows) over rows?

Thank you.

Dimiter Madjarov
Telerik team
 answered on 15 Jun 2016
1 answer
113 views

Hi Team,

am using Kendo UI grid and I have a scenario where I need to set server sorting to true if I get the total number of records >= 1000, if the number of records are less than 1000 , then the server soring should set to false. I also have dynamic columns and headers.  Here is the rough code.

If I get more than "1000" records then server sorting is set to true but it triggers the read operation again continuously? Could you please help with this scenario, please let me know if am missing anything here.

this.bindWidgetData = function () {       
        $("#" + gridId+ "").empty();
        $("#" + widgetId + "").kendoGrid({
            sortable: {allowUnsort:true},
            selectable: "Single, Cell",
            resizable: true,
            pageable: false,           
            dataBound:this.dataBound,
            change: function (e) {
                var i = 10;
            }
            //dataBinding: this.dataBinding,
        })
 setGridData();
}
  
this.setGridData = function () {
        var gridData = $("#" + this.gridid).data("kendoGrid");     
        _widgetCallParams = this.getCallParameters();
        this.UpdateSortInfo(sort);
        var dataSource = new kendo.data.DataSource({
            transport: {
                read: function (options) {                   
                    $.ajax({
                        url: getBaseURL() + "WSIHome/GetCustomListData",
                        dataType: "json", // "jsonp" is required for cross-domain requests; use "json" for same-domain requests                       
                        data: _widgetCallParams,
                        type: "POST",
                        success: function (result) {                          
                            var columns = _this.getGridColumnsHeadersandFormat(result.data);
                            gridData.setOptions({
                                columns: columns
                            });
                            gridData.dataSource.options.serverSorting = (result.rowtotal) >= _widgetCallParams.TopX ? true : false;                          
                            options.success(result);
                        },
              
            schema: {
            data: "data",
            total: "rowtotal"// twitter's response is { "results": [ /* results */ ] }
            },
           
        });
      
        gridData.setDataSource(dataSource);
    };

Daniel
Telerik team
 answered on 15 Jun 2016
6 answers
646 views

Hi,

I have 2 questions.

Q1:

I am trying to add Dropdown to gantt Chart Tollbar, Dropdown is added but it is not working.

In HTML

<div id="example">
        <div kendo-gantt k-options="ganttOptions"></div>
        <script id="template" type="text/x-kendo-template">
            <select kendo-drop-down-list
            k-data-text-field="'name'"
            k-data-value-field="'id'"
            k-data-source="productsDataSource"
            style="width: 100%"></select>
        </script>
    </div>

In Angular Controller

$scope.ganttOptions = 
        {
            toolbar: [
                            { template: kendo.template($("#template").html())}

                         ]

        }

 $scope.productsDataSource = 
        {
       transport: {
           read: {
               url: "Data/products.json",
               dataType:"json"
           }
       }
   };

Q2: 

     I want to Remove the Add Task Button at the bottom. I have used "gantt.footer.find(".k-button").css("visibility", "hidden");" , that's not working in my case may be due to angular. Can you specify a way to acheive this for angular.

 

Dimitar Terziev
Telerik team
 answered on 15 Jun 2016
1 answer
273 views

Hello,

I am trying to restrict user input of the AutoComplete but the AutoComplete is inside a Kendo UI (MVC) Grid. I successfully implemented the example showing how to restrict user input of an AutoComplete but it does not keep the value cleared when the AutoComplete is inside a Grid. This is the example that I followed: http://docs.telerik.com/kendo-ui/controls/editors/autocomplete/how-to/restrict-user-input

Can you please show me how to "Restrict User Input" for the AutoComplete that is inside a Kendo UI (MVC) Grid batch edit mode? The autocomplete is implemented setting an EditorTemplateName bound to a column.

Thanks,

Michael

Dimiter Topalov
Telerik team
 answered on 15 Jun 2016
1 answer
175 views

I printed date from datePicker that you are providing.

'6/14/2016 12:00 AM'  was result and I want to change it into 'YY/MM/DD' format.

I use Oracle DB so I tried TO_DATE(Column name, 'MM/DD/YYYY HH:MI') and it didn't work.

Is there any way to change format of your datePicker format just like as customizing templates?

Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 14 Jun 2016
1 answer
264 views

Hi,

I'm building a scheduling app which would use the Scheduler component and would like to allow my users to stretch and drag and drop events on the weekly schedule.

However, they are working in 1-2 hour events through out the day, but possibly through multiple days.

On this demo:

http://demos.telerik.com/kendo-ui/scheduler/move-resize

 

It is seen that event resize works EITHER horizontal OR vertical depending on is it an all day event or not.

What I would like to do is:

- When the user clicks on an empty slot, open a popup to let him add an event slot

- When he drags it verticalit will be the length of the event in the day 1-2-4-8 hours, when he drags it horizontal it will be the number of days it spans

 

From the demos and examples I cannot find that you can make both options on the same slot...so resize in both directions.

Is it possible?

Added question...also a click on the empty space in the scheduler to add a slot?

 

Thank you!

 

 

Stefan
Telerik team
 answered on 14 Jun 2016
3 answers
364 views

Hi,

 

I'm try to localize Insert Hyperlink popup in Kendo Editor by using kendo culture, but unfortunately I can't make it.

I also couldn't see that in your demo (please see the attached screenshot).

I was wondering if you could help me with that.

 

Thanks!

Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 14 Jun 2016
6 answers
488 views
I have a grid that is set to scrollable:true, but I would like it to be false during printing. I can use a print button that does some settings, calls window.print(), then cleans up the settings, but I'm not sure if I can set the scrollable property to false in that way.

I already do a lot of separate styling in CSS for printing, but the issue I can't get around for the scrollable grid is the separate table for the fixed column headers. It doesn't allow the headers to be printed on each page (in non-WebKit browsers) like normal thead rows in a single table.

It would be possible for me to create a separate grid just for printing, but I have around 16 in the app so far and I would like the user's choices of sorting and filtering to be kept, so I'd rather not do that.

Ideas?
Dimo
Telerik team
 answered on 14 Jun 2016
1 answer
149 views

I have set the max text length in the underlying model and the grid does not enforce it.  I have tried the following and it does not work:

 

function onEdit(e) {
          debugger;
 
              if (e.model.isNew()) {
 
            e.container.find("input[Id='strSubFundCode']").attr('readonly', false);
            e.container.find("input[Id='strSubFundCode']").attr('disabled', false);
        } else {
            e.container.find("input[Id='strSubFundCode']").attr('readonly', true);
            e.container.find("input[Id='strSubFundCode']").attr('disabled', true);
            e.container.find("input[Id=strSubFundCode]").attr("maxlength", 7);
        }
 
 
    }

Any suggestions would be welcome.

 

Thanks

 

 

 

Dimiter Topalov
Telerik team
 answered on 14 Jun 2016
3 answers
302 views

 

Angular Code to update datasource:

$scope.bindGroupCost = function (groupCostData) {            
            $scope.bindGroupCostData = new kendo.data.DataSource({ data: groupCostData });
            $scope.bindGroupCostData.read();                 
        }

 

HTML Code:

 <div class="k-content">
                                            <div>
                                                <div kendo-chart
                                                     k-title="{ text: 'Group Total Cost', position: 'bottom' }"
                                                     k-series-defaults="{ type: 'pie' }"
                                                     k-series="[{ field: 'groupCost', categoryField: 'groupName', padding: 0 }]"
                                                     k-tooltip="{ visible: true, format: 'Group Cost: {0} £' }"
                                                     k-data-source="bindGroupCostData"
                                                     k-series-hover="onSeriesHover"
                                                     style="width:100%; height:350px; border:1px;"></div>
                                            </div>
                                        </div>

Calling angular function from javascript:

angular.element(document.getElementById('tblContainer')).scope().bindGroupCost(JSON.parse(slices));

 

My problem is that when I am updating the 'slices' values at runtime, kendo pie chart is not updating the datasource and pie chart is not updating.

Please let me know how to refresh the keno chart when datasource is updating at runtime.

Look forward to hear from you.

Let me know if you need any more details..

Manas
Top achievements
Rank 1
 answered on 14 Jun 2016
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
ScrollView
Switch
TextArea
BulletChart
Licensing
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
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
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?