This is a migrated thread and some comments may be shown as answers.

Auto Save when entering values via client side onblur events...

4 Answers 271 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Wired_Nerve
Top achievements
Rank 2
Wired_Nerve asked on 31 May 2013, 01:05 PM

User Story (see attached image)

A user clicks the upper grid which is a list of books.  When they select a book from the upper grid, a lower grid will appear which will allow them to select which campuses will receive this book. 

Actions:

A user will enter a quantity (radNumericTextbox) in a textbox and then hit the tab or enter key and will be moved to the next textbox.  On the client side OnBlur event, a webmethod is called to save the value the user just entered.  At this time a couple of things will happen.  I am using the jquery blockUI tool to block the UI incase the network is slow, once the jquery ajax call is “complete” the blockUI is dismissed.  The upper grid will add a check mark to indicate the book is part of this order now and the lower grid will now display a DELETE icon.   The focus is moved to the next textbox waiting for input from the user...

Notes:

I am looking for an example that is similar to this.  My grid is NOT in edit mode and our product manager does not want the user to have to hit EDIT or SAVE icons…  They are also interested in perhaps having the user enter a ZERO to actually perform a delete, which would allow us to remove the delete icon.

All in all, you enter a value, it saves and give you a visual indicator that it saved.  Replacing a number in a textbox with a Zero value will delete an item that was already on the order…

Does anyone know of any radgrid examples similar to this?

4 Answers, 1 is accepted

Sort by
0
Wired_Nerve
Top achievements
Rank 2
answered on 03 Jun 2013, 01:03 PM
I have continued to search for examples in the telerik code samples, but no luck yet.
0
Wired_Nerve
Top achievements
Rank 2
answered on 03 Jun 2013, 10:18 PM
I have managed to figure out a means to accomplish what I want.  But I am kind of stuck on the  OnRowDeselecting="RowDeselecting"  event in that the last row does not fire the rowdeselecting event when a user hits the tab key.. Does anyone know a work around for this issue?
0
Angel Petrov
Telerik team
answered on 05 Jun 2013, 08:33 AM
Hello Warren,

Could you please elaborate more on how are you selecting/deselecting the items? Is the deselection being done using JavaScript logic? If you could provide us with code samples we should be able to give you a more precise answer.

Regards,
Angel Petrov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Wired_Nerve
Top achievements
Rank 2
answered on 05 Jun 2013, 12:54 PM
I have managed to hack my way through this block and for now I am happy with my solution.  It is not perfect, but good enough until I have time to revisit this feature.  Extreme time constraints do not allow me to continue to dwell on this. 


Thanks for your response, it is much appreciated.

Tags
Grid
Asked by
Wired_Nerve
Top achievements
Rank 2
Answers by
Wired_Nerve
Top achievements
Rank 2
Angel Petrov
Telerik team
Share this question
or