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

When the filter return "No Record"??

1 Answer 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sylvain Guay
Top achievements
Rank 1
Sylvain Guay asked on 21 Oct 2013, 09:37 PM
Hi, i have a radgrid binding with needdatasoure and i have a filter on one of my column.
 
I would like when the filter return "No Record":
 1. insert a new record in my database (that responds to the request)
 2. rebind the datagrid
 3. reapply the filter (programmatically in codebehind).
 4. Select the good row automatically by programmatically
 5. edit the row automatically (not push the button edit)

What is the best way or if you have a sample..

thank for your great help..

Sylvain

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 24 Oct 2013, 07:31 AM
Hi Sylvain,

Thank you for contacting us.

Please note that this requirement can be heavy to process since it requires consequent grid rebind several times.

Can we shorten the steps little bit without influencing the logic? For example:
1. The user filters the grid and there are no items returned to meet the condition
2. The grid goes into an insert mode with automatically filled field corresponding to the column which was filtered ( or some other default values )
3. The users decides whether to actually insert the new record or cancel to initiate a new filter command

Looking forward to your reply.

Regards,
Eyup
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 the blog feed now.
Tags
Grid
Asked by
Sylvain Guay
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or