This question is locked. New answers and comments are not allowed.
I recently switched the below grid from in-line editing to in-cell editing.
Ever since then, I've gotten javascript errors that prevent the SpeedDialLabel from displaying correctly:
"ButtonNumber is not defined"
How can I reference ButtonNumber from the SpeedDialLabel in a way that won't cause the above error?
Ever since then, I've gotten javascript errors that prevent the SpeedDialLabel from displaying correctly:
"ButtonNumber is not defined"
How can I reference ButtonNumber from the SpeedDialLabel in a way that won't cause the above error?
var grid = Html.Telerik().Grid<M5Portal.Models.SpeedDialModel>()<br> .Name("SpeelDialGrid")<br> .ToolBar(commands =><br> {<br> commands.SubmitChanges();<br> })<br> .DataBinding(dataBinding => dataBinding.Ajax()<br> .Select("SpeedDialBinding", "Profile")<br> .Update("SpeedDialEdit", "Profile")<br> .Delete("SpeedDialDelete", "Profile")<br> )<br> .Columns(columns =><br> {<br> columns.Bound(o => o.ButtonNumber).Width(40).Title("");<br> columns.Bound(o => o.SpeedDialLabel).ClientTemplate("<# if(3 > ButtonNumber) { #><strong><# } #><#= SpeedDialLabel#><# if(3 > ButtonNumber) { #></strong>  <img tooltip=\"Cannot assign speed dials to first two lines.\" src=\"/Content/Images/tooltip.png\" class=\"m5-tooltip-image\"><# } #> ");<br> columns.Bound(o => o.Number);<br> })<br> .ClientEvents(action => action.OnEdit("onGridEdit").OnDataBound("onDataBound"))<br> .Editable(editing => editing.Mode(GridEditMode.InCell))<br> .DataKeys(key => key.Add("ButtonNumber"))<br> .Scrollable(c => c.Height("300px"));<br> grid.Render();<br> %>