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

[Solved] RadGridView not displaying new items added.

2 Answers 93 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
mark
Top achievements
Rank 1
mark asked on 20 May 2009, 05:35 PM
I have a radgridview in a radwindow...This radwindow and grid is my "shopping cart"...When the user clicks on items and "adds to cart" the first time, then they click on the "Cart" button, the radwindow opens up and displays the items in the grid...If they close the grid, then "add more items to cart", the new items don't show up in the grid.  When the user "adds item to cart", they are essentially adding items to a collection(local variable).  I take that collection, bind it to the grid and open/show the radwindow with the grid in it.  Am I not using the grid correctly?  Below is the code sample that binds the collection to the grid and displays the grid/window.

Thanks again.

private

 

void Button_Click_3(object sender, RoutedEventArgs e)

 

{

 

try

 

{

 

    //_shoppingCartitems is a collection that the user adds an item to from other parts of the ui.  The "count" property looks correct when I bind the collection to the grid.
    if
(_shoppingCartItems.Count > 0)

 

    {

        radwinShoppingCart.Show();

        radgridShoppingCart.ItemsSource = _shoppingCartItems;

 

    }

}

 

catch (Exception ex)

 

{

 

MessageBox.Show("Error: " + ex.Message);

 

 

return;

 

}

}

2 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 21 May 2009, 09:26 AM
Hi mark,

Could you please provide us a project that shows the problem and helps us understand better what the problem is. 

Thank you!

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the newTelerik Support Portal.
Check out the tipsfor optimizing your support resource searches.
0
mark
Top achievements
Rank 1
answered on 21 May 2009, 04:28 PM
I am building a prototype currently and I don't think I can send you the project.  I am building it though with the downloaded trial version as we are in the process of purchasing the controls...I have been told that the new release we will receive will be a more current code base than the downloaded trial version.  I am hoping that this will resolve little bugs or features like this.

Thanks
Tags
GridView
Asked by
mark
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
mark
Top achievements
Rank 1
Share this question
or