Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
240
RowSelectionChanged Postback
posted

Hi,

I am using VS2010, Infrag 2011 vol 1 asp.net 4

I have a webdatagrid and a data entry form with several fields on the same screen, I am loading the fields with the values from the grid when click on the grid on the RowSelectionChanged event and works but I need to press a button in order to generate the postback, is there a way that the RowSelectionChanged do the postback automatically, I don't know if I am missing something.

Thanks.

 

 

 

 

 

 

<

 

ig:Activation Enabled="true"></ig:Activation>

 

 

<ig:selection RowSelectType="Single" Enabled="true"

 

 

CellClickAction="Row">

 

 

<AutoPostBackFlags RowSelectionChanged="true" />

 

 

</ig:Selection>

 

 

<ig:rowselectors Enabled="true" RowNumbering="true" />

Parents
No Data
Reply
  • 33839
    Suggested Answer
    posted

    Hi garciama,

    The grid is making a postback, but whether it is ajax is determined by EnableAjax of the grid.  If you have EnableAjax="true", then it is a grid postback.  If you update any other controls on the form, they will not be updated.  If you need to do this, turn off ajax and wrap the grid and other controls in an update panel.  Now the RowSelectionChanged will trigger a full page postback.

    regards,

    David Young

Children