We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

sfDatagrid not load ....

Hi All.

I have 2 sfDataGrid.
One in a tabItem.
One in another TabItem, the hidden.

Both are filled by the same method using ItemsSource = ObservableCollection.

The visible sfDataGrid load data well, the hidden NOT load until I show it, selecting the second tabItem.

To Me this is a BUG.
Strange nobody note this.

There is a workaround for this ?

Arn

1 Reply

HN Harikrishnan N Syncfusion Team August 25, 2015 10:49 AM UTC

Hi Arn,

Thank you for using Syncfusion products.

The SfDataGrid will load its data only when it is allocated a size. When loading grid in tab items, the size will be allocated only for the tab item that is in view and hence the grid inside that tab item alone will be loaded. When you click on the second tab item, size is allocated for the grid loaded inside it and that is why the data is loaded only when clicking the second tab item. This is the default behavior.

Please let us know if you have any query.

Regards,
Harikrishnan

Loader.
Up arrow icon