hello ,
how can i activate webdatagrid EditingCore Behaviors when page is post back via code behind.
Thankyou.
Please refer the Enabling Row Editing topic for an overview of how to enable Editing Behavior. The page contains example both in markup and in code behind code. In Short:
using Infragistics.Web.UI.GridControls; protected void Page_Load(object sender, EventArgs e) { WebDataGrid1.Behaviors.CreateBehavior<EditingCore>(); WebDataGrid1.Behaviors.EditingCore.Behaviors.CreateBehavior<RowEditing>(); }
Please let me know if you have further questions, I will be glad to help.
hi,
i need to keep the row's EditingCore opened after any event
Hi,
LIke what events for example ?
button click or Page_PreRender PostBack
The WebDataGrid editing behavior is not designed in a way to keep the edit mode across interactions. This means that all interactions with the grid (sorting, filtering, paging) that happen through the UI will Exit edit mode.
Achieving the described behavior (keeping the row in edit mode after interactions) will require application level code, that will soon get quite messy. Consider that most of the interactions will trigger postbacks to the server, which means that the information about the cell in editMode should be kept somewhere, then read from and use the grid api to find the cell and force it to enter edit mode after the postback completes.
I do not recommend this, as I said the grid is not designed with this scenario in mind and you may face adittional issues in the implementation.