4 Answers, 1 is accepted
0
Hi Virendra,
You can use AddingNewDataItem event to achieve this. Please check this demo for more info:
http://demos.telerik.com/silverlight/#GridView/DataUpdates
All the best,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
You can use AddingNewDataItem event to achieve this. Please check this demo for more info:
http://demos.telerik.com/silverlight/#GridView/DataUpdates
All the best,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Virendra
Top achievements
Rank 1
answered on 07 May 2009, 11:03 AM
Thanks Vlad,
I saw the demo and was trying to do the similar implementaion but it didn't work for me.
In my application have IList<object> which i bind to ItemSource and in event handler i have this code..
public void GVDataGrid_AddingNewDataItem(object sender, GridViewAddingNewEventArgs e)
{
IList<object> gridViewItemsList = new List<object>();
gridViewItemsList.Add((100).ToString());
gridViewItemsList.Add("ABCD");
gridViewItemsList.Add("USA");
gridViewItemsList.Add("SF");
gridViewItemsList.Add("1/1/2009");
gridViewItemsList.Add(false);
gridViewItemsList.Add("");
e. gridViewItemsList = "11111";
}
Am i missing something? my new row is comming with empty cells.
Thanks
virendra
0
Hi Virendra,
The grid cannot map list of objects to property names/values - you will need to use strongly type classes to achieve your goal.
Sincerely yours,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
The grid cannot map list of objects to property names/values - you will need to use strongly type classes to achieve your goal.
Sincerely yours,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Virendra
Top achievements
Rank 1
answered on 12 Nov 2009, 06:54 AM
Hi,
I am using now Q2, 2009 release but my question is same,
How to do it in new release?
thanks
virendra
