jquery - Star rating inside a kendo grid -
so first off, diving world of jquery , kendo, having spent last few years webforms (and need working or else it's webforms gulag) bear me if stupid question.
i have functional kendo grid on web page, need allow users assign star rating contents of each row. unfortunately, kendo not provide star rating control, have been able find several third party controls.
i found 1 appears work, i'm not sure how work inside grid. best have been able define template contains star rating control , use contents of grid column. put initialization ( $("#stars").rateyo({rating:5}); ) inside "complete" callback of datasource. unfortunately first row ends initialized widget.
what need jquery widget render on each grid row?
if using kendo grid in mvc, here codes using:
@(html.kendo().grid<yourdatamodel>().columns(columns => { columns.bound(c => c.rating).title("rating").clienttemplate("#= mystartemplate(data) #")); //columns.bound more fields.... }) )
Comments
Post a Comment