Telerik Forums
Kendo UI for jQuery Forum
1 answer
479 views

I have a grid (MVC) with the following set:

                .Editable(editable => editable.Mode(GridEditMode.InLine))   
                .Navigatable()                                         

               .Selectable(selectable => selectable 

                    .Mode(GridSelectionMode.Single)
                    .Type(GridSelectionType.Row))

When the user creates a new row, or when editing an existing row, I need to be able to trap when the user changes the value in a cell and moves out of the cell. I need to be able to take the new contents of the cell that changed and do some processing on it. How can I do this?

Viktor Tachev
Telerik team
 answered on 18 Apr 2017
5 answers
2.6K+ views

Hi 

I have been reading that there is a save event which gets triggered when a cell is left in the grid. I tried that and its working fine when I use GridEditMode.InCell as the edit mode. When I use GridEditMode.InLine nothing happens when I leave the cell (the function is not being called). But, the function is being called after i click on the "Update" button. In my scenario, i need to update some cells regarding to what was written in some other cells, so no use for me to call the function just before saving. So is there a method to notify me just when a cell has been left (or a value inside of a cell has been changed or selected e.g. from an autocomplete)

 

Here is my code

 

 @(Html.Kendo().Grid<Telerik2.Models.LeistungViewModel>()
        .Name("grid")
        .Columns(columns =>
        {
            columns.Bound(l => l.LeistungNr).Width(240).Visible(false);
            columns.Bound(l => l.Bezeichnung).Width(190);
            columns.Bound(l => l.Datum).EditorTemplateName("DatumPicker").Width(110).Format("{0:dd.MM.yyyy}");
            columns.Bound(l => l.MinT).Width(110); ;
            columns.Bound(l => l.Kuerzel).EditorTemplateName("LeistungKuerzel").Width(130);
            columns.Bound(l => l.MinV).Width(110);
            columns.Bound(l => l.Person).Width(160);
            columns.Command(command => { command.Edit().Text("Bearbeiten").UpdateText("Speichern").CancelText("Abbrechen"); }).Width(200);
            
        })
        
        .ToolBar(toolbar => toolbar.Create())
                .Editable(editable => editable.Mode(GridEditMode.InLine))
                .Pageable()
                .Events(events => events.Save("Save"))
                .Sortable()
                        .Resizable(resize => resize.Columns(true))
                .Scrollable()
 

)

<script type="text/javascript">
    function Save(e) {
        console.log("Cell left");
            }
    }

</script> 

 

Konstantin Dikov
Telerik team
 answered on 18 Apr 2017
1 answer
1.9K+ views

Hello,

I was wondering if there is some kind of automatic display of custom or model errors. To check this out, I created an example in the dojo.

When the returned data contains the property defined as errors within the model, the error callback is called. But I would have expect that it creates an error message within the Grid like it does with No records available (but maybe in red). Instead the grid remains empty, neither displaying the custom error nor saying No records available.

Is there a way to enable displaying custom errors within the Grid itself like the No records available message? Or will I have to push some DOM elements there by myself in the error function? If the later, is there an event which is called when no model/custom error is there anymore so I know when to remove my DOM elements showing the error?

For short reference here the last grid example from my dojo which just creates an empty grid:

01.$('#grid3').kendoGrid({
02.  columns: [{field: 'name'},{field: 'age'}],
03.  dataSource: new kendo.data.DataSource({
04.    data: { apiError: ['Server is under maintainance!'] },
05.    schema: { errors: 'apiError' },
06.    error: function(e) {
07.      console.error('grid error:', e);
08.    },
09.  }),
10.  noRecords: true,
11.});
Stefan
Telerik team
 answered on 18 Apr 2017
1 answer
871 views

In my MVC grid, I'm trapping the Edit event as follows:

 .Events(events => events.Change("gridRowChange").Edit("onEdit"))

In my onEdit() method that gets called when an edit is occurring, I'd like to get a reference to the text box elements for each editable cell in the row so that I can attach an onBlur event to some of them. How do I go about getting a reference to each text box element in the row being edited?

Konstantin Dikov
Telerik team
 answered on 18 Apr 2017
2 answers
316 views

Hello,

I am currently using Kendo as a simple text editor inside a web form.  I am using it in 2 places 1 is editable and 1 is view only.  I am doing it this way because of the default styling of the html that is saved renders the same on the view only box.  Is there any way to resize the view only box to the size of the content in classic mode?

Thanks,

Aaron
Top achievements
Rank 1
 answered on 17 Apr 2017
2 answers
216 views

I'm in a situation where I need to use a custom function to scrape pasted clipboard data for raw image data and replace that with custom markup, but also need to support standard options like msTags and msAllFormatting. My thinking is that I'll need to write code into my custom function which manually calls the Kendo Editor methods that run the pasteCleanup option handlers. Is this right?

Has anyone done this before? There doesn't appear to be any native option to do what I'm talking about.

Wes
Top achievements
Rank 1
 answered on 17 Apr 2017
3 answers
369 views

See attached files.

I have a pivot that is mostly functional, however clicking the column block either in the pivot grid or in the configurator indicates the columns can be sorted, but while the icon changes, nothing actually happens. This appears to be a bug.

I have also just noticed the same issue for row groups. The icon indicates there is sorting, but nothing happens.

Konstantin Dikov
Telerik team
 answered on 17 Apr 2017
3 answers
351 views

Hi Support,

 

we are using bubble charts in various places and make use of the series notes to show information (rather than using the series label which would restrict us in what information is shown I believe).

When series points in the plot area are near its limit, the labels get cut off or are even completely gone, if the bubble is drawn right at the edge of the plotArea border.

As we don't know in advance where each bubble will site in the plot I also can't say "always position note beneath bubble".

Is there a way to make the kendoChart understand that the notes are part of the overall renderable area so the plot are automatically expands automatically to ensure the note labels are not cut off ? Attached an example for some cut off labels on the left of the chart but it can happen anywhere obviously.

Is there potentially also something like a "Smart Label" feature for kendoCharts where I can pass any note/label to a bubble and kendo computes the best position so it does not overlap with other labels from other bubbles and also does not render outside the plot area ? I think I ready something about smart labels in some other component from Telerik.

Regards,

Steve

Stefan
Telerik team
 answered on 17 Apr 2017
1 answer
148 views
Hello,

I'm very interested to use diagram component to create modelization tool but i need some details on elements i can customize :

Is it possible to :

- associate multi templates ? 1 template / shape

- add point on a connection ?

- change connection color for a gradient ? or an image ?

Thanks for your answer.

Nicolas

Stefan
Telerik team
 answered on 17 Apr 2017
18 answers
1.8K+ views
Hi

It's mentioned here, http://www.kendoui.com/forums/ui/upload/rails-anti-forgery-tokens.aspx, that you plan on making forgery tokens work for the next release. Did that happen and does it work in the DataSource? I'm trying to do exactly what is described here http://stackoverflow.com/questions/4074199/jquery-ajax-calls-and-the-html-antiforgerytoken but not sure how I can make that work.

Thanks
Matt 
Chris
Top achievements
Rank 1
 answered on 17 Apr 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
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?