iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi.
Is there an example where the DataPresenter is used inside the ClientUIBusinessApplication using a MVVM class to supply it the data.
If there is please could you point me to it.
If not is there any documentation on DataPresenter that is usable. The Demo site seems to be down at the moment.
I am looking to use The DataPresentationManager (and List/Grid Presenter) within the ClientUI application bound to a ViewModel. There seems to be some problem whereby I cannot successfuly bind the DataPresenter to the viewmodel (it keeps saying that it is Loading... but does not actually show any data. When the same viewmodel is bound to the ListBox it shows the data.
Thanks
Jeejee
The one we will be releasing in August 18, 2010 is WebUI Studio 2010 R1.
Regarding your issue, I could not replicate it using our Contacts_MVVM sample. Attached is the modified file form the sample in order for me to create your scenario. If the list is empty, the Presenter status will be ready and the content will be displayed correctly.
In the ContactViewModel.cs, I add a few property to be used as a column in Presenter. The ContactViews.xaml page is modified to use GridPresenter.
In order to simulate empty list, I modify the LoadContacts LINQ, here is the snippet:
var contacts = from x in doc.Descendants("Customer") where 1 == 0 select new Contact(x);
I fully agree,
A very common scenario that we use is a form consisting of a header panel where one can enter search criteria and underneath a datagrid (e.g. DataPresenter) with the results of the query according the search criteria.After performing the query, the user can execute CRUD actions on the items in the result grid.
Is it possible to create a sample with all the ClientUI goodies like focus management, Commanding, MVVM, and so on ?
Kind regards,
JohnV
Our engineers are pushing complete MVVM + framework integration for the presenter lineups in R2 milestone.
In this release, you can still bind the presenters to MVVM using an alternative solution such as using row template, however, that won't be optimal in the MVVM usage. Let me know if you're interested to learn about this alternative approach.
Regards,Jimmy.
Hi Jimmy,
Please could you provide such a sample. It will prevent me from using other controls for the purposes of displaying a grid etc.
As you mentioned in the previous reply to this post please could you provide details on how I could "bind the presenters to MVVM using an alternative solution such as using row template".
I really would like to use IntersoftPt controls where possible and do not want to start using another vendors controls mixed in with your.
You will need a Presenter nightly build to achieve this scenario. The presenter nightly build is attached. Please extract the assembly to the Client UI installation folder, by default C:\Program Files\Intersoft Solutions\ClientUI 3\Silverlight 4\Bin.
With the new build, binding ViewModel to presenter will be similar with other UX control. Here is the snippet:
<Intersoft:GridPresenter Intersoft:DockPanel.Dock="Top" x:Name="PresenterGrid1" ItemsSource="{Binding Contacts}" SelectedItem="{Binding Path=SelectedItem, Mode=TwoWay}" RowTemplate="{StaticResource ContactViewTemplate}" RowHeight="108" ></Intersoft:GridPresenter>
I also attached a modified ContactsView.xaml that implement the Presenter instead of UXListBox. In this sample, I am using the previous UXListBox ItemTemplate as the new RowTemplate for the GridPresenter.
Hi Jee,
We've managed to improve Presenters to work with MVVM binding in the RTM buuild. Our support team has attached the latest nightly build as well as the updated ContactsView sample.
Please let me know if everything works as expected in your end. Thank you.
Hope this helps,Jimmy.
Thanks Jimmy/Glenn,
I will try and let you know how it goes.
Regards,
Hi Glenn,
Thanks a lot for the Presenter Nightly Build.
Preliminary Testing with the GridPresenter seems to work even without the RowTemplate.
Will post you after further testing. Am currently using it with DevForce 2010 (IdeaBlade).
Thanks once again for the good work.
PresenterManager does not seem to work though . I guess I am missing something.
A code snippet with that would be good ! especially Unbound method
Hi,
Does the GridPresenter work with DataPresenterColumn at the moment?
I am attempting something like:
<Intersoft:GridPresenter x:Name="PresenterGrid1" Intersoft:DockPanel.Dock="Top" ItemsSource="{Binding AttachmentTypes}" SelectedItem="{Binding Path=SelectedItem, Mode=TwoWay}" > <Intersoft:GridPresenter.Columns> <Intersoft:DataPresenterColumn Caption="Test" Header="Test"
DataMemberField="AttachmentTypeName"/> </Intersoft:GridPresenter.Columns></Intersoft:GridPresenter>
Would that work? I am currently getting an exception being thrown when running the application
@Jeejee
For the snippet to work, you will need to use DataPresenterTextColumn and disable the Presenter AutoGenerateColumns. Here is the modified snippet:
<Intersoft:GridPresenter x:Name="PresenterGrid1" Intersoft:DockPanel.Dock="Top" ItemsSource="{Binding AttachmentTypes}" SelectedItem="{Binding Path=SelectedItem, Mode=TwoWay}" AutoGenerateColumn="No"> <Intersoft:GridPresenter.Columns> <Intersoft:DataPresenterTextColumn Caption="Test" DataMemberField="AttachmentTypeName"/> </Intersoft:GridPresenter.Columns></Intersoft:GridPresenter>
@Balachander
I would like to note that without using RowTemplate, the Presenter now only work partially in MVVM scenario. Without RowTemplate, Presenter will only do initial binding once, that will mean in the Contacts sample after you edit the Contacts, the changes will not be reflected on the Presenter by default.
A more integrated support for the presenter is planned for R2 release.
When you say the R2 release is that the one expected in mid August or is it beyond that?
Along with the previous question I am having a problem with the GridPresenter. It is not displaying anything in the rows. The rows are there because I can highlight them but the Column content is not displayed.
Additional to that there also seems to be an issue whereby if the list is empty it continually says "Loading..." at the bottom.
Is there any possibility of getting a slightly improved version which will allow us to keep programming in the interim.
Thanks & Regards,
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname