Telerik Forums
Kendo UI for jQuery Forum
3 answers
331 views

We have a header/detail accounting application with a data-entry form and an editable grid. When tabbing off of the form to the grid the first cell will not go into edit mode except with some workaround 'hack' code in the 'navigate' event (see below). The problem is the grid edit mode literally works differently when tabbing to the first cell of the grid from a form input field vs. clicking in the same cell. Clicking (rather than tabbing) into the first cell does put the cell into edit mode, but
clears the field contents. Here's the code

let grid = $("#" + target).kendoGrid({

dataSource: {
data: rows,
schema: {
model: {
fields: columnSetup.modelFields
}
}
},
edit: function (e) {
// This does not fire when tabbing to the grid. It will fire if a cell is clicked.
},
editable: {
mode: "incell",
createAt: 'bottom'
},
navigatable: true,
navigate: function (e) {
   // Attempted Workaround (hack) - This does put the first cell in edit mode, but only when tabbing
   // to the grid. However, clicking in the first cell does put the cell in edit mode, but clears the field value.
   if (e.sender['_rowVirtualIndex'] == 0 && e.element[0]['cellIndex'] == 0 && typeof (e.sender['_editContainer']) != 'object') {
      this.editCell(e.element[0])
   }
},
resizable: true,
reorderable: true,
scrollable: { virtual: true },
selectable: "row",
columns: columnSetup.columns,
dataBound: keyboardEventHandler,
}).data('kendoGrid');

Stefan
Telerik team
 answered on 12 May 2017
4 answers
177 views

After spreadsheet initialization, the controls renders as a blank control (no rows, no columns), the tabs rendering is also impacted. If I click the add sheet (+) and go back to the first sheet, the rendering issue seems to resolve itself. There don't seem to be any errors during the initialization process

 

var configureBalanceSheetSpreadSheet = function (batchId) {
                $.getJSON("../../../Data/FinancialsJson/Templates/BalanceSheetTemplate.json")
                .done(function (json) {
                    $("#balanceSheetSpreadSheet").kendoSpreadsheet({
                        sheetsbar:false
                    });
                    var spreadsheet = $("#balanceSheetSpreadSheet").getKendoSpreadsheet();
                    spreadsheet.fromJSON(json);
                })
                .fail(function (jqxhr, textStatus, error) {
                    console.log("Request Failed: " + error);
                });
            }

Ohenewa
Top achievements
Rank 1
 answered on 12 May 2017
2 answers
981 views

Hi,

We've found that on some of our elements (such as DropDownList and AutoComplete) the background and font colours clash when focus is put on the element. The attached screenshots show that after picking an option, the box is left unreadable until the user moves focus away from it.

We've not been able to work out which CSS styles we should be overriding to alter the styling here. Does anyone have any hints?

Ian
Top achievements
Rank 2
 answered on 11 May 2017
6 answers
2.6K+ views
Hello,

In the basic demo for the grid, it allows drag and drop of column headers for making the grid group by those columns.  What I would like, is to have the grid already grouped by a column when the UI has initially rendered, and not have the drag and drop or ability to remove the group column.  How could I do this?

Another way I was thinking of rendering the data in the grid, was that column1 would be my group column, and column2 would contain a grid of the items within that group.  But, I do not see a rowDataBound event on the grid to help construct this.

Thank you
Dimiter Topalov
Telerik team
 answered on 11 May 2017
4 answers
406 views

Im having an issue where I am trying to create a calculated property on a child object in the observable view model where its value is dependant on a property on the parent and the calculated value is not updating when the parent gets updated.

 

Please help, Im quite confused

Here is the code and a fiddle of it

https://jsfiddle.net/80mo1ch7/

<script>
    var viewModel = null;
 
    $(document).ready(function () {
        viewModel = kendo.observable({
            parentNumber: 1,
            child: { showLink: function () { return this.get('parent().parentNumber') == 2 } }
        });
 
        kendo.bind($('#simpleTest'), viewModel);
 
        document.getElementById('changeValue').onclick = function () {
            if (viewModel.parentNumber == 1)
                viewModel.set('parentNumber', 2);
            else
                viewModel.set('parentNumber', 1);
        }
    });
</script>
 
<section id="simpleTest">
    <p data-bind="text: parentNumber"></p>
    <section data-template="simpleTestChildTemplate" data-bind="source: child" />
</section>
 
<script id="simpleTestChildTemplate" type="text/x-kendo-template">
    <section>
        <button id="changeValue">Change</button>
        <a data-template="headerTemplate" data-bind="visible: showLink">BlahBlah</a>
    </section>
</script>
Veselin Tsvetanov
Telerik team
 answered on 11 May 2017
3 answers
319 views

Is it possibile to disable only the "Add" or "+" on sheetsbar?

 

Ivan Danchev
Telerik team
 answered on 11 May 2017
10 answers
2.0K+ views
Hi, 

is there any way to export excel grid and to define for each cell hyperlink? 
Currently cell values are web addresses but not hyperlink.

Thanks
Alain
Top achievements
Rank 1
 answered on 11 May 2017
5 answers
570 views

This occurs in the sample in the docs, regardless of the backend.

Follow this link to the documentation, and open in Dojo.
http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#events-edit

Repro steps:
Add a new row
Click edit on new row, then click cancel.
Row disappears from grid.

If you do the same on a previously existing row, it does NOT disappear.

Viktor Tachev
Telerik team
 answered on 11 May 2017
1 answer
168 views
For batch upload, I want to display the layout like in your demo: http://demos.telerik.com/kendo-ui/upload/async

Is it possible? 
Magdalena
Telerik team
 answered on 11 May 2017
3 answers
259 views

We want to show a diagram in a modal window and need tooltips and tools(e.g. edit).

Minimal example based on demo: http://dojo.telerik.com/IGUke/3

Apparently the tooltip and tools are created with a lower z-index than the diagram.

Is this a bug or is there any workaround ot get tooltips and tools working?

 

Stefan
Telerik team
 answered on 11 May 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
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
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?