varsha Motwani
Top achievements
Rank 1
varsha Motwani
asked on 31 May 2010, 11:00 AM
Hi,
I am creating the grid Dynamically using lightweight DataTable given by Vladmir.
I have to implement Bulk add Functionality.Can you please tell me how do I add multiple rows in Grid and show all newly added rows in Edit form.If I add one row I can show like
I am creating the grid Dynamically using lightweight DataTable given by Vladmir.
I have to implement Bulk add Functionality.Can you please tell me how do I add multiple rows in Grid and show all newly added rows in Edit form.If I add one row I can show like
this
.radgridview.BeginInsert();
But I want to show multiple rows.
Please advice
5 Answers, 1 is accepted
0
Hello varsha Motwani,
Unfortunately RadGridView does not support multiple rows in edit mode so far.
Best wishes,
Pavel Pavlov
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.
Unfortunately RadGridView does not support multiple rows in edit mode so far.
Best wishes,
Pavel Pavlov
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
varsha Motwani
Top achievements
Rank 1
answered on 31 May 2010, 12:38 PM
OK Thanks for you quick reply.
Can you please help me with th eother part of question too.
How to add multiple No of blank rows on click of button.I am using dynamic Datatable created by Valdmir.
I tried using
for(int count=0;count<5;count++)
{
DataRow row = new DataRow();
table.NewRow();
table.Rows.Add(row);
}
and
for(int count=0;count<5;count++)
{
var newItem = dataTable.NewRow();
e.NewObject = newItem;
((sender as RadGridView).ItemsSource as IList).Add(newItem);
}
In both the cases Grid is not refreshing and not showing the data.
Can you please help me with th eother part of question too.
How to add multiple No of blank rows on click of button.I am using dynamic Datatable created by Valdmir.
I tried using
for(int count=0;count<5;count++)
{
DataRow row = new DataRow();
table.NewRow();
table.Rows.Add(row);
}
and
for(int count=0;count<5;count++)
{
var newItem = dataTable.NewRow();
e.NewObject = newItem;
((sender as RadGridView).ItemsSource as IList).Add(newItem);
}
In both the cases Grid is not refreshing and not showing the data.
0
Hi varsha Motwani,
In occasions where the source collection does not implement the INotifyPropertyChanged interface,
you may need to try callind RadGridView.Rebind() method in order to refresbh the UI after changes were made in in that source collection.
All the best,
Pavel Pavlov
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.
In occasions where the source collection does not implement the INotifyPropertyChanged interface,
you may need to try callind RadGridView.Rebind() method in order to refresbh the UI after changes were made in in that source collection.
All the best,
Pavel Pavlov
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
varsha Motwani
Top achievements
Rank 1
answered on 31 May 2010, 03:13 PM
Hey thanks .Rebind() refreshes the UI.
But ther is one more problem.The selection (grid select column) is not behaving corectly.If I click Top select All Checkbox it is selecting few rows.Even in Code behind It show seleceteditems.Count to be less than what actual items are selected.
Can you please explain What actually happens in Rebind()
But ther is one more problem.The selection (grid select column) is not behaving corectly.If I click Top select All Checkbox it is selecting few rows.Even in Code behind It show seleceteditems.Count to be less than what actual items are selected.
Can you please explain What actually happens in Rebind()
0
Hello varsha Motwani,
Rebind() would tell the grid there is new data and the UI needs to be refreshed.
In order to povide you further assistance in this matter , I will need to see your project.
Can you please open a support ticket and attach your project. This way I would be able to look at the code and see what causes the trouble.
Kind regards,
Pavel Pavlov
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.
Rebind() would tell the grid there is new data and the UI needs to be refreshed.
In order to povide you further assistance in this matter , I will need to see your project.
Can you please open a support ticket and attach your project. This way I would be able to look at the code and see what causes the trouble.
Kind regards,
Pavel Pavlov
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.