Telerik Forums
Kendo UI for jQuery Forum
3 answers
10.1K+ views
Hi,

I'm looking for a list in the documentation for Data Source that defines what types of fields can be defined for a configured schema. The code below is from your example here: http://demos.kendoui.com/web/grid/editing-custom.html 

For example: UnitPrice is specified as type "number". Where can I get the list of all these types? 

var dataSource = new kendo.data.DataSource({
                       pageSize: 30,
                       data: products,
                       autoSync: true,
                       schema: {
                           model: {
                             id: "ProductID",
                             fields: {
                                ProductID: { editable: false, nullable: true },
                                ProductName: { validation: { required: true } },
                                Category: "Category",
                                UnitPrice: { type: "number", validation: { required: true, min: 1} }
                             }
                           }
                       }
                    });
Alex Hajigeorgieva
Telerik team
 answered on 13 Mar 2019
1 answer
670 views

 

 

Hello,

I have Kendo Upload control inside kendo modal window ("kendoWindow") in my MVC project. How do I use ajax call to pass uploaded file to server/Controller?

 Thanks  

Ivan Danchev
Telerik team
 answered on 12 Mar 2019
3 answers
4.9K+ views

I am currently debugging some issues we are having with trying to enable the 'All' option for page sizes.  Based on what I've found out, it appears as if the <select> that holds the page size options is setting the value for All to 'All' instead of the total number of records.  Is this how this is supposed to work?

 

Is there a list of common issue with trying to get this to work I can try to look through?

 I can add 

          pageable: {  
                        pageSizes: [ 10,25,50,100,'All' ],  
                        buttonCount: 5, 
                        message: {
                                  empty: 'No Data',
                                  allPages:'All'
                                 }
                          }  , 

This adds an 'All' option, but if you select it nothing happens.

I can add the following to the end of my $(document).Ready()

var pageSizes = [{ text: \"10\", value: 10 }, { text: \"25\", value: 25 }, { text: \"50\", value: 50 }, { text: \"100\", value: 100 },{ text: \"All\", value:" + Data_Table.Rows.Count + "  }];
$('.k-pager-sizes select[data-role=\"dropdownlist\"]').data('kendoDropDownList').setDataSource(new kendo.data.DataSource({ data: pageSizes }));

Which helps, but seems like a hack.

Any advice would be greatly appreciated.

Alex Hajigeorgieva
Telerik team
 answered on 12 Mar 2019
1 answer
256 views

Hi,

Inline editor is for a lot of reasons better than standard editor.

I'm working on "push widgets" inside a editing document (Gauges, Charts, Maps...)

In standard mode this is realy hard, but inline mode is not my better mode!

So, I don't undertand why we cant work in standard mode using a div...

The only difference is put the toolbar in a fixed position

This simply require a parameter as toolbarContainer, if specified the engine can use it for toolbar rendering.
No?

marc.

 

Dimitar
Telerik team
 answered on 12 Mar 2019
4 answers
589 views

Hello,

appear

I have a grid with the option columnMenu: true. Is it posible that in the contextual menu the columns appears orders alphabetical??.

Thanks

Tsvetina
Telerik team
 answered on 12 Mar 2019
1 answer
223 views

Hello,

 

I have a 'hamburger' icon to open up a responsive panel on the menu, and am trying to remove it when the device is a desktop when the width is greater than the breakpoint. However, the menu item does not contain any text, it just shows the hamburger icon provided by font-awesome:

Code:

{ text: "", spriteCssClass: "fa fa-search", url: "javascript:createSearchWindow();"},
{ text: "", spriteCssClass: "fa fa-bars", url: "javascript:toggleSideBarPanel(<cfoutput>#layerNumber#</cfoutput>);" }

There is a remove method for the menu, but by looking at the example it needs to have a reference to the tree. Is it possible to remove the last item (fa fa-bars) and not the item above it that pops up the search window? 

I have a really complex responsive panel, placed in several div's, but it does not work when the screen size is above the breakpoint. See http://gregoryalexander.com/blogCfc/client/ using a desktop device above 1280 pixels.

gregory
Top achievements
Rank 1
 answered on 12 Mar 2019
8 answers
2.8K+ views

Hello

I want to completely control the server side sorting of my grid. Meaning, when I click a column header, I don't want the grid to do anything - I want to catch the sorting event, update some local parameters in my app, and use a fetch function that I have in my app.

All I want the column header to do is to present the arrow in the relevant direction.

I don't want to use transport.read and serverSorting=true because I seems to have no control over when this function is called.

I'm building my columns from the data received so I need to separate the data fetch from the grid's initial creation.

I tired solving this by catching a change event on the dataSource, and if the event.sender.sort() exists with the relevant parameters, it works, other than the fact that first the grid still sorts the data at client side, and only then it fetches my server side data, which causes a delay, bad performance (~1000 records/30 columns), and unnecessary sorting. event.preventDefault() doesn't stop the client side sorting from happening.

I'm currently using ui-grid (open source angular grid) which allows me to do so - just control the sorting functionality completely. Is that achievable with kendo grid?

Tsvetomir
Telerik team
 answered on 11 Mar 2019
3 answers
592 views

Hello,

1. When enabled pageable and filter data to disaplay message "No records to display". Then message "No records to display" is shown after pagable toolbar

https://dojo.telerik.com/IgUwuYAn/10

2. While data not loaded size of tree is bigger then his container. Look this:

https://dojo.telerik.com/IgUwuYAn/11

3. When default expanded: false, page toolbar is not updated after read data.

Try: expand some rows for add 2 pages, then press refresh, you will see 2 buttons of pages, but one row.

https://dojo.telerik.com/IgUwuYAn/12

In my app i have more then 1 page data, but i not see other pages buttons

Martin
Telerik team
 answered on 11 Mar 2019
4 answers
228 views
Hi,
We want to plot values (on Y axis) against date (on X axis). For a plotted line, we want to show it differently after some date. Say y axis has date from 1st to 31st. We want line to be smooth from 1st to 20th indicating good data, and line fro 20th to 31st to be dotted indicating uncooked data. This line corresponds to one single entity/label. There could be multiple lines, one corresponding to each label/entity as well.

How to do  this?
raju
Top achievements
Rank 1
 answered on 11 Mar 2019
3 answers
1.3K+ views

Hello,

I've been struggling with this for quite a while now with no good results.

We are going to create stacked bar charts with the labels next to them as I have in the image

 Is there a way to create single stack chart with the label beside that?

 

Thanks

 

 

 

Marjaneh
Top achievements
Rank 1
 answered on 11 Mar 2019
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
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?