This is a migrated thread and some comments may be shown as answers.

Grid features\problems

4 Answers 112 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 2
Veteran
Steve asked on 23 Aug 2011, 04:42 PM
Ok, so here's my definition

$("#mediaitems").kendoGrid({
                               dataSource: data.mediaitems,
                               scrollable: true,
                               sortable: true,
                               pageable: false,
                               databound: onKendoGrid_DataBound,
                               columns: [
                                   { field: "rating", title: "", width: "100px" },
                                   { field: "title", title: "Title" },
                                   { field: "speaker", title: "Speaker" },
                                   { field: "date", title: "Created", width: "200px", template: '<#= kendo.toString(date,"dd MMMM yyyy") #>' }
                               ]
                           }
);

(see attached for the result)

1) Template doesn't render in the specified format
2) How do I define classes on the columns so I can right-align the text in the date column
3) "Scrollable" seems to be gimpy in my nested splitter scenario...doesn't work at all
4) databound event isn't triggering...I need to attach jQuery click events to the row data when it's finished

4 Answers, 1 is accepted

Sort by
0
Steve
Top achievements
Rank 2
Veteran
answered on 23 Aug 2011, 05:00 PM
Clicking a selected row item causes the row to go un-selected then re-select itself
0
Steve
Top achievements
Rank 2
Veteran
answered on 23 Aug 2011, 05:18 PM
blank title defintion (title: "") doesnt give me a blank column header it just inherits the field name instead

(Do we get telerik points for any of this? :)
0
Rosen
Telerik team
answered on 24 Aug 2011, 08:49 AM
Hello Steve,

Straight to your questions:

- Could you verify that this is a date object not a string for example
- This currently is not supported, you should add the classes after the fact
- Indeed, dataBound event is not triggered in this scenario, it has been fixed and will be available with the next version
- In order to remove column title it should be set to " " string, as empty string will be treated as "not set"
- The selection behavior you have described will be fixed with the next release

Regards,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Steve
Top achievements
Rank 2
Veteran
answered on 24 Aug 2011, 02:43 PM
Thanks!

//fixed it
(kendo.toString(new Date(date),"dd MMMM yyyy"))
Tags
Grid
Asked by
Steve
Top achievements
Rank 2
Veteran
Answers by
Steve
Top achievements
Rank 2
Veteran
Rosen
Telerik team
Share this question
or