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

[Solved] How to get the number of values in Grid using Java Script

1 Answer 14 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.
Karthikeyan
Top achievements
Rank 1
Karthikeyan asked on 10 Feb 2012, 02:22 PM
Hi All,

I need to get the number of records in the Telerik Grid (Razor engine) from the java script, so that I could enable or disable a button in the View page.

Something like this,
<script type="text/javascript">
function Grid_onDataBound(e){
    var noOfRecords = e.data.count;
}
</script>

Is it possible? Please provide me the correct properties if any.
Thanks in Advance,
Karthik R

1 Answer, 1 is accepted

Sort by
0
Karthikeyan
Top achievements
Rank 1
answered on 15 Feb 2012, 11:12 AM
var noOfRecords = $("#telerikGrid").("tGrid").total;

Regards,
Karthikeyan R
Tags
Grid
Asked by
Karthikeyan
Top achievements
Rank 1
Answers by
Karthikeyan
Top achievements
Rank 1
Share this question
or