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

telerik.common.min.js file error

2 Answers 51 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 09 May 2011, 11:06 AM
Hi,


I am facing this error "Microsoft JScript runtime error: Object doesn't support this property or method" in  telerik.common.min.js. my telrik version is 2011.1.315.235.In this version i face this problem and  before this version my function is working good .

see this my code 
=  Html.Telerik()
                     .Grid<SAMA.DataModels.Common.AssignSplitSubject>()
            .Name("ASSGrid")
            .HtmlAttributes(new { style = "display:none;" })
                                                    .ClientEvents(events => events.OnError("OnTelerikError").OnDataBound("AssignSplit_DataBound").OnDataBinding("AssignSplit_DataBinding"))
            .DataBinding(dataBinding => dataBinding.Ajax().Select("AssignSplitSubjectDetail", "School", new { classSubjectID="-1" }))
            .Columns(columns =>
            {
                columns.Bound(o => o.Student_Name).Title("Student Name")
                                             .Width(200)
                                             .ReadOnly(true);
                columns.Bound(o => o.Student_Number).Title("Student Number")
                                             .Width(100)
                                             .ReadOnly(true).HtmlAttributes(new {Style ="text-align:center"}).HeaderHtmlAttributes(new {Style ="text-align:center"});
                columns.Bound(o => o.Student_Subject_Split_Flag).Title("Student Subject Split")
                                             .Width(150)
                                             .ClientTemplate("<input id=SSSF type=checkbox value='<#=Class_Student_ID #>' <#=Student_Subject_Split_Flag?'checked':''#> /> ").HtmlAttributes(new { Style = "text-align:center" }).HeaderHtmlAttributes(new { Style = "text-align:center" });
 
            })
            .Scrollable()
    %>
 
 
    <button id="UpdateASS" class="t-button t-state-default" onclick="AssignSplitSubjectUpdate();" style="display:none">Update</button>
 
<script type="text/javascript">
    var assUpdateURL = '<%= Url.Action("AssignSplitSubject_Update", "School") %>';
   
</script>
 
 
function AssignSplitSubjectUpdate() {
    var $checkedRecords = $(':checked');
    var classSubjectID = $('#Subjects').data('tDropDownList').value();
    $.post(assUpdateURL, { classSubjectID: classSubjectID, studentIDs: $checkedRecords.map(function () { return this.value; })  });
      
}

my function in  jquery file  when in click my button i raise that problem. In previous version it's working good. how i solve this problem now  it's very argent .This same code working in previous version .


shanker.B 

2 Answers, 1 is accepted

Sort by
0
Gaurav
Top achievements
Rank 1
answered on 10 May 2011, 06:19 PM
I am also facing similar issue. Can somebody from Telerik please reply.
0
Atanas Korchev
Telerik team
answered on 11 May 2011, 07:09 AM
Hi Gaurav,

 This is not a known issue and we cannot reproduce it in our local tests. A sample application which shows the JavaScript error would help us get back with a solution.

All the best,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
shanker bangari
Top achievements
Rank 1
Answers by
Gaurav
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or