Hello,
I am using a grid view where the item source is a VirtualQueryableCollectionView and have created a DataTempalteSelector to supply the row details template. I have my LoadSize for the collection set to 200, but currently only dealing with about 20 items in my small test data set. If all 20 items fit in view at the same time I have no problems and everything looks great; however if I shrink my window so only a few fit on the grid at a time an exception is thrown when I scroll. The exception text reads something like:
Exception Message: 'BlockDataIntegrityTemplate' resource not found.
BlockDataIntegrityTemplate is the data template that is being returned from my simple template selector. Most of the records in the list are of this type. My resource dictionary contains two data templates that are located in separate files and merged into the UserControls resources like so:
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Dashboard;component/View/AudioDataIntegrityTemplate.xaml"/>
<ResourceDictionary Source="/Dashboard;component/View/BlockDataIntegrityTemplate.xaml"/>
</ResourceDictionary.MergedDictionaries>
<model:IntegrityDataTemplateSelector x:Key="IntegrityDataTemplateSelector"/>
</ResourceDictionary>
</UserControl.Resources>
Has anyone run into this situation before, or help me think of what I may be missing?
I am using a grid view where the item source is a VirtualQueryableCollectionView and have created a DataTempalteSelector to supply the row details template. I have my LoadSize for the collection set to 200, but currently only dealing with about 20 items in my small test data set. If all 20 items fit in view at the same time I have no problems and everything looks great; however if I shrink my window so only a few fit on the grid at a time an exception is thrown when I scroll. The exception text reads something like:
Exception Message: 'BlockDataIntegrityTemplate' resource not found.
BlockDataIntegrityTemplate is the data template that is being returned from my simple template selector. Most of the records in the list are of this type. My resource dictionary contains two data templates that are located in separate files and merged into the UserControls resources like so:
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Dashboard;component/View/AudioDataIntegrityTemplate.xaml"/>
<ResourceDictionary Source="/Dashboard;component/View/BlockDataIntegrityTemplate.xaml"/>
</ResourceDictionary.MergedDictionaries>
<model:IntegrityDataTemplateSelector x:Key="IntegrityDataTemplateSelector"/>
</ResourceDictionary>
</UserControl.Resources>
Has anyone run into this situation before, or help me think of what I may be missing?
7 Answers, 1 is accepted
0
Hello,
You have added this resource dictionary to the resources of the UserControl:
The message says:
Exception Message: 'BlockDataIntegrityTemplate' resource not found.
It seems to be actually presented as it works when no scrolling is involved. May I ask you to test with a QueryableCollectionView collection instead?
Regards,
Didie
Telerik
You have added this resource dictionary to the resources of the UserControl:
<
ResourceDictionary
Source
=
"/Dashboard;component/View/BlockDataIntegrityTemplate.xaml"
/>
The message says:
Exception Message: 'BlockDataIntegrityTemplate' resource not found.
It seems to be actually presented as it works when no scrolling is involved. May I ask you to test with a QueryableCollectionView collection instead?
Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Eric
Top achievements
Rank 1
answered on 02 Dec 2013, 02:26 PM
Yes. I have the following in my user control.
<code>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Dashboard;component/View/AudioDataIntegrityTemplate.xaml"/>
<ResourceDictionary Source="/Dashboard;component/View/BlockDataIntegrityTemplate.xaml"/>
</ResourceDictionary.MergedDictionaries>
</code>
And as long as I dont' scroll all my templates are found. The problem only creeps in if I start to scroll. I can expand every row details when they all fit on the screen but the second I start to scroll I see that error message.
<code>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Dashboard;component/View/AudioDataIntegrityTemplate.xaml"/>
<ResourceDictionary Source="/Dashboard;component/View/BlockDataIntegrityTemplate.xaml"/>
</ResourceDictionary.MergedDictionaries>
</code>
And as long as I dont' scroll all my templates are found. The problem only creeps in if I start to scroll. I can expand every row details when they all fit on the screen but the second I start to scroll I see that error message.
0
Hello,
It is indeed strange that the resource cannot be found only when scrolling. Would it be possible for you to isolate the issue in a demo project and send it to us?
Regards,
Didie
Telerik
It is indeed strange that the resource cannot be found only when scrolling. Would it be possible for you to isolate the issue in a demo project and send it to us?
Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Eric
Top achievements
Rank 1
answered on 02 Dec 2013, 02:44 PM
I believe I should be able to isolate it and send to you. Just let me know where I should send the project.
0
Hi,
You can open a support ticket and attach the demo there. The direct link is here.
Regards,
Didie
Telerik
You can open a support ticket and attach the demo there. The direct link is here.
Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Eric
Top achievements
Rank 1
answered on 04 Dec 2013, 08:38 PM
Sorry for the delay. I was trying to come up with a project that would reproduce the problem in a isolated way with out to much clutter. With the new project that was linking to libraries outside of my original project I could not get the problem to reproduce. Turned out that we just needed to update the Telerik libraries in our project from Q1-2013 to the most recent Q3-2013.
0
Hi,
I am grad to hear that upgrading to the latest version resolved the issue.
Regards,
Didie
Telerik
I am grad to hear that upgrading to the latest version resolved the issue.
Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>