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

[Solved] please help me telerik mvc grid pop problem

0 Answers 58 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
shanker bangari
Top achievements
Rank 1
shanker bangari asked on 27 Sep 2010, 06:29 AM
Hi Telerik team,

     I am doing one project on telerik mvc .My problem is mvc grid pop is not working .it's not pop in edit and addnewrecord button click   .

.please how to solve this problem i getting this
Microsoft JScript runtime error: Object doesn't support this property or method
error in  ." telerik.grid.editing.min.js"  script file 


 my code is below 
<%= Html.Telerik().Grid<SAMA.DataModels.Common.ClassScreen>()
                .Name("classGrid")
                                        .ClientEvents(events => events.OnError("OnTelerikError"))
                                         .ToolBar(tbar => tbar.Insert().HtmlAttributes(new { @style = ((Permission)ViewData["CRUD"]).Insert ? "" : "display:none;" }))
                                             .DataKeys(keys => keys.Add(o => o.class_id).RouteKey("class_id"))
              .DataBinding(dataBinding => dataBinding.Ajax()
                                                                                      .Select("class_Detail", "School")
                                                                                       .Insert("class_Insert", "School")
                                                                                       .Update("class_Update", "School")
                                                                                       .Delete("class_Delete", "School"))  
            .Columns(columns =>
            {
                columns.Bound(o => o.class1).Title("Class").Width(100);
                columns.Bound(o => o.section).Title("Section").Width(150);
                columns.Bound(o => o.Class_Category_drop).Title("Class Category")
                                            .Width(170)
                                            .ClientTemplate("<#= Class_Category_drop?Class_Category_drop.Text:'' #>");
                columns.Bound(o => o.Room_drop).Title("Room")
                                           .Width(170)
                                           .ClientTemplate("<#= Room_drop?Room_drop.Text:'' #>");
                columns.Bound(o => o.Incharge_Teacher).Title("Incharge Teacher")
                                             .Width(170)
                                             .ClientTemplate("<#= Incharge_Teacher?Incharge_Teacher.Text:'' #>"); ;
                columns.Bound(o => o.description).Title("Description").Width(100);
                columns.Bound(o => o.active).ClientTemplate("<input id=ddd type=checkbox disabled=true <#=active?'checked':'' #> /> ").Width(100);
                columns.Command(commands =>
                    {
                        commands.Edit().HtmlAttributes(new { @style = ((Permission)ViewData["CRUD"]).Update ? "" : "display:none;" });
                        commands.Delete().HtmlAttributes(new { @style = ((Permission)ViewData["CRUD"]).Delete ? "" : "display:none;" });
                    }).Width(170);
            })
            .Editable(editing => editing.Mode(GridEditMode.PopUp))
             .Pageable()
    %>


Tags
Grid
Asked by
shanker bangari
Top achievements
Rank 1
Share this question
or