i am using XamGrid. Created a hyperlinkcolumn but it does not have a Command property. (using MVVM pattern)
I know that I can use TemplateColumn or UnboundColumn to resolve this issue but it make my the template complex for just using a Command. Is there something I can do in HyperlinkColumn itself to bind the Command?
Hi Gajender,
If you have any further question that I can help you with, please let me know.
Sincerely,Chris KDeveloper Support EngineerInfragistics, Inc.www.infragistics.com/support
I have constructed and attached a sample which demonstrates one possible approach for achieving this behavior.
In this sample, I am using a similar approach to the one that I mentioned in my last response; wherein I have created a TemplateColumn and defined a DataTemplate which implements a Button, with its own template in order for it to be presented as a hyperlink.
I was then able to interface a command with the new template button which in this case, displays a message box to indicate that the item has been clicked on, but provides the basic context for this approach to be expanded to include other behaviors.
If you have any further questions that I can help you with in the meantime, please let me know.
After further investigation, it appears that this behavior may be possible by creating a template for the intended hyperlink column, which implements buttons that are styled in the appearance of the HyperlinkButton, as this is not an actual control offered in WPF, (although it is available in Silverlight; The HyperlinkButtons that appear within the HyperlinkColumn are actually modified textblock elements).
It should then be possible to interface commands to the styled buttons within the column.
I have also made an inquiry to my development team, just in case there is a more effective approach available for this behavior and I will be following up with you with those findings.
If you have any further questions in the meantime, please let me know.
I have been looking into this behavior and I believe that it should be feasible and I will be following up with you via this forum thread with my findings.