Telerik Forums
Kendo UI for jQuery Forum
1 answer
132 views

Hi all!

 

I have a simple grid which is initially empty (I have autoBind false) and I fill it afterwards with the following:

grid.setDataSource(values);
grid.dataSource.read();

 

 

 

this is working fine so far, and the grid reflects the data. The issue comes when trying to do some server-side operation, like sorting or editing data. When I click on the 'Save Changes' button, or try to sort on column, nothing happens, the controller is not reached. What am I doing wrong? Here is my grid:

$(this.sharpID).kendoGrid({
    dataSource: {
        transport: {  
            read: {
                url: "training/Read",
                dataType: "jsonp"
            },                            
            update: {
                url: "training/Update",
                dataType: "jsonp"                                   
            },
            destroy: {
                url: "/training/Destroy",
                dataType: "jsonp"
            },
            create: {
                url: "/training/Create",
                dataType: "jsonp"
            }
        },
        batch: true,
        schema: {
           model: {     
              id: "ITEM",                             
              fields: {
                  "ITEM": { editable: true },
                  "AREA": { editable: false },
                  "YEAR": { editable: false },
                  "MONTH": { editable: false },
                  "DAY": { editable: false },
                  "QTY": { editable: true }
               }
           }
       }
    },
    editable: true,                       
    autoBind: false,                               
    columns: structure.columns,  
    toolbar: ["save","cancel"],         
    sortable: {
        mode: "multiple"
    },                                     
});

 

 

Thanks in advance.

grid.setDataSource(values);
grid.dataSource.read();
Boyan Dimitrov
Telerik team
 answered on 15 Jul 2016
1 answer
523 views

Hi All,

If I return a blank or missing value as .property = '' (empty string) and use <span data-bind="text: property">, the span is skipped and causes layout issues. The worst being that an entire header, complete with navigation buttons, fails to show.

As an alternative, I was returning '.' (a dot rather than empty string) but this looks ugly. Finally, I am returning '&nbsp;'. This required a change to <span data-bind=": property">. All is now displaying great.

I am wondering about the implications and risks of binding to  rather than text. I guess the main risk is of HTML injection. Should I be worried? Is there an alternative way?

TIA,

David

Dimiter Topalov
Telerik team
 answered on 15 Jul 2016
23 answers
601 views
Hello,

I am using kendo.culture("de-DE") but Looks like Work Week is still in english. When the Editor Pop up Windows Comes up and i try to edit/add recurring Event , the controls are all messed up and text overlapped by control.

is there a way to localize in mvc razor like this JSbin sample
http://jsbin.com/edajuh/1/edit

Thanks

Anamika
Vladimir Iliev
Telerik team
 answered on 15 Jul 2016
1 answer
289 views

Hi,

I am using kendo UI Scheduler and my resource entity employee has properties like role.I was not able to access the role into groupHeaderTemplate.

 

groupHeaderTemplate: "<div class=alignleft><strong><i>#=text#</i><br>#=role#</strong></div>"

Unfortunately i get referrence error : role is not deined.

Below is my data

{
        text: "Adams",
        value: 1,
        role: "Supervisor"
    }, {
        text: "Anderson",
        value: 2,
        role: "Sr. Agent"
    }

 

I've been looking around within the documentation but I didn't find a way 

Can i get a help with the possibilities to achieve this.

 

 

Vladimir Iliev
Telerik team
 answered on 15 Jul 2016
1 answer
1.8K+ views

My boss told me to use the kendo UI to do the odata operation which is built in functionality of the grid. 

At first i told him when he told me to use the odata that we would need to modify our webapi to write odata but he said no we don thave to chanage that. 

 

Now i have been trying to read about the Grid and trying to see if in the detail it has mentioned that what grid has to do with oData or what benfit i am getting out of it.  So can you guide me please. 

Dimo
Telerik team
 answered on 15 Jul 2016
18 answers
1.2K+ views

I am using a Kendo Grid in which all data are bounding with one fixed row checkbox as the first row of he grid (which is hard-coded) I want this row to be freezed ;For that I have used "locked = true" in the columns . But here the problem if I use this my next jquery functions are not working and foremost Let us suppose there are 10 item (pagination) for that it is showing only 9 checkboxes but If i will change item per page then It works fine how to Resolve this type of Error

 

One Doubt is

If I putting Checkbox Row as Locked=true then is it become outside of the parent Grid i.e required to find the particular check box for that row I am using parent function to find the particular check box of that row after putting locked=true then parent function is not working

 

On click of row (td)  that particular checkbox should checked and if it checked then it should uncheck

If I put locked = true then my function is not working else it's working fine 

My function are

 

 function Checkboxselection(){
$('td').click(function(){

      var finder = $(this).parent();
       console.log(finder);
      var ischecked = finder.find(".childCheckbox").prop('checked'); 
      console.log(ischecked);  
           if(ischecked==true){               
          finder.find(".childCheckbox").prop('checked',false);
        }
      else{
           finder.find(".childCheckbox").prop('checked',true);
         }  
         });  

 }

 

 

 

Rosen
Telerik team
 answered on 15 Jul 2016
2 answers
187 views

I'm having 2 different issues with the scheduler's UI. First, the navigation buttons circled the image attached are not matching the height of the "Today" button. I haven't made any modifications to any of the css or js files so I'm not sure what is causing this issue. What can I do to fix this?

Second, the view list is dropping to a newline when the date displayed extends too far. How can I force the view list into the "collapsed" state so that my toolbar isn't so large?

 

Thanks,

Devin

Devin
Top achievements
Rank 1
 answered on 14 Jul 2016
4 answers
287 views

I have a  REST service that returns data. with Hal+json format. How do I consume the response in my Kendo Angular grid. My angular controller looks like this, but doesn't return anything:

...

vm.mainGridOptions = {

 dataSource: {
        transport: {
          read: {
            url: 'http://localhost:8080/people',
            dataType: 'jsonp'
          }
        },...

.

Boyan Dimitrov
Telerik team
 answered on 14 Jul 2016
5 answers
3.0K+ views
i have a kendo grid for data entry app which adds rows to the bottom. i want the vertical scroll bar to appear after 10 rows. i do not want to set a height initially to the grid.
Pavlina
Telerik team
 answered on 14 Jul 2016
1 answer
130 views

I have a dozen or so (hierarchical) rows in a treelist that contains five columns.  However, when I run JAWS, I see the grid caption and 5 x 1 (which I assume to relate to the five columns and the header row).  I also see that this is the case when I run it agains the treelist demo (http://demos.telerik.com/kendo-ui/treelist/index) -- Except that I see the grid information followed by 6 x 1 (there are six columns in the demo treelist).

Is this the correct behavior of the treelist with JAWS or is there something I'm missing (and that the demo is missing)?

Alex Gyoshev
Telerik team
 answered on 14 Jul 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
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?