Hi,
We are using infragistics gridview version 10.2. We have implemented add, edit delete functionality on it. but it is not working when grid have mor then 10 columns. Row_Update event is not firing. Execution exits directly from PageLoad without executing. Any kind of help will be appreciated.
Hello Narayanan,In version 10.2 there are 3 grids - WebDataGrid, WebHierarchicalDataGrid and UltraWebGrid. Which one you are using. Also what is your exact build of 10.2? The best would be to send a sample or at least code snippet showing how you implement the scenario and what is the datasource you are using. Also it would be helpfull to point the browsers which you are using.
Code snippet -
aspx page:-
<%@ Register Assembly="Infragistics35.Web.v10.2, Version=10.2.20102.2158, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" Namespace="Infragistics.Web.UI.GridControls" TagPrefix="ig" %>
<ig:WebDataGrid ID="wdgMatrix" runat="server" AutoGenerateColumns="False" Height="370px" Width="100%" StyleSetPath="~/Styles/" StyleSetName="Trendy" DefaultColumnWidth="130px" OnRowAdding="wdgMatrix_RowAdding" OnRowUpdating="wdgMatrix_RowUpdating" OnRowsDeleting="wdgMatrix_RowDeleting" OnColumnSorted="wdgMatrix_ColumnSorted" > <Behaviors> </Behaviors> </ig:WebDataGrid>
aspx.cs page
protected void wdgMatrix_RowUpdating(object sender, RowUpdatingEventArgs e) { MatrixTables mat = new MatrixTables(((SessionInfo)Session["UserInformation"]).DatabaseName.ToString()); DataTable dtNew = new DataTable(); int id1 = (int)((Infragistics.Web.UI.GridControls.ControlDataRecord)(e.Row)).DataKey[0]; DataRow foundRow = dtGridSource.Rows.Find(id1); XmlString.AppendFormat("<{0}>", "Matrix"); foreach (DataColumn dc in DtGrid.Columns) { DataColumn dcNew = new DataColumn(dc.ColumnName, dc.DataType); dtNew.Columns.Add(dcNew); if (dc.DataType.ToString() == "System.String") foundRow[dc.ColumnName.ToString()] = e.Values[dc.ColumnName].ToString(); else if (dc.DataType.ToString() == "System.Int32") foundRow[dc.ColumnName] = Convert.ToInt32(e.Values[dc.ColumnName]); XmlString.AppendFormat("<{0}>", "value"); XmlString.AppendFormat("<ColValue>{0}</ColValue>", dc.ColumnName); XmlString.AppendFormat("<RowValue>{0}</RowValue>", e.Values[dc.ColumnName]); XmlString.AppendFormat("</{0}>", "value"); } XmlString.AppendFormat("</{0}>", "Matrix"); mat.UpdateMatrix(id1, TableName, XmlString.ToString()); }
Hello,From the code you send i could not build a working sample. As far as I can see MatrixTables is a custome class with some methods in it implemented by you. I will have to reproduce the same behavior on my side and debug to see if the error is in our controls or wrong implementation from your side. The best would be to send me an isolated sample. If the sample is too big for attaching here you can send it to support@infragistics.com
Hello Narrayanan,Since i was not able to create a running sample and since i am not familiar with the issue you are facing i am not able to provide help. Which is the service release you are using - are you reproducing the issue with the latest one. In which version of IE the event is not firing? Can you please attach an isolated runnable sample which reproduces the issue?
Hello Team,
Issue is fixed. but one issue is remaining,
In IE if the last column is null update command doesn't fire (only if the datatype is string)
Hello Narayanan,Please let me know what is the status of the issue. Did you manage to resolve it?