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
I am creating a MMVM WPF Application where I display data called Session in a UXGridView. I have Subsession I display in Row Details and I show the Row Details when a UXGridViewExpander Column is pressed. I want to hide the UXExpander Button if there are no SubSessions for the given session. I have created a work around by customizing the CellTemplate of the UXGridViewExpander column.
<Intersoft:UXGridViewExpanderColumn CellTemplate="{StaticResource ExpanderTemplate}"/>
<DataTemplate x:Key="ExpanderTemplate">
<Intersoft:UXGridViewExpanderButton Visibility="{Binding Path=SubSessions.Count, Converter={StaticResource visibilityConverter}}"/>
</DataTemplate>
And a Converter to convert the number of subsessions into the appropriate Visibility. The expander button is hidden when the number of Subsession is 0. My issue is that when you press the visible expander buttons an error that the OwningGrid is not set for the Expander button. I am unable to bind the Owning Grid property to the Expander Button because it is not a dependency property. I have also tried setting the Name of my UXGridView and set that as the owning grid as a static resource, but I still get the same error. How can I set the OwningGrid property on a UXGridViewExpanderColumn Cell Template?
Hello,Thank you for the question.I will investigate this scenario further more with the developer team. And I will back to you as soon as possible.Thank you for waiting.Regards,Hans K.
Hello,Thank you for waiting.I got news from the developer team about how to achieve your scenario.To show you how to do that, I will use one of UXGridView sample in ClientUI. I will modify the default page of ‘UXGridView/Reference’ samples, named ‘Baseball Hall of Fame’ page.You could found the ClientUI Samples in “C:\Program Files (x86)\Intersoft Solutions\Intersoft Premier Studio 2014 R1\Samples\SL5\cs\ClientUI Samples\”.In the page, I will try to collapse the ExpanderButton’s UXGridView 2nd row.Here’s the several file that I modified:1) Player.cs. You could found the file, under ‘Models’ folder in ‘Assets’ project (Intersoft.ClientUI.Samples.Assets\Models).In this page, I add new Properties, named ‘Visible’.
public Visibility Visible{ get { // To collapse the 2nd row UXGridViewExpanderButton if (_ID == "PL02") return Visibility.Collapsed; else return Visibility.Visible; } }
2) HallOfFameStyles.xaml. You could found the file, under ‘Assets -> Styles’ folder in ‘UXGridView’ project (Intersoft.ClientUI.Samples.UXGridView\Assets\Styles).In this page, I will add new Setter under ExpanderButtonStyle.
<Style x:Key="ExpanderButtonStyle" TargetType="Intersoft:UXGridViewExpanderButton"> … <Setter Property="Visibility" Value="{Binding Visible}"/> … </Style>
I attached the modified files and the screenshot about the result.Please kindly have review on the attached files and let me know your response.Thank you for your help.Regards,Hans K.
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