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

Rad Grid View

1 Answer 20 Views
Grid
This is a migrated thread and some comments may be shown as answers.
siddartha
Top achievements
Rank 1
siddartha asked on 17 Dec 2014, 04:37 PM
Hi,
 
 I am using RAD Grid for displaying and inserting records.

Each row I have one textbox and add button .Using button user can add N number of records.

Let us suppose that user is inserted 4 records(rows).In that 1st and 4 th row data is there 2nd and 3rd empty .If user submit that it shoud throw validation error message.
Let us suppose that in 4 records in that 1nd and 2nd data is there and 3rd and fourth empty ,but in this case it should allow to submit data.

so if there is any empty rows in between it should not allow to submit.But if there are empty rows in last(more than one) user can submit.

Please help me like how i can build the logic

Thanks
siddartha

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 22 Dec 2014, 09:59 AM
Hi Siddartha,

Thank you for contacting us.

To achieve this requirement, you can use the Batch editing mode and apply custom validation on the client or server-side using the command event handlers provided by RadGrid:
http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx

Hope this helps. Please let us know if you need further assistance.

Regards,
Eyup
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
siddartha
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or