I am new in WebDataGrid. I have very simple WebDataGrid based on sample "Row editing-server events". I don't use any event. Problem: update method is not fired after postback. any changes are not saved.
<asp:Button ID="btnSave" runat="server" Text="Save all" />
<ig:WebDataGrid ID="WebDataGrid1" runat="server" DataKeyFields="ID" DataSourceID="ods1" Height="350px" Width="100%">
<Behaviors>
<ig:Selection CellClickAction="Row" CellSelectType="None" RowSelectType="Multiple"></ig:Selection>
<ig:EditingCore><Behaviors><ig:CellEditing></ig:CellEditing></Behaviors></ig:EditingCore>
</Behaviors>
</ig:WebDataGrid>
<asp:ObjectDataSource ID="ods1" runat="server" SelectMethod="SelectList"
UpdateMethod="Update" TypeName="IaisBL.DL.Zinynai.SystemAttributes" EnableCaching=false>
<UpdateParameters>
<asp:Parameter Name="id" Type="Decimal" />
<asp:Parameter Name="attr_value" Type="String" />
</UpdateParameters>
</asp:ObjectDataSource>
Thank for help
I have the same problem, when i do a async postback to load a dependent dropdown editor y lost the edited rows state, but not the values, did you solved it?
Regards
Thank you, Andrej. Any events ( RowUpdating, RowUpdated ) are not fired. I set breakpoint on event, tried to set label's value. But didn't get any result. But I am confused: program was stopping on breakpoint in my objectdatasource's select method "SelectList" after every cell changing. What is wrong? Thanks for help. My changes after your post:
1. Add <ig:Activation Enabled="True" />
2. Add OnRowUpdating="WebDataGrid1_RowUpdating"
3. Code: Protected Sub WebDataGrid1_RowUpdating(ByVal sender As Object, ByVal e As Infragistics.Web.UI.GridControls.RowUpdatingEventArgs) Handles WebDataGrid1.RowUpdating
Dim test As Boolean
test =
True
Hello,
Please try adding the activation behavior and RowUpdating event on the server and see if the event is fired correctly.