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

[Solved] Doable in MVC Grid?

0 Answers 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Samantha
Top achievements
Rank 1
Samantha asked on 18 Apr 2012, 01:14 PM
Can this be doable using the telerik MVC grid??

Table in SQL
ItemID Name ItemQuantity
1 Apple 100
2 Banana 50
3 Orange 10
4 Grapes 40


GRID
Item Name Quantity Command
Apple 95 Save
Banana 51 <---INVALID Save
Orange 0 Save
Grapes 100 Save

1. Load all of the Items from the table Items to the grid

2. Allow user to enter desired quantity, but will be able to validate against the quantity in the table before saving.
Or create a numeric textbox or dropdown which the max value will be equivalent to the quantity from the table. I'm thinking of using a remote validation in MVC models but not so sure if that would be the best solution.

3. Save all of the items in the grid which the quantity is more than 1.


Please help me and give me a simple example of this, this is only the simplified version of my very big problem and I've spent more than 4 days trying to do this scenario. I hope anyone of you can help me.


Any help will be deeply appreciated


Thanks
Samantha

Tags
Grid
Asked by
Samantha
Top achievements
Rank 1
Share this question
or