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 want to bind grids header text to a localized resource by something like this:
<Intersoft:UXGridViewTextColumn Header="{Binding ConverterParameter=Unit_lblAbbreviation, Converter={StaticResource KissLocalization}, Source={StaticResource KissLocalization}}" Binding="{Binding Abbreviation}"/>
But it does not work. The binding statament is correct as I am using it in other controls like FieldLabel.Header. What can be my mistake?
Hello,
It is because the datacontext inside UXGridViewTextColumn is not the same with the datacontext in your FieldLabel. Also, you would need to set it HeaderBinding, not header.
Here is my snippet code:
I bind the header to a property in my view model then convert the text.
<Intersoft:UXGridViewTextColumn HeaderBinding="{Binding Header, Converter={StaticResource HeaderConverter}, Source={StaticResource ProductsViewModel}}" Width="120" Binding="{Binding CategoryID, Converter={StaticResource CategoryConverter}}" ValueListSource="{Binding Categories, Source={StaticResource ProductsViewModel}}"/>
Hope this helps.
Regards,Handy
Thanks, I used HeaderBinding, it worked.
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