I have an application where I find a group of records based on entered search criteria and use the checkbox option in the grid to mark which records I want to transfer ownership of the records from one user to another. This all works great and does all of the updating properly when the submit button is clicked. However, if the search button is clicked another time, nothing is returned.
I have tried the following in the client side events:
AfterGridSubmit & afterGridCancelEdits
{grid.Object}._selectAllRowCheckboxes(false);
{grid.Object}.filterCheckedRows();
My understanding of these two methods is that the {grid.Object}._selectAllRowCheckboxes(false); will clear any rows that are checked, and then the {grid.Object}.filterCheckedRows(); will clear the filter of the checked items.
If I use both of these methods, then when the submit or clear button is clicked, the grid is cleared as is the search criteria and all 1.2 million records are again loaded, but if you then try to search for any given search criteria, nothing is returned.
If I just use just the {grid.Object}._selectAllRowCheckboxes(false); method, the checkboxes are clear, the search criteria is not cleared nor is the grid. Clicking the search button with the search criteria still in tact results in no records being returned (even though records do exist.) If you then do a Clear Search Criteria (which returns all 1.2 million records) then it will accept the entered search criteria on the next search.
I would really rather the search just take the search criteria in the search window and populate the grid with the records matching the search criteria.
Does anyone have any ideas on what else needs to be reset for this to work as desired?
Thanks,
Sam
I have tried the following in the client side events:
AfterGridSubmit & afterGridCancelEdits
{grid.Object}._selectAllRowCheckboxes(false);
{grid.Object}.filterCheckedRows();
My understanding of these two methods is that the {grid.Object}._selectAllRowCheckboxes(false); will clear any rows that are checked, and then the {grid.Object}.filterCheckedRows(); will clear the filter of the checked items.
If I use both of these methods, then when the submit or clear button is clicked, the grid is cleared as is the search criteria and all 1.2 million records are again loaded, but if you then try to search for any given search criteria, nothing is returned.
If I just use just the {grid.Object}._selectAllRowCheckboxes(false); method, the checkboxes are clear, the search criteria is not cleared nor is the grid. Clicking the search button with the search criteria still in tact results in no records being returned (even though records do exist.) If you then do a Clear Search Criteria (which returns all 1.2 million records) then it will accept the entered search criteria on the next search.
I would really rather the search just take the search criteria in the search window and populate the grid with the records matching the search criteria.
Does anyone have any ideas on what else needs to be reset for this to work as desired?
Thanks,
Sam