Telerik Forums
Kendo UI for jQuery Forum
1 answer
231 views
I am trying to implement serverPaging sorting by using Webapi.
I use angularjs in UI side.

i have implemented server side code. which accept kendoRequest and returns kendoResponse.
it returns data as well.
but grid trying to load it throughs undefined is not a function, i have attached screenshot of error.

here is my code

 $scope.mainGridOptions = {
        columns:["Country","RiskReference"],
        dataSource: new kendo.data.DataSource({
            transport: {
                read: {
                    url: serviceBase + "api/Policy/GetPolicyPage/" + $scope.policyId,
                    type: "POST",
                    contentType: "application/json"
                },
                parameterMap: function (options, operation) {
if (operation === "read") {
  
return kendo.stringify(options);
                    }
                            
              return options;
                }
            },
            pageSize: 10,
            serverPaging: true,
            serverSorting: true
        }),
        sortable: true,
        pageable: true,
        resizable: true,
        selectable: "single cell",
        editable: "popup",
        schema: {
         
         data:"Data",
      
         total: "Count"
        },error: function (e) {
            console.log(e.statusText);
        }
    };



See attached file for data format return from my webapi service.

please review my code, is there anything am i missing?

regards,
Saad
Boyan Dimitrov
Telerik team
 answered on 06 Apr 2015
1 answer
94 views
MVC, v.2015.1.318

1. Filtering by ForeignKey.
When I try to filter on a ForeignKey column, the first choice of the value is ignored. On the second - ok.
http://demos.telerik.com/kendo-ui/grid/foreignkeycolumn -  had same problem

2. Change Value in ForeignKey.
My source:
...
.DataSource(dataSource => dataSource
                .Ajax()
                .Events(events =>
                    events.Error("errorHandler")
                    .Change("changeDS")
                   )
...
    .Update(update => update.Action("Update", "xxx", new { ... }))
...
function changeDS(e) {
        console.log(e.action);
}

...
If value in column in was null and I select new value, then "changeDS" and "Update" not called.


2013 version had no such problems.


Boyan Dimitrov
Telerik team
 answered on 06 Apr 2015
6 answers
1.3K+ views
I have a remote dataSource with about 20 different values. I have one value being used as the dataTextField for a tabstrip. I would like to use the rest of the values in the content of the tabstrip (perhaps in a template). Is there an example somewhere of this being done? all the documentation I can find shows simple text data with a single value in the content. I need to be able to edit multiple values in the content of the tabstrip. any help is appreciated.
Alexander Popov
Telerik team
 answered on 06 Apr 2015
1 answer
99 views
We're moving our application over to KendoUI and MVC.  We will be running both asp.net ajax and mvc side by side within our application and would like the look and feel to be the same.  We have the Metro skin for asp.net ajax but the KendoUI metro theme does not seem to match.  Can someone suggest the best match?  I realize that customizations will still need to be made.
Sebastian
Telerik team
 answered on 06 Apr 2015
3 answers
248 views
hello,

I want to change "workDayStart" and "workDayStart" but when I changed and I go to timelineMonth view the scheduler timeline control stopped work. How I can fix this ?

I attach photo with the problem

Best Regards
Vladimir Iliev
Telerik team
 answered on 06 Apr 2015
5 answers
1.2K+ views
Hi everyone,

    I'm using multiple window on the same page and i want to apply
different styles on which window. I try to write a wrapper over the
window so it can be identified in the css by id but that does not work.
This is the source:

<div class="wrapper">
     <div kendo-window="InitialisingApp">
     </div>
</div>

This is the result:
<div class="wrapper"></div>
<div class="k-widget k-window....">
    ..........................
</div>

Any ideas about this problem?
Thank you! Have a nice day!
Dimo
Telerik team
 answered on 06 Apr 2015
3 answers
277 views
These new responsive grid enhancements are nice, but they are not complete. As a result we have our own home-grown responsive solution. For the Responsive Grid, please add a "columns.maxScreenWidth" option as well. For bootstrap xs, we only show a "Mobile Column", which is a template, showing several columns, with their title in bold and value, each in a div in the template. For bootstrap sm and above, we hide the "Mobile Column". We also show increasing numbers of columns, like what is possible with using minScreenWidth option.  With only minScreenWidth, you are assuming all columns will be visible at the widest screen size.  That doesn't cover all the use cases, especially when we are discussing mobile usability.

Thanks,
--Ed
Dimo
Telerik team
 answered on 06 Apr 2015
1 answer
183 views
Hi,

How can I add a subnode to a node model without  the full datasource (which close all previous open nodes) ?
I use context menu to a add a node

Thanks in advance.
Kiril Nikolov
Telerik team
 answered on 06 Apr 2015
1 answer
161 views
Hello,

I'm loading grid data from JSON object and grid itself date format showing as we expect ("MM/dd/YYYY") but in the grid edit popup it showing like JSON format ("/Date(1414666849223)/").

Please give me your suggestions on how can i display same date format in popup as well and find the attached screen shot for your reference, how it displaying in grid edit popup.
Vladimir Iliev
Telerik team
 answered on 06 Apr 2015
1 answer
74 views
Hi,

I am using functions for transport and I realized that the requestEnd always fires with argument e being object with no additional properties like type, etc.

Is that the normal behavior?

Thanks
Alexander Popov
Telerik team
 answered on 06 Apr 2015
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
Drag and Drop
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?