Updating sqldatasource of GridPanel

  1. #1

    Updating sqldatasource of GridPanel

    Hi ...

    I have a GridPanel with details Window .. How could Update the data of the sqldatasource and rebind the grdipanel ...

    IN my scenario I m able to update the database but cant rebind the gridpanel ...

    Please Help
  2. #2

    RE: Updating sqldatasource of GridPanel


    Hi ...

    I did that Part ..

    Now the Problem I am facing in accessing RowDataBound like Event of GridView ...?

    Which is the Similar Event of GridPanel resembles to RowDataBound of GridView ..?
  3. #3

    RE: Updating sqldatasource of GridPanel

    Hi Sachin,

    Could you tell me how you update the database? I am trying to update my database from Gridpanel. I don't know how Store can send the changes to the database.

    I appreciate your help here.

    many thanks,
    Kamal
  4. #4

    RE: Updating sqldatasource of GridPanel


    call Ajax Event on the the Button Click .. In Codebehind write the usual logic to update database and then

    databind the store ....

    Hope this helps
  5. #5

    RE: Updating sqldatasource of GridPanel

    Sachin, thanks for your reply.
    My problem is how to get the values from each row or cell. i am sorry to be a pain, but i am new to Ext.js.

    thanks,
    Kamal
  6. #6

    RE: Updating sqldatasource of GridPanel


    Check out the following post .........



    http://forums.ext.net/showthread.php...4150-16-1.aspx




  7. #7

    RE: Updating sqldatasource of GridPanel

    thanks for the link.
    I did as the sample said but I get an error message when I add the following code
    
    
    
    <ext:Button ID="Button1" runat="server" Text="Submit">
    
    
    <AjaxEvents>
    
    
    <Click OnEvent="UpdateData" >
    
    
    <ExtraParams>
    
    
    <ext:Parameter Name="Values" Value="Ext.encode(#{GridPanel1}.getRowsValues())" Mode="Raw" />
    
    
    </ExtraParams>
    
    
    
    
    
    </Click>
    
    
    </AjaxEvents>
    
    
    </ext:Button>
    The error message is:
    Error: ctl00_contentplaceholder1_Button1 is null or not an object

    I did not get the error before. The Even exist in my code behind.
    Any idea?

    thanks,
    Kam
  8. #8

    RE: Updating sqldatasource of GridPanel



    I will check this and will reply you ...
  9. #9

    RE: Updating sqldatasource of GridPanel

    Hi sachin,

    I worked it out why i got the error. I was trying to do it from a buttom toolbar which threw the error message. When I create another button to the grid (not a toolbar button), it works fine. it seems it did not like the toolbar button!!!

    Kamal

Similar Threads

  1. GridPanel Remote Paging with SqlDatasource
    By Aod47 in forum 1.x Help
    Replies: 1
    Last Post: Oct 25, 2013, 6:00 AM
  2. [CLOSED] Gridpanel->update->SqlDatasource
    By showingg in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 13, 2012, 4:29 PM
  3. Replies: 0
    Last Post: Oct 08, 2011, 8:02 PM
  4. Editing GridPanel attached to a SQLDatasource
    By tnwheeler in forum 1.x Help
    Replies: 2
    Last Post: Aug 30, 2010, 9:58 PM
  5. Replies: 4
    Last Post: Apr 27, 2009, 3:14 PM

Posting Permissions