Telerik Forums
Kendo UI for jQuery Forum
3 answers
221 views

I still struggle continually with this issue.  If I use a nullable int on my model and use .ForeignKeyFor in my .cshtml, then when I select the first item in the list, it goes blank. I've added .ValuePrimitive(true) to my GridForeignKey.cshtml editor template, but this is still a problem.  Also, I think it's not unreasonable to expect if you add a row to the grid that it would default the value to null and let you select the first item in the list.  I don't think anything I've tried has let me do this.  The best I've been able to do is create an actual item for null with a value of 0 or something and then code it on the server side to treat 0 as null.  I don't feel like this is a great solution.  Anyone had better luck that me?  Telerik do you have a recommendation or an example?

Georgi Krustev
Telerik team
 answered on 15 Mar 2016
1 answer
58 views
One of my kendo grid having a grouping  column. This is affecting my sorting order of records inside the grid. Is there any fix for this issue ?
Konstantin Dikov
Telerik team
 answered on 14 Mar 2016
2 answers
485 views

I have a ComboBox that displays values and text (descriptions) in the drop-down list.  Everything works well, except I need the value to display in the textbox (input) portion of the ComboBox, not the text description.  For example, an entry contains "Jr." as the value and "Junior" as the text description.  When selected, I want the textbox to display "Jr." instead of "Junior".  How can I make this happen?  I'd like to keep the text descriptions in the drop-down if possible.

Thanks.

Joel
Top achievements
Rank 1
Iron
 answered on 14 Mar 2016
6 answers
259 views

Hi there

When binding enabled/disabled or visible/invisible I normally use callback functions to check the current state. Unfortunately the element itself is not given to these callback functions.

In my case, to determine the state of the element, I would need to check if the element, which called the callback function, is part of a disabled tab strip tab. But since there is no element given, I need to search for it in the DOM, which probably is not always reliable and could return multiple elements.

So my Questions:
Why is it, that no params are given to the callback function?
Can I change that?

Regards,
Patric

Joshua
Top achievements
Rank 2
Iron
Veteran
Iron
 answered on 14 Mar 2016
3 answers
105 views

Hello,

I currently have a grid in my application that has a custom editor template. This template has the default window close, update, and cancel that the editor template provides. I noticed that when I close this editor, my page jumps to the top of the screen. I believe the anchor being set to "#" is the cause. Is this so? Is there a way I can remove this?

Thank you in advance for helping me with this issue.

Alex

Boyan Dimitrov
Telerik team
 answered on 14 Mar 2016
1 answer
609 views

Hi,

How to replace kendo icon (k-plus) with bootstrap icon (glyphicon glyphicon-plus-sign), and kendo icon (k-minus) with bootstrap icon (glyphicon glyphicon-minus-sign) in CSS.

 

Regards,

Rajender Kumar

Helen
Telerik team
 answered on 14 Mar 2016
2 answers
4.4K+ views

I just upgraded to 2016.1.112 and I noticed that the grids now have a grey gradient background color over rows that are hovered over.  The grid did not used to do this in 2015.3.1111.  You can change the target version in the following example to demonstrate:

http://dojo.telerik.com/aDUPi/2

Also, the hover background color of the grid does not follow the hover background color for any other widget and does not seem to be controlled by the same hover background color variable in the styles.  This is evident when you change the "Hover background" color in the theme builder and all widgets have the new hover background color except for the grid:

http://demos.telerik.com/kendo-ui/themebuilder/

How can I either remove the hover background color on grids or change the color to match all other widgets?

 

Thanks,

Michelle

Iliana Dyankova
Telerik team
 answered on 14 Mar 2016
3 answers
1.6K+ views

I'm attempting to use the Grid component's built-in support for exporting to excel, applying custom cell formatting as shown in these Telerik docs:

http://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/excel/cell-format

My question is - how can I identify the actual field / column relating to the cell being formatted from within this handler?  The approach using row / cell indexes comes with the rather obvious issue when exporting a grid with a prior hidden column displayed - best way to reproduce is to refer to this jsfiddle:

https://jsfiddle.net/3anqpnqt/1/

  1. Run fiddle
  2. Click export to excel - observe custom number formatting
  3. Unhide subcategory column (using column menu)
  4. Click export to excel - observe custom number formatting on column 2 which is now 'subcategory'

What I need to be able to do is identify the cell to format as the 'unitPrice' and apply the format, but inspection of the object model within the excelExport handler doesn't give me any way to make this link.  In my real application, I have several custom formats to apply (percentages, n0, n2 etc) so it's not as simple as going $.isNumeric(cell.value) or otherwise.

Am I missing something, or is this simply not possible?

Radoslav
Telerik team
 answered on 14 Mar 2016
4 answers
156 views

Hi,

I am binding JSON data to grid.but facing issue on it

can u pls provide example for asp.net without mvc to bind data to kendo grid.

  <div id="grid"></div>
            <script>
                $(document).ready(function () {

                    $.ajax({
                        type: "POST",
                        url: "Default.aspx/Test,
                        contentType: "application/json; charset=utf-8",
                        dataType: "json",
                        success: function (response) {
                            BindGrid(response.d);
                        }
                    });
                });

                function BindGrid(sourcedata) {
                    $("#grid").kendoGrid({
                        sortable: true,
                        groupable: true,
                        scrollable: true,
                        height: "300px",
                        pageable: {
                            pageSizes: 9
                        },
                        dataSource: sourcedata
                    });
                }
            </script>

 

 

Alexander Valchev
Telerik team
 answered on 14 Mar 2016
3 answers
102 views

Hey everyone,

 

I'm currently working on this http://dojo.telerik.com/IMELI and I would like to have a date above every day of the month.

I tried to look into other schedulers where there is one in it, but I wasn't able to find it.

 

Thanks in advance.

 

Greetings,

Max

Max
Top achievements
Rank 1
 answered on 14 Mar 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
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
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?