Telerik Forums
Kendo UI for jQuery Forum
2 answers
310 views
I am trying to use the server paging on a Kendo Grid.  However, when I click the a different page the call to the server is made twice.
$("#table").kendoGrid({
dataSource: {
transport: {
read: {
url: "/Analysis/addPortalDatasetstoTable",
data: { dataType: DatasetIdModel.dataType, dimensionsType: DatasetIdModel.dimensionsType, dsId: arr },
type: "POST",
dataType: "json",
traditional: true
}
},

schema: {
data: "data",
total: "total"
},
pageSize: 20,
serverPaging: true
},
height: 430,
filterable: true,
sortable: true,
pageable: true,
columns: [
{ field: "name", title: "Series Name", width: "130px" },
{ field: "category", title: "Category", width: "130px" },
{ field: "value", width: "130px" }
]

});


server call:
public JsonResult addPortalDatasetstoTable(DatasetIdModel model, int pageSize, int skip)
Petur Subev
Telerik team
 answered on 23 Apr 2013
1 answer
83 views

Hi,

I was tryinng use kendo grid and everythying works fine when I include kendo.all.min.js or kendo.web.min.js  in my page but it throws null reference exception when I use kendo.grid.min.js. I am using Jquery 1.9.1 and the latest kendo scripts I recently donwloaded. is there anything I missed?  the issue happens also for Kendo drop down and others too.

Thanks,
Ephrem
Atanas Korchev
Telerik team
 answered on 23 Apr 2013
1 answer
1.5K+ views
Hi, when I delete a row from a grid using a destroy command column, should it filter directly through to the dataSource's destroy transport? or do I have to manually code a remove event handler on the grid?
Alexander Valchev
Telerik team
 answered on 23 Apr 2013
6 answers
967 views
Hi,

I run into some problem with validator control from Kendo. I use one form in dialog Window for adding and editing existing data. This form validates just fine, but since I use it more than once with various data I have to somehow clear validation messages for each new instance of editing window.

It would be really nice to have a function like clearMessages()
Right now I overcame this issue by taking validation messages into seperate <span> object and modyfing their HTML with jQuery.
Rosen
Telerik team
 answered on 23 Apr 2013
1 answer
127 views
I have a grid.  The grid displays a name from a value from a popup from a custom template.  (For example the name field is Category, the drop down binds to PK numeric values, but the name binds to the category name).

Other columns in the grid for the selected row serialize to the grid for text fields just fine, and I can see the changes after the update is issued in the grid.  However the "Category" column does. This is likely because the bound data on the popup form is the numeric CategoryId, while the column shown and bound in the grid binds to a separate Name field, just Category.

How do I keep those in sync?
Cynthia
Top achievements
Rank 1
 answered on 22 Apr 2013
1 answer
149 views
I am using a kendo grid with an Generic Handler ashx .net handler in the back end. Everything works fine in Chrome/FF.

In IE10, I can make changes to the data, and everything appears to work. But if I navigate away form the page, and then back, I see the old data before my edits. Clicking the refresh button then shows the correct data with the new value I put in. No errors show up in the console.existingTasks

 This is 100% reproducible: launch example, to to tasks.aspx. Change data and save. Click home link. Click tasks link, and see that stale data is there. Click refresh, and see the data you previously entered.

I have tried putting IE10 in compat. mode, that that makes it so that the entire grid does not even render.
Shea
Top achievements
Rank 1
 answered on 22 Apr 2013
2 answers
84 views
I have a grid with a mode. I have defined the required field in the model as such:
WorkTypeID: { type: "number", validation: { required: true } },
If don't set a value for the at field, I am still able to save. Is there a way I can prevent the user from saving without choosing a value for this field?
Shea
Top achievements
Rank 1
 answered on 22 Apr 2013
4 answers
80 views
Hi, I'm wondering if there is a fix for a bug that I found. I looked but I wasn't able to find mention of in other threads.

To reproduce:
  1. Type anything into a blank editor
  2. Bold the first part
  3. Select all and delete
  4. Type anything
The bold button is off but all subsequent text is bold and I am unable to un-bold it.
Lee
Top achievements
Rank 1
 answered on 22 Apr 2013
4 answers
52 views
I was able to reproduce this even on the demo site.
For the editor clear out the existing content.
1. Type Line 1 then hit enter
2. Type Line 2 then hit enter
3. Put cursor at the start of Line 2
4. Drag up to the beginning of line 1
5. Hit delete.

The text "Line 2" is not .75em.
Looking at the source, originally the text is two paragraphs.  After deleting the line 2 text is a span with an inline style of font-size= .75em

Is there a way to not have this span tag add inline styling.
Lee
Top achievements
Rank 1
 answered on 22 Apr 2013
1 answer
191 views
Hi,

I have a value that I am reading from a database as a 1 or 0 that I want to display in a list view as YES or NO and when editing as a checkbox...

I succesfully set the template to show YES or NO by using this code:
<div>#if(sup==1){#YES#}else{#NO#}#</div>

but I can not get the edit_template to show checked when sup == 1... it always displays unchecked.
Can you help with the proper syntax to read this value for a checkbox in an edit_template?

Thank you,
Andrew
Alexander Valchev
Telerik team
 answered on 22 Apr 2013
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
Drag and Drop
Application
Map
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
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?