Wicket - need FilterForm ajax events for GoAndClear button events - wicket

I've added a FilterForm with GoAndClear buttons to an AjaxFallbackDefaultDataTable. The filtering is working fine except for refreshing my table. I have a dropdown that changes the number of rows to show which does a target.addComponent(my AjaxFallbackDefaultDataTable) which doesn't reload the data but refreshes the. If I use this after I click a Go or Clear button then the table shows the proper rows, item count, and page links.
How can I handle Go and Clear clicks on my FilterForm to update my AjaxFallbackDefaultDataTable?

In the onsubmit method for the filter form just call .renderComponent() for the table.

Related

How can I get an edit request for full row when in readOnlyEdit and fullRow mode?

I want to have my AgGrid editable and want to run validation logic before a row is saved. So, basically when a user clicks the cell, enters into edit mode, edits a few cells, clicks away - the row is SAVED (unless validation fails).
I started with setting
editType="fullRow"
readOnlyEdit
on AgGrid. This allows me to get multiple onCellEditRequest events when I click away from the row (=save the row). But ideally I want to receive single event with all edited cells (or a full row data).
Is it possible? Can I request this feature on AgGrid?
You can use the onRowValueChanged callback. This will be called once you save any changes within the row.
Documentation.

Ag-grid event to identify changed rows/Values

I am trying to find out a solution to implement save functionality after the values in the ag-grid is changed.
I have an angular2 ag-grid with almost 100 columns but only 4 columns are editable. And on click of a save button on my web page i want to post only the changed values if any by the user, to the database. Is there any event which i can use to identify changed rows in the grid? Or any other suggestion to implement such scenario?
I looked at rowValueChanged and cellValueChanged event, but these event will trigger after every change? I need to get the values only after the user hits save button.

Asp.net Ajax Tookit AutoCompleteExtender stops working in update panel after partial postback

I have an update panel with some text entry boxes, a clear button and a save button. Under the boxes I have a repeater that holds database entries. When a user enters data in the textboxes and clicks the Save, a database row is created and the repeater rebinds and shows the new dataset. There are buttons on each repeater row for "Delete" and "Edit". When the Edit button is clicked on a row, the data from that row is populated back into the text boxes. When I do that, the autocomplete extenders stop working. I have a button that simply clears the textboxes. If I click that button and clear the textboxes, the autocomplete starts working again. Even if I remove all code from that "Edit" button in the repeater command and don't have it populate the text boxes from the row clicked, the autocomplete stops working. Something is happening on the item command for the repeater row that is turning off the autocomplete. Any suggestions?
I had some javascript functions running from the code behind on page load. Moving that from the server side page load to the javascript pageLoad() function fixed the issue

losing data stored in list when next page selected in pageablelistview with checkbox

How do I not lose stored data of selected items in a pageable list view with checkbox when I change the page. please view my earlier post for code.
Visit page:
checkbox in pageablelistview in wicket
You can either:
store the data using Ajax the moment the checkboxes are set/unset.
try to prevent the user from leaving the page by javascript. See here

Display Additional Form on Update - RadGrid

I'm using a RadGrid for changing record status's. Users have the ability to select a status from a dropdown and update that record with that status. Depending on the status chosen, when the user clicks update I want to popup an additional form so the user can fill out more data required for the update. I'm not sure the best way to go about implementing this. Any suggestions are appreciated.
One way is to use the RadWindow like a modal and pop it up to the user via client-side JavaScript. We use RadWindows in our applications and it works. Or, the RadWindow supports a Nested Grid or View that you can have as a record's child; so you can have the master record, click on the arrow on the left and expand the record to view a nested grid of data, or a custom view (via the NestedViewTemplate property). You can also have the form in a DIV, hide it, then show it via JavaScript too.
Those are two ways.
HTH.