ExtractValues method returns null values

2 posts, 0 answers
  1. EmpowerIT
    EmpowerIT avatar
    117 posts
    Member since:
    Jun 2007

    Posted 09 Dec 2008 Link to this post

    Hi,
    I am trying to retrieve the user input from a rad grid input form. For some reasons that I do not want to get into right now, I am using an external button to the grid to trigger the 'save' command. i.e. I am not using a command item.

    In the external button event i have the following:

    void SaveButton_Click(object sender, EventArgs e) 
        { 
            foreach (GridEditableItem itm in MasterJobSchedulesGrid.EditItems) 
            { 
                Hashtable values = new Hashtable(); 
     
                itm.ExtractValues(values); 
                foreach (Parameter updateParam in MasterJobSchedulesDataSource.UpdateParameters) 
                { 
                    updateParam.DefaultValue = Convert.ToString(values[updateParam.Name]); 
                } 
                MasterJobSchedulesDataSource.Update(); 
                itm.Edit = false
            } 
            MasterJobSchedulesGrid.Rebind(); 
        } 

    The values returned are always null. I have also tried using the itm.OwnerTableView.ExtractValuesFromItem method, but it also gives me nulls.

    Any help would be appreciated.

  2. EmpowerIT
    EmpowerIT avatar
    117 posts
    Member since:
    Jun 2007

    Posted 09 Dec 2008 Link to this post

    I solved my own problem.

    I was using EditForms instead of InPlace forms, so i needed to pass in the EditFormItem to the ExtractValuesFromItem method
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top