Kishor Dalwadi
Top achievements
Rank 2
Kishor Dalwadi
asked on 25 Aug 2010, 10:58 AM
Hello ,
I have a requirement of a grid where rows are all open inside itemtemplate and should be editable by default. Currently I am able to edit one row at a time in the grid . Is there a way I can make all the rows of the grid editable by default so that I can edit all the rows at once. .
Kishor Dalwadi
I have a requirement of a grid where rows are all open inside itemtemplate and should be editable by default. Currently I am able to edit one row at a time in the grid . Is there a way I can make all the rows of the grid editable by default so that I can edit all the rows at once. .
Kishor Dalwadi
5 Answers, 1 is accepted
0
Princy
Top achievements
Rank 2
answered on 25 Aug 2010, 11:52 AM
Hello Kishor,
In order to make all the rows in grid editable, set AllowMultiRowEdit property of RadGrid as 'True' and add the following code snippet in PreRender event.
C#:
Also refer the following documentation .
Put all items in edit mode without additional rebind
Thanks,
Princy.
In order to make all the rows in grid editable, set AllowMultiRowEdit property of RadGrid as 'True' and add the following code snippet in PreRender event.
C#:
protected
void
RadGrid1_PreRender(
object
sender, EventArgs e)
{
if
(!IsPostBack)
{
foreach
(GridDataItem item
in
RadGrid1.MasterTableView.Items)
{
item.Edit =
true
;
}
RadGrid1.Rebind();
}
}
Also refer the following documentation .
Put all items in edit mode without additional rebind
Thanks,
Princy.
0
Kishor Dalwadi
Top achievements
Rank 2
answered on 25 Aug 2010, 12:06 PM
Thanks for Reply.
I have Add and Save Button is outside of the Gird.
So I want to Add and Save Batch Data from external button.
So please help me for make that functionality.
Thanks.
Kishor Dalwadi.
I have Add and Save Button is outside of the Gird.
So I want to Add and Save Batch Data from external button.
So please help me for make that functionality.
Thanks.
Kishor Dalwadi.
0
Hi Kishor,
You may try traversing the EditItems collection of the grid inside the button click handler (having in mind the detail from the bottom section of this help article) and updating the grid source with the new content. After that call the ClearEditItems() method and rebind the grid invoking its Rebind() method to refresh its state.
How to extract the data from the edited grid items you can learn from these online demos:
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/extractvalues/defaultvb.aspx
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editmodes/defaultvb.aspx
Best wishes,
Pavlina
the Telerik team
You may try traversing the EditItems collection of the grid inside the button click handler (having in mind the detail from the bottom section of this help article) and updating the grid source with the new content. After that call the ClearEditItems() method and rebind the grid invoking its Rebind() method to refresh its state.
How to extract the data from the edited grid items you can learn from these online demos:
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/extractvalues/defaultvb.aspx
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editmodes/defaultvb.aspx
Best wishes,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Kishor Dalwadi
Top achievements
Rank 2
answered on 25 Aug 2010, 01:17 PM
Thanks For Reply.
But I don't want that type of scenario.
I attached screenshot for my problem.
When I save on Process button then and then all gird items are saved.
and add item on add button.
Pleae give me solution.
Kishor Dalwadi.
But I don't want that type of scenario.
I attached screenshot for my problem.
When I save on Process button then and then all gird items are saved.
and add item on add button.
Pleae give me solution.
Kishor Dalwadi.
0
Hello Kishor,
Could you please test the approach provided in the following help topic and verify if this works for you.
Performing batch updates
All the best,
Pavlina
the Telerik team
Could you please test the approach provided in the following help topic and verify if this works for you.
Performing batch updates
All the best,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items