Validation Not Firing after Window.AjaxRequest

2 posts, 0 answers
  1. sunil
    sunil avatar
    1 posts
    Member since:
    Mar 2014

    Posted 04 Mar 2014 Link to this post


    asp validation controls not firing after ajaxrequest been called.

    i'm calling a function with below code to refresh a grid.

    window[<My Grid Client ID>].AjaxRequest(<My Grid Unique ID>, 'Rebind');

    after grid refreshed, validation not firing on clicking of submit button for the first time. for the next click it is working fine.

    Hope this is due to ajax problem.

    does any one came across this scenario...?
  2. Konstantin Dikov
    Konstantin Dikov avatar
    1749 posts

    Posted 07 Mar 2014 Link to this post

    Hello Sunil,

    In order to initiate grid refresh you should find the client-side API of the grid and use the MasterTableView to fire "Rebind" command. Bellow is a simple example of that approach:
    <telerik:RadCodeBlock runat="server">
        <script type="text/javascript">
            function refreshGrid() {
                var grid = $find("<%=RadGrid1.ClientID%>");
                var masterTableView = grid.get_masterTableView();
    <telerik:RadButton ID="RadButton1" runat="server" Text="Refresh grid" AutoPostBack="false" OnClientClicked="refreshGrid">
    <telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource">

    More information on this is available at the following help articles:

    Hope that helps.

    Konstantin Dikov

    DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

  3. DevCraft R3 2016 release webinar banner
Back to Top