This question is locked. New answers and comments are not allowed.
Hi There,
After reading posts in telerik forums; I started to use vb10 ( vs 2010). In vb10,
1. i saw lot of exceptions in IntelliTrace, like /views/Shared/EditorTemplates/DateTime.aspx
/views/Shared/EditorTemplates/String.ascx etc. while gird.Render() gets executed.
2. My grid loaded successfully, but I couldn't see any operations getting executed; like when I click on "Add New Record" my page just get refreshed, same thing happens while I click "Edit" button.
Please help me regarding this. My code is written as below;
View:
Dim transGrid = Html.Telerik().Grid(City)().Name("City").Pageable(Function(p) p.PageSize(30).Sortable().Scrollable().Filterable().Groupable().Footer(True)
'Data key assignment
transGrid.DataKeys(Function(key) key.Add(Function(c) c.id))
'Data Binding Ajax
transGrid.DataBinding(Function(dataBind) dataBind.Ajax().Select("_Index", "City").Enabled(True) _
.Insert("_Create", "City").Enabled(True) _
.Update("_Edit", "City").Enabled(True) _
.Delete("_Delete", "City").Enabled(True) _
)
'Grid will be editable
transGrid.Editable(Function(e) e.Mode(GridEditMode.PopUp).Enabled(True))
'Toolbar Add new Button
transGrid.ToolBar(Function(cmd) cmd.Insert())
transGrid.Columns(Sub(columns)
columns.Bound(Function(c) c.id)
columns.Bound(Function(c) c.name)
columns.Bound(Function(c) c.description)
columns.Bound(Function(c) c.createdbyuserid)
columns.Bound(Function(c) c.createddatetime)
columns.Bound(Function(c) c.modifieddatetime)
columns.Bound(Function(c) c.deleteflag).ClientTemplate("<input type='checkbox' disabled='disabled' name='dflag' <#= deleteflag #>")
columns.Command(Sub(cmd)
cmd.Edit()
cmd.Delete()
End Sub).Title("Command")
End Sub)
transGrid.Render()
Please help.. Thanks and Regards,
Jigar
After reading posts in telerik forums; I started to use vb10 ( vs 2010). In vb10,
1. i saw lot of exceptions in IntelliTrace, like /views/Shared/EditorTemplates/DateTime.aspx
/views/Shared/EditorTemplates/String.ascx etc. while gird.Render() gets executed.
2. My grid loaded successfully, but I couldn't see any operations getting executed; like when I click on "Add New Record" my page just get refreshed, same thing happens while I click "Edit" button.
Please help me regarding this. My code is written as below;
View:
Dim transGrid = Html.Telerik().Grid(City)().Name("City").Pageable(Function(p) p.PageSize(30).Sortable().Scrollable().Filterable().Groupable().Footer(True)
'Data key assignment
transGrid.DataKeys(Function(key) key.Add(Function(c) c.id))
'Data Binding Ajax
transGrid.DataBinding(Function(dataBind) dataBind.Ajax().Select("_Index", "City").Enabled(True) _
.Insert("_Create", "City").Enabled(True) _
.Update("_Edit", "City").Enabled(True) _
.Delete("_Delete", "City").Enabled(True) _
)
'Grid will be editable
transGrid.Editable(Function(e) e.Mode(GridEditMode.PopUp).Enabled(True))
'Toolbar Add new Button
transGrid.ToolBar(Function(cmd) cmd.Insert())
transGrid.Columns(Sub(columns)
columns.Bound(Function(c) c.id)
columns.Bound(Function(c) c.name)
columns.Bound(Function(c) c.description)
columns.Bound(Function(c) c.createdbyuserid)
columns.Bound(Function(c) c.createddatetime)
columns.Bound(Function(c) c.modifieddatetime)
columns.Bound(Function(c) c.deleteflag).ClientTemplate("<input type='checkbox' disabled='disabled' name='dflag' <#= deleteflag #>")
columns.Command(Sub(cmd)
cmd.Edit()
cmd.Delete()
End Sub).Title("Command")
End Sub)
transGrid.Render()
Please help.. Thanks and Regards,
Jigar