RadGrid with RadClientDataSource -t

2 posts, 0 answers
  1. Rafal Tynski
    Rafal Tynski avatar
    14 posts
    Member since:
    Oct 2009

    Posted 13 Sep Link to this post

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test003.aspx.cs" Inherits="Test003" %>
    <!DOCTYPE html>
    <head runat="server">
        <form id="form1" runat="server">
            <telerik:RadScriptManager runat="server" ID="rsmMain"></telerik:RadScriptManager>
                    <Select EnableCaching="false" Url="../api/test"  RequestType="Post" />
                <Model ID="Id">
                    <telerik:ClientDataSourceModelField FieldName="Id" DataType="Number"  />
                    <telerik:ClientDataSourceModelField FieldName="Name" DataType="String" />
                    <telerik:ClientDataSourceModelField FieldName="Category" DataType="String" />
                    <telerik:ClientDataSourceModelField FieldName="Price" DataType="Number" />
        <br />
        <telerik:RadGrid runat="server" ID="rgMain"
             AllowMultiRowSelection ="true"
            <MasterTableView AutoGenerateColumns="false" ClientDataKeyNames="Id" HierarchyLoadMode="Client">
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name" UniqueName="Id"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Category" HeaderText="Category" UniqueName="Category"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Price" HeaderText="Price" UniqueName="Price"></telerik:GridBoundColumn>
                <PagerStyle AlwaysVisible="true" Mode="NextPrevNumericAndAdvanced" />
                    <asp:Literal runat="server" ID="Test">TEST</asp:Literal>
                <ClientEvents OnCommand="OnGridCommand" OnGridCreated="OnGridCreated" OnDataBinding="OnDataBinding" OnDataBound="OnDataBound" />
        <br />
        <telerik:RadCodeBlock runat="server" ID="rcbTest">
            <script type="text/javascript">
                var gcId = "";
                var countRg = 20;
                OnRequestEnd = function (sender, args) {
                OnDataParse = function (sender, args) {
                    var response = args.get_response();
                    countRg = response.count;
                    if (response) {
                OnCountRequested = function (sender, args) {
                OnGridCommand = function(sender, args) {
                    if (args.get_commandName() == "Page")
                        console.log("Page Index Changed");
                    else if (args.get_commandName() == "PageSize") {
                        if (args.get_tableView().get_pageSize() > 50) {
                            console.log("Page Size Changed BIG");
                        console.log("Page Size Changed");
                    else {
                        console.log('COMMAND:' + args.get_commandName());
                OnGridCreated = function (sender, args) {
                    gcId = sender.get_id();
                    console.log('Grid Created');
                    var mtv = sender.get_masterTableView();
                OnDataBinding = function (sender, args) {
                OnDataBound = function (sender, args) {



    Is a part of my code.
    When I filtring allways ask twice. 
    On start asks triple time.
    When I showing Comand Panel and clikd Refresh asking four times.


    What i Do wrong, any sugestion.



  2. Attila Antal
    Attila Antal avatar
    5 posts

    Posted 18 Sep Link to this post

    Hello Rafal,

    Thank you for bringing this issue to our attention, which was logged as a bug. I've updated your Telerik points as a token of gratitute.

    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top