Hi
I am new to Infragistics. currently working on a project which is half done. My project builds everything dynamically such as grid column etc.
I have below code var grid = $find("grdHeaderDetails"); which returns null.
<ig:WebDataGrid ID="grdHeaderDetails" runat="server" Height="100%" Width="100%" OnInitializeRow="grdHeaderDetails_InitializeRow" AutoGenerateColumns="False" OnRowUpdating="grdHeaderDetails_RowUpdating" > <ClientEvents AJAXResponse="grd_AJAXResponse" /> <Behaviors> <ig:EditingCore> <Behaviors> <ig:CellEditing> <CellEditingClientEvents ExitedEditMode="grdHeaderDetails_CellEditing_ExitedEditMode" EnteringEditMode="grdHeaderDetails_CellEditing_EnteringEditMode" /> </ig:CellEditing> <ig:RowEditingTemplate> </ig:RowEditingTemplate> </Behaviors> </ig:EditingCore> <ig:Selection CellClickAction="Row" RowSelectType="Single"> </ig:Selection> </Behaviors> </ig:WebDataGrid>
function grdHeaderDetails_CellEditing_ExitedEditMode() {
var grid = $find("grdHeaderDetails"); var editingCore = grid.get_behaviors().get_editingCore();
editingCore.commit(); }
please advice
Hello Ali,
Please make sure that your webDataGrid is not in some naming content like UpdatePanel for example.
If you have further questions, please feel free to contact us.