Telerik Forums
Kendo UI for jQuery Forum
1 answer
110 views
Is there a way to modify the keystrokes that are used to navigate the Kendo grid when it is Navigatable?  We are upgrading an existing application and would like to maintain the keyboard navigation keys the users are accustomed to rather than training them on the default navigation keystrokes.

Thanks,
Boyan Dimitrov
Telerik team
 answered on 22 Apr 2016
3 answers
203 views

How to retain expanded grid's filter after dataitem.set()? 

even after using detailExpand and detailCollapse, for restoring expanded rows, we can not keep sort order as it was.
here is the demo : http://dojo.telerik.com/@Ankita/AYOKA

Steps to reproduce: 

1) Expand Row 1 - Product ID 1 -> that will expand sub grid
2) Sort sub grid -> keep company name desc ( you can see company name 5 on top row)
3) Click on button Update total price. ( function call's dataItem.set() method to update parent Rows' column value)
4) you can see Product ID 1 -> Total Price will change to $11.00, keeping sub grid expanded. but here we are lossing sort order of the sub grid. 1st row should be "Company Name 5" not "Company Name 1"

If we do not use dataItem.set and try to assign value as 
"parentDataItem["TotalPrice"] = 10 +  parentDataItem.TotalPrice", grid wont be updated with new value $11.00

Constrain : we have to use "dataItem.set()" to apply css changes to editable cell. we can not use "dataItem.field = value"
becuase it will introduce some other error.
Can you please help me out here? 

Thanks in advance,
Ankita  

Boyan Dimitrov
Telerik team
 answered on 22 Apr 2016
1 answer
295 views

Hi everyone, I have a .Net Core/MVC6 application. I get all the Kendo controls to render using the .Deferred() option, but I can't get the ClientTemplate Grids to work? Here is the code

[code]

@(Html.Kendo().Grid<UserViewModel>()
.Name("UserGrid")
.Columns(columns =>
{
columns.Bound(u => u.FirstName);
columns.Bound(u => u.LastName);
columns.Bound(u => u.Email);
})
.ClientDetailTemplateId("userOrders")
.Sortable()
.Pageable()
.Filterable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(30)
.Read(read => read.Action("UserGrid_Read", "Admin"))
)
.Events(events => events.DataBound("userGridBind"))
.Deferred()
)

<script id="userOrders" type="text/kendo-tmpl">
    @(Html.Kendo().Grid<UserOrderViewModel>()
            .Name("UserOrders_#=UserId#")
            .Columns(columns =>
            {
                columns.Bound(o => o.OrderVat);
                columns.Bound(o => o.OrderTotal);
            })
            .DataSource(dataSource => dataSource
                .Ajax()
                .PageSize(10)
                .Read(read => read.Action("UserGrid_Orders", "Admin", new { userId = "#=UserId#" }))
            )
            .Pageable()
            .Deferred()
            .ToClientTemplate()
    )
</script>

[/code]

I receive a Syntax error, unrecognized expression: #UserOrders_#=UserId#

I have tried remove the deferred, then it doesn't render at all. I have also tried using \\#=UserId\\# but no change.

How do we get it to work using .Net Core/MVC6 and the deferred options?

Thank you.

Jako
Top achievements
Rank 1
 answered on 22 Apr 2016
1 answer
260 views

Hello, 

 

I'm trying to put a Kendo Upload control in a grid (which should display uploaded files), but I can't figure out how to do it. 

I tried something like 

 

var $upload = $('<input type="file" id="upload">').kendoUpload();
('#files-grid').kendoGrid({
  // Other configuration ...
  toolbar: [{template: $upload.html()}]
});

 

but that doesn't seem to work. Any hint as to how to achieve this? I've seen references to `kendo.template`, but it's unclear how to use Kendo controls with it, and not just plain HTML. 

Of course, later I'll want to further configure the upload control, but I left it blank for now. 

 

Thank you.

Dimiter Madjarov
Telerik team
 answered on 22 Apr 2016
1 answer
109 views

Hi ,

Recently , we were handling a project  assigned by Taiwanese(an east country) .

The problem we have is the different year.

e.g.(2016(A.D) = 105(Taiwan year)) 

which is A.D year minus 1911 then we get Taiwan year

We need to change every A.D year to Taiwan year just like the attached image

How do i implement it or is there any example ?

 

Thanks . 

 

 

Maria Ilieva
Telerik team
 answered on 22 Apr 2016
1 answer
97 views

How can I add a custom footer with a simple unordered list of notes about the data being displayed?

 

 

Alexander Popov
Telerik team
 answered on 22 Apr 2016
1 answer
257 views

Hello,

I was wondering if there is a way to adjust the space between events when a column has multiple events inside it? My design calls for the events to slightly overlap and a css style to apply a white left border to give a divide between each event.

 

Thanks!

Georgi Krustev
Telerik team
 answered on 22 Apr 2016
1 answer
148 views

Hi All,

I have created a kendo Dropdown List however the control is not populating the values from the given data source.

Can someone help me where I went wrong??

Dojo Location :  http://dojo.telerik.com/@bkantu/OLuvo/2 

Thanks,

Balu

Dimiter Topalov
Telerik team
 answered on 22 Apr 2016
1 answer
251 views

How does batch editing work? If I were to create 3 new rows, and hit Save, would the "dataSource.create" function be called 3 times in succession? (first call for first row, etc..)

I would like to have a custom confirmation kendoWindow that pops up when the user hits save. However, the AJAX calls to the serverside should only go through if the user presses the "Yes" button in that pop up. How can I achieve this behaviour? Here's an example 

windowService.displayCurrentWindow("Create"); // popup window
$("#yesButton").click(function () {

    

    windowService.closeCurrentWindow();
    api.post(url, e.data)
        .then(
        function success(response) {
            // do stuff
        },
        function error(response) {
            e.error();
        });
 
})
$("#noButton").click(function () {
    windowService.closeCurrentWindow();
})

Boyan Dimitrov
Telerik team
 answered on 22 Apr 2016
1 answer
316 views

Hi,

I try to add a new tag by clicking "enter" on the keyboard.

i found this: 

http://dojo.telerik.com/@ggkrustev/UxOvO

This example showing how to add new tag by click "comma", and would like to improve it to also support clicking enter( ==13).

Any ideas ?

 

Thanks,

Ran

Georgi Krustev
Telerik team
 answered on 22 Apr 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?