How to update a asp.net gridview in ajax callback?

  1. #1

    How to update a asp.net gridview in ajax callback?



    Dear Sir:


    I need read data from database without a static json format. For example,I read tree tables from database in a common programe .So, a static json format isn't fit to me.a common asp.net gridview with sql can do this.but,I have a poblem in coolite button ajax callback :the asp.net gridview can't refresh .


    my code like this:
     </PRE>   protected void myajaxCallback(object Sender,AjaxEventAgrs e){</PRE>   this.odsGrid.whereClause="select * from tb_test";</PRE>   this.gridview1.databind();</PRE>}</PRE>
    </PRE>in face ,the gridview1's content is uploaded.but the UI isn't update!How to update the UI?I'm use a anthem.net gridview.</PRE>thanks</PRE>
  2. #2

    RE: How to update a asp.net gridview in ajax callback?

    Currently the Coolite Toolkit controls can not update non-toolkit controls during an AjaxEvent/AjaxMethod call.*

    The response from the AjaxEvent can only be JavaScript which gets executed on the client-side upon a successful return trip.


    Hope this helps.


    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] How to show mask on ajax update panel update
    By egvt in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 18, 2012, 9:36 PM
  2. CheckBox Update Problem in Gridview.
    By Ganesh3.shirsath in forum 1.x Help
    Replies: 0
    Last Post: Jan 07, 2011, 9:03 AM
  3. ajax request failure callback function help
    By [WP]joju in forum 1.x Help
    Replies: 1
    Last Post: Apr 30, 2010, 9:52 AM
  4. Replies: 1
    Last Post: Jul 23, 2009, 3:57 AM
  5. ASP.NET AJAX CallBack
    By tonymayoral in forum 1.x Help
    Replies: 2
    Last Post: Feb 07, 2009, 11:37 PM

Posting Permissions