Can i add a hyperlink or button in my UltraListView?
my idea is add a link or a button "View" that when i click the link i open a form.
it's possible???
many thanks
Sub-items cannot be edited so you could assign a FormattedLinkEditor to the UltraListViewSubItemColumn's Editor property, but clicking it would not navigate to a URL. You could assign one to the MainColumn's Editor property and that would respond to clicks. For a button, you could use an EditorWithText on the MainColumn and add an EditorButton to it's ButtonsRight or ButtonsLeft collection.
I don't see assigning a FormattedLinkEditor to the UltraListViewSubItemColumn's Editor property and make it work like as if it's clickable UIElement where I can track the click event and do desirable operation in EventHandler. I don't even see it as Link it just appears as normal text on columnPlease advise or give us working sample to take inspiration from. I'm using Infragistics4.v11.2Kapil
Hi Kapil,
Could you please review the sample attached to this post and see if it meets your requirements.Please feel free to let me know if I misunderstood you or if you have any other questions.
Hi Boris,I've reviewed your code and seems it's close to what I want. I was assigning UltraFormattedLinkLabel to MainColumn's Editor property instead of EditorComponent - I'm not well versed on Infragistics but what's the difference between this two property's behavior and which one to use when? Also, Ideally I wanted to have a button for a subitem column as well along with LinkLabel in MainColumn. Is it possible without me using the UltraGrid? Also, instead of just button I tried ultraFormattedLinkLabel on both Editor & EditorComponent property as per earlier suggestion from Brian Fallon and that didn't help me either. I'm guessing if FormattedLinkLabel is possible then Button should be possible as well. Is it safe to assume?I've attached modification of your sample with Form2.Thanks again for your help!Kapil
Hi Boris,Sorry for being late. You can resolve this ticket for now. I did look at the sample of yours earlier and I think your answer "This could be achieved only for the 'MainColumn', since the sub items cannot be edited and therefore you could not get such editors in these columns." is what I wanted to make sure about since I wanted to have link or Button on SubItems. I was intially misguided by note "Sub-items cannot be edited so you could assign a FormattedLinkEditor to the UltraListViewSubItemColumn's Editor property" in one of the replies above mine.Thanks again,Kapil
Did you have the chance to look at my ListViewItemLink.zip above? I think that I did what you asked for there. Is not this what you are after, please let me know with some more details or a screenshot, if possible.
Hi Boris,I'm sorry I didn't get back to you earlier. I tried that earlier and somehow it didn't work for me. Regardless, I changed the way I was presenting data in UI so for now I'm fine. But, if you can give me working sample that would be great help in future if I choose to use that!Thanks again for your reply!Kapil
I wanted to know if you were able to solve your issue based on these suggestions or you still need help. Please let me know.
This could be achieved only for the 'MainColumn', since the sub items cannot be edited and therefore you could not get such editors in these columns.
Please try assigning this editor with the button to the 'MainColumn'.