I have a aspx page with a gridview with multiple dropdowns on every row to select categories(almost looks similar to an excel sheet).Each time the user tries to insert a row to the gridview, I copy the grid's current values to a session and then create a empty row for the user to enter a new row. The user has option to save once they decide they have made all the entries necessary. There are times based on the selction on one of the grid value, multiple rows have to be automatically inserted.
Having said that loading between drop down selections inside a row in the gridview takes a bit of a time. I want to show the user that the page is loading and they have to wait instead of clicking something in the web app multilple times. Also i have to make sure the process keeps running without waiting for the user to click ok if a dialog message is display for the "Please wait" message. How can i do that?
I tried Jquery option in a page load event to alert a message. It's just for showing a message.
Second i tried thread.sleep(1000) but that just slows the experience. Already the loading takes 30 seconds or so.
My database is smaller, and i am only trying to display like 100 rows. but each row has 10 columns and those columns have dropdown boxes. based on whats selected in first column, second column shows up. also when specific values are selected in the first row, 10 child rows gets automatically created. Basically my post back is on the selected index changed event of each and every drop down. I could have used edititemtemplate for gridview, but i didnt think it will affect the performance since its just 100 rows.
Also there is an option to insert a row and i show an empty row with no dropdown options selected. But when insert a row in the gridview which has 20 rows already, i had to save the current values selected in each row and then rebind the grid with the saved values and then insert an empty row. I believe this operation is costly - save all the rows, rebind the gridview.. is this how it has to be done enter image description here