Hi, i have the following scenario: masterpage and a contentpage, in the contenpage i have 1 button, 1 updatePanel with a WebDataGrid (Infragistics4.Web.v14.2) inside, the AsyncPostBackTriggeris related to the button click, the button calls a method, on click, on server-side to update the grid, everything go well, when i press the button my grid is updated with new data.
But....In the grid i have only 1 column editable, is a BoundCheckBoxField, when i check the value in the row the check box change it states with no problem, but if i change the 'selector' in any row, when i click the button, the method on server doesn't execute....the PageLoad is executed, but the method that refresh the grid no....
Any ideas ?
Thanks in advance
Diego
Hello Diego,
Thank you for contacting us.
If you have an activation feature enabled, when you change the checkbox state and click on other cell a post back is made, may be this causes your problem.
If this does not help can you send a small sample project of your own if you have one, to can investigate this?
Hi Nadia, thanks for your answer, is complex to send all the project, anyway, this is the portion of the aspx that contents the button and the grid:
<asp:Button ID="btnAdvSeach" runat="server" CssClass="button" Text="Buscar" Width="110px" OnClick="btnGetDocumentsClick" CausesValidation="False"/><asp:UpdatePanel runat="server" ID="UpdatePanel1" UpdateMode="Conditional">
<ContentTemplate> <ig:WebDataGrid ID="grdAdv" runat="server" AutoGenerateColumns="False" DataKeyFields="IdDocument" Height="380px" Width="1200px" ItemCssClass="thinRows" EnableTheming="False" StyleSetName="Windows7"> <ClientEvents MouseUp="grdAdv_MouseUp" DoubleClick="grdAdv_ViewDetails" /> <Columns> <ig:UnboundCheckBoxField HeaderChecked="False" Key="Selection" Width="50px" HeaderCheckBoxMode="Off"> <Header Text="Sel."></Header> </ig:UnboundCheckBoxField> <ig:BoundDataField DataFieldName="IdDocument" Key="IdDocument" Width="90px"> <Header Text="Document"></Header> </ig:BoundDataField> <ig:BoundDataField DataFieldName="Company" Key="Company" Width="90px"> <Header Text="Company"></Header> </ig:BoundDataField> <ig:BoundDataField DataFieldName="DeliveryDay" Key="DeliveryDay" Width="90px"> <Header Text="Delivery Day"></Header> </ig:BoundDataField> </Columns> <Behaviors> <Behaviors> <ig:CellEditing> <CellEditingClientEvents EnteringEditMode="grdAdv_CellEditing_EnteringEditMode"> </CellEditingClientEvents> </ig:CellEditing> </Behaviors> </ig:EditingCore> </ig:Selection> </ig:WebDataGrid></ContentTemplate><Triggers> <asp:AsyncPostBackTrigger ControlID="btnAdvSeach" EventName="Click"/></Triggers></asp:UpdatePanel>
I have two client events (at grid level) both fires ok, and another one asociated to EnteringEditMode (client level too) that is to check that the user only may change the Selection column, that works ok.
The grid is binding to a List<>. The server method btnGetDocumentsClick reload the grid datasource with the following code:
grdAdv.ClearDataSource(); Session["DocumentsADV"] = GetDocumentsADV(); grdAdv.DataSource = Session["DocumentsADV"]; grdAdv.DataBind();
If you take a look to the code you may note that i don't have any Activation Feature enable (i think...)
I hope you find what cause the problem...
Grettings
However I was not able to reproduce the behaviour that you're seeing on your side. I have attached the sample project I used to test this. Please test this project on your side; whether or not it works correctly may help indicate the nature of this issue.
If this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back.
Please let me know if I can provide any further assistance.
Hello,
I'm just following up to see if you need any further assistance with this issue. If so please let me know.