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
Many Thanks Yudi and Team,
This solved the filtering problem.
Here is the observeable collection
ObservableCollection<MyData> GridDatafin = new ObservableCollection<MyData>();
Here is struct
public struct MyData { private string m_keyword; private string m_sources; public string keyword { get { return this.m_keyword; } set { this.m_keyword = value; } } public string sources { get { return this.m_sources; } set { this.m_sources = value; } } }
Here is XAML for gridview and custom filtering
<Intersoft:UXGridView Name="uXGridView1" SelectionUnit="Row" AutoGenerateColumns="False" CanUserFilterColumns="True" CanUserExport="True" VerticalAlignment="Stretch" Height="478"> <Intersoft:UXGridView.Columns> <Intersoft:UXGridViewTextColumn Header="Keyword" CanUserFilter="True" CanUserSort="True" Width="300" Binding="{Binding keyword}"> </Intersoft:UXGridViewTextColumn> <Intersoft:UXGridViewTextColumn Header="Sources" CanUserSort="True" CanUserFilter="True" Width="120" Binding="{Binding sources}" > <Intersoft:UXGridViewTextColumn.FilterItems> <Intersoft:UXDataFilterItem Content="Google"> <Intersoft:UXDataFilterItem.Filter> <Intersoft:CompositeFilterDescription LogicalOperator="And" > <Intersoft:FilterDescription PropertyName="sources" Operator="IsEqualTo" Value="Google"/> </Intersoft:CompositeFilterDescription> </Intersoft:UXDataFilterItem.Filter> </Intersoft:UXDataFilterItem> <Intersoft:UXDataFilterItem Content="Yahoo"> <Intersoft:UXDataFilterItem.Filter> <Intersoft:CompositeFilterDescription LogicalOperator="And" > <Intersoft:FilterDescription PropertyName="sources" Operator="IsEqualTo" Value="Yahoo"/> </Intersoft:CompositeFilterDescription> </Intersoft:UXDataFilterItem.Filter> </Intersoft:UXDataFilterItem> <Intersoft:UXDataFilterItem Content="Bing"> <Intersoft:UXDataFilterItem.Filter> <Intersoft:CompositeFilterDescription LogicalOperator="And" > <Intersoft:FilterDescription PropertyName="sources" Operator="IsEqualTo" Value="Bing"/> </Intersoft:CompositeFilterDescription> </Intersoft:UXDataFilterItem.Filter> </Intersoft:UXDataFilterItem> </Intersoft:UXGridViewTextColumn.FilterItems> </Intersoft:UXGridViewTextColumn> </Intersoft:UXGridView.Columns> </Intersoft:UXGridView>
Its itemsource property is set in source when it populates observable collection for the first time. This is thread progress changed event code which populates the observable collection.
ArrayList arrlst = (ArrayList)e.UserState; for (int m = 0; m < arrlst.Count; m++) { string[] rs = (String[])arrlst[m]; MyData dt = new MyData(); dt.keyword = rs[0]; dt.sources = rs[1]; GridDatafin.Add(dt); }
I have tested with both QueryOperation="Client" and QueryOperation="Server"
Now all the data gets populated perfectly. Its just the filter.
Let me know thanks
Hello,
Many Thanks Handy. It worked out.
I have done all the exact same steps before and now again. Do not know what is wrong? Is there any utility which would check the license?
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