Hi,
I've made adding records by this solution: http://ko.infragistics.com/community/forums/t/69109.aspx
In my Edit Template I have checkbox: <asp:CheckBox ID="control_IsMain" runat="server" ></asp:CheckBox>
How can I get value of this checkbox in _RowAdding event (in behinde code)? Because now I'm getting just "False" - even if I marked checbox.
Thank you for the update.
The RowAddingEventArgs provides you with references to the GridRecord before being updated; everything else other than the GridRecord is not in scope.
I have attached a modified version of Petar's sample to help demonstrate that the logic I provided works as expected. Please review the sample and let me know if you have further questions.
Unfortunatelly, it doesn't work. I have "False" in every postback (even if checkbox ix checked).
If it's possible to send checkbox value in Infragistics.Web.UI.GridControls.RowAddingEventArgs e event?
Because I want to simply get value like that: e.Values["CheckBox"].ToString();
Hi T T,
Thank you for posting on our forums.
You should be able to get the checkbox check state using the following logic in the RowAdding or RowAdded events:
CheckBox checkbox = this.WebDataGrid1.Behaviors.EditingCore.Behaviors.RowEditTemplate.TemplateContainer.FindControl("CheckBox1") as CheckBox;bool value = checkbox.Checked;Debug.WriteLine(value);
Please let me know if you have any questions regarding this matter.