Telerik Forums
Kendo UI for jQuery Forum
3 answers
664 views

Dear Sir/Madam,

I have a transposed Kendo grid on a page (as described here) where I am trying to mimic the Kendo grid's popup editor using a Form inside a Kendo Window. Clicking an edit button causes a window to be created along with its contained form. This works as expected on the first click since I see the values of the object passed in via the formData property appearing on the form. Submitting the form closes the window and attempts to destroy the form so it can be recreated on subsequent requests to edit the underlying object. Clicking the same edit button a second time should display the same form with its fields populated as the first time. For some reason this is not happening; the fields of the form are blank.

I've replicated the scenario in the following dojo: https://dojo.telerik.com/UsIQijOG

Steps to reproduce:

  1. Click on the "Show Form" button to display a form where the fields are populated
  2. Click on the "Submit" button of the form to close the window
  3. Click on the "Show Form" button to display a form where the fields are blank

Any assistance would be much appreciated. Thank you in advance.

Herrick

Petar
Telerik team
 answered on 30 Sep 2020
4 answers
1.0K+ views

Please see this sample code I have, I am trying to reload data from a remote server into the spreadsheet with every click of the button.

 

The issue is after clicking the search button a second  time to fetch new data, the spreadsheet is appended with a new one.

 

What is the proper way to reload data into the spreadsheet?

 

Link to sample code

https://dojo.telerik.com/ewigOKam

Philip
Top achievements
Rank 1
Veteran
Iron
 answered on 29 Sep 2020
8 answers
2.1K+ views
Is it possible to change the text of the paging area in the grid?  Specifically, I'm talking about the "1-10 of 50 items".  We need to change it to something like "1-10 of 50 books".
Tsvetomir
Telerik team
 answered on 29 Sep 2020
7 answers
1.3K+ views

In the change event, is there any way to get the underlying data item of the selected node?

For a treeview control we can get the data item with something like this in the select event:

var dataItem = myTree.dataItem(e.node);

However, there's no "node" attribute in the change event for DropDownTree.

How do we do this?

Ivan Danchev
Telerik team
 answered on 29 Sep 2020
3 answers
235 views

Found a bug in the current time picker when trying to clear a value out. Please see the dojo:

 

https://dojo.telerik.com/@rareddy/IWijojuf

Steps to reproduce the bug are on the page:

 

Click "Clear Time".
Then click the time icon to set a new time
The time control pops up. Immediately click "Set" with the default time controls chosen. "12:NaN PM" appears in the time selection and cannot be set to a valid time.

Angel Petrov
Telerik team
 answered on 29 Sep 2020
7 answers
2.1K+ views

Hello,

I understand that Kendo UI uses eval calls in its internal template engine.  Are there any plans to develop a workaround that support the rendering of Kendo UI widgets which comply with a strict Content Security Policy that omits the 'unsafe-eval' keyword from the 'script-src'?

Thank you for your time.

Ivan Danchev
Telerik team
 answered on 29 Sep 2020
1 answer
187 views

Hi, I follow the documentation about un-selecting an item in a treeview, like this: 

 

ktv.select($());

After, if I call ".select()", there's no node returned.  And, if I search for k-node-selected", there's also none.

BUT

the node with id "(id-of-treeview)_tv_active" is still there.  And, because we used it for some query, we got errors.

When we create a treeview from a div called <div id="test"></div>

The selected node gets its ID set to id="test_tv_active".

First, I don't think you should use an "id" for that.

And, you can fix the "unselect" by also removing the id from that item when we un-select it.

 

Neli
Telerik team
 answered on 29 Sep 2020
3 answers
191 views
Hi,
I want to disable particular dropDownList in IE but its not working, while in Mozilla its working fine.

I written following code as

// get reference of particular dropDownList component
var dropdownlist = $('#dropDownID').data("kendoDropDownList");
// disable the dropdown
dropdownlist.enable(false);

Thanks,
Nilesh Mantri
Dimitar
Telerik team
 answered on 29 Sep 2020
1 answer
816 views

Hello,

I will try to expain as best as I can, it's not straighforward issue.

In my project we had grids with virtual scrolling AND paging. As we know, this is not a good idea. 

In order to fix that, I removed the paging, leaving only virtual scrolling. Following the best practices I could find, the grid height and row height are fixed:

.k-virtual-scrollable-wrap td {     white-space: nowrap; }

.k-virtual-scrollable-wrap tr {     height: 40px; }

Scrolling works great but the grid always has some empty space in the bottom (grid_empty_bottom.png). After some investigation, it seems the k-grid-content element is always rezised to less height than the specified height (grid_html.png).

The only way I could find to fix it is to, on dataBound event, to change grid's css to match the k-grid-content element height:

const groupingHeaderHeight = this.widgetElement.find('.k-grouping-header').outerHeight();
const columnHeaderHeight = this.widgetElement.find('.k-grid-header').outerHeight();
this.widgetElement.find('.k-grid-content').height((this.activeGridOptions.height as number) - groupingHeaderHeight - columnHeaderHeight);

For reference, the grid work with client side data, the data is fetched from the server and the dataSource is added to grid (grid.setDataSource method) after grid instantiation.

The grid is also filterable, sortable, groupable and reorderable.

 

Tsvetomir
Telerik team
 answered on 29 Sep 2020
14 answers
737 views
Hello,

Viewing the demos of the grid in an ipad,
i try to resize a column, but can´t, how do it?
Tsvetomir
Telerik team
 answered on 29 Sep 2020
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
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
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?