Telerik Forums
Kendo UI for jQuery Forum
1 answer
306 views

Hello,

 

I have a grid with a bunch of columns representing numbers. Some columns' data is calculated from other columns. 

Based on other Forum posts, I know that I can bind to the save event of the grid to determine what fields were edited, and what, if any columns' values need to be updated as a result. This works great. However, the save event fires every time I auto calculate a field. So for instance, if I update a column called UnitPrice, that triggers changes in 3 other columns, then my save event is called 4 times.

 

I also learned from the (http://www.telerik.com/forums/set-other-row-cells-values-based-on-selected-dropdownlistitem-in-one-cell#db9NSV81OkuDMlzv0brCgQ)[forums] that I can use dot notation to update the data model without refreshing the grid. This results in allowing me to do all my additional calculations and my grid's save event is called one time. Once I call the refresh method on the grid, I can see my newly calculated values. This is exactly what I want, except that now my columns do not show the little red arrow to show that this cell's value has changed.

 

So my questions are about that little red arrow. What does that little red arrow actually show? Does it show when the grid's data is out of sync with the data source? Does it show if the data source is dirty? How can I make changes to the data model without triggering grid refreshes every time, while also showing on the grid which cells have been updated?

 

 

Boyan Dimitrov
Telerik team
 answered on 23 Feb 2017
3 answers
1.0K+ views

Hi,
In my scheduler i am performing database  update while i click on save button on event popup.

The save gets called 2 to 3 times calling the same database SP. This though handled in the SP causes a performance issue as the Scheduler takes time to refresh.

This is happening on some machines and is not happening on some at all.

I also noticed that the Databind event gets called multiple times. Any idea how this can be avoided. Anyone ever experience the same set of issues.

Thanks
Siddhartha

Ianko
Telerik team
 answered on 23 Feb 2017
10 answers
334 views
Hi,
Can the mobile SplitView be made collapsible?
Is it possible to define the splitview to be collapsed by default and show when a Menu button in the nav bar is touched?
The idea is to use SplitView for collapsible side menu with a list of menu options.

Or if there is a better kendo mobile widget that can be used to define a collapsible left side menu.
Please let me know.

Thanks.
B.Manohar
Robert
Top achievements
Rank 2
 answered on 23 Feb 2017
6 answers
2.9K+ views

Hi

I've been working with the MultiSelect widget for a while now but this has led to a few questions....

Is there anyway to add or remove selections programmatically? I've implemented the following code in the select event but having tried lots of different methods, as suggested in the forums, I cannot get this to work (e.g. clearing the datasource filter and setting value seems to be the most popular). My multiselect is remote bound. My onSelect event is shown below.

Is there a better way of getting the dataItem rather than how I'm doing it in the first line?

Thanks

Keith

private checkSelection(e: kendo.ui.MultiSelectSelectEvent) {
            
    var dataItem = e.item.data().$$kendoScope.dataItem;
    var hidSelected = dataItem.hid;
    e.preventDefault();
    //check to see if adding this will change anything currently selected     
    _.find(<Array<any>>this.msSelector.dataItems(), (s) => {
          if (s.hid != hidSelected) {
              //check to see if item's ancestor has been selected
              if (_.startsWith(hidSelected, s.hid)) {
                   this.dialogService.showYesNo('Confirm selection',
                            'Adding <span class="text-bold">' + dataItem.name + '</span> will remove <span class="text-bold">' + s.name + '</span>. Do you want to continue?').promise.then((r) => {
                     if (r) {
                          //remove parent                                         
                     }
                     else {
                          //remove new selection
                     }
                     return;
                 });
             }
          }
     });
}

Dimiter Topalov
Telerik team
 answered on 23 Feb 2017
3 answers
450 views
Hi, I have a question about the Kendo Grid control, in my application, I have one kendo grid using wrappers (MVC) on one page and everything works fine but I have noticed a couple of issues with it. When I click on the "go to next page or go to previous page" button Read kendo property is being fired which calls the action result method on my controller; in my case, is one simple stored procedure that returns X number of data, for one user this will work fine but it will not do so if 20 users or more are doing the same thing at the same time. This issue is not exclusive with the paging or sorting but everything including filtering, refresh button, etc. So my question is if there is any way to cache the data (store the data in memory) and filter this data instead of reading the data from the stored procedure each time.
Dimiter Topalov
Telerik team
 answered on 23 Feb 2017
4 answers
1.2K+ views
I have a need to dynamically update the footer template for a grid column.  There is a custom calculation that needs to be performed on data for a column and the result of the calculation should be displayed in the column footer.  The data for the grid is local.  The custom calc should be triggered and the footer should be updated immediately after the user modifies the data for a cell in the column.

I created a Kendo UI Dogo sample to illustrate what I'm trying to do.  The sample can be found at http://trykendoui.telerik.com/oVEV.  In the sample, a function named "calc" is being called by the footer template.  I'm having two problems trying to accomplish my goal right now.

1. The call to the "calc" function is wired to the save event of the grid.  However, the data source doesn't contain the latest values at the point in time that the save event callback is called.  It's as if the save event is actually a "beforeSave" event.  How do I get the updated values from the grid's data source?  Is there another event that I should be using for making the call to the "calc" function?

2. Once problem #1 is solved and the "calc" function is able to calculate the correct values, how do I display the new value in the column footer?
Alexander Popov
Telerik team
 answered on 23 Feb 2017
1 answer
676 views

Hi,

How can I retrieve the selected cell column and row index?

For example, if the user selected/clicked on cell A1 then I would like to get the 0,0.. and so on.

 

Thanks in advance

Dimitar
Telerik team
 answered on 23 Feb 2017
1 answer
224 views

Hello,

When importing data from a file (calling fromFile method, or using the open button of the control) that uses es-ES culture, date cells are rendered as in en-US format, although the value remains in es-ES format.

Is there any way to fix this issue?

Veselin Tsvetanov
Telerik team
 answered on 23 Feb 2017
6 answers
222 views

Hello all

Our grid should be updated every one second with several (10-15) new rows.

To implement it, we recreate data (gridView) every second as follows:

this.gridView = {
      data: this.petService.pets.slice(this.skip, this.skip + this.pageSize),
      total: this.petService.pets.length
    };

 

but this takes about 7% CPU.

Is there a better way to update the grid (for example - add a new rows only instead of data recreation) ?

Thanks

 

Best Regards

Mark Nebrat

};

Dimiter Topalov
Telerik team
 answered on 23 Feb 2017
1 answer
104 views

I have a simple formula ( = A1 + A2 ). But the formula doesn't work, as A1 and A2 are both read only cells. I see this as a valid use case, as we do not want users to change parts of the formula. Is this a bug or intended behaivour?

Thanks

Marc

Marc
Top achievements
Rank 1
 answered on 23 Feb 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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?