This question is locked. New answers and comments are not allowed.
I am using a Radview in a silverlight app to display data that I have in the Telerik.data.DataTable. My problem is, the data does not come in all at once. I might get one or two here and there. But I want it to append the data to the radview as it arrives. Instead the original item remains and the radview does not refresh.
Here is the code:
The clear button works fine, I have tried to do similar things in the load function, but nothing seems to work..
Thanks for the help!
Here is the code:
private DataTable _data { get; set; } public DataGridControl() { InitializeComponent(); _data = new DataTable(); } public void loadData(ObservableCollection<DataTable> dt) { DGridview.ItemsSource = null; if (_data.Rows.Count() > 0) { foreach (DataRow dr in dt[0].Rows) { _data.Rows.Add(dr); } } else { _data = dt[0]; } DGridview.ItemsSource = _data.ToList(); TxtRowCount.Text = DGridview.Items.Count.ToString(); DGridview.Rebind(); } private void BtnClear_Click(object sender, RoutedEventArgs e) { DGridview.ItemsSource = null; TxtRowCount.Text = DGridview.Items.Count.ToString(); _data = new DataTable(); }The clear button works fine, I have tried to do similar things in the load function, but nothing seems to work..
Thanks for the help!
