Hi All,
I’ve place the UltraFormattedLinklabel with rightsbutton in the form and added to this control to the wingrid. Now I want fire/capture the rightsbutton click event…
Note: I added UltraFormattedLinkLabel to WinGrid but It’s not firing EditorButtonClick Event from WinGrid…
Thanks in advance….
ateeqpasha
I assume that you are referring to UltraFormattedTextEditor, as UltraFormattedLinkLabel does not support buttons.
The WinGrid does not have an EditorButtonClick event. The EditorButtonClick event is on the UltraFormattedTextEditor. The Context on the event args will give you the cell that was clicked.
Mike Saltzman"]I assume that you are referring to UltraFormattedTextEditor, as UltraFormattedLinkLabel does not support buttons.
Actually, the ultraformattedlinklabel does support buttons (buttonsright and buttonsleft). At least it does with 2007.3.
The problem is that buttons on an ultraformattedlinklabel are not supported well within a grid. First, they don't show up unless you set the button display style on the cell to "always," and then you have to use a combination of the grid's click event, active cell, and uielement stuff to figure out that the button was actually clicked, since it does not fire the control's editorbuttonclick event like it does with the formatted editor.
Hi Jeff,
Wow, I never realized that the UltraFormattedLinkLabel had those properties. I guess since it's a label, it never enters edit mode in the grid and that's why the buttons don't work. I tried this out and it's not just that the events don't fire, the buttons themselves do not even appear to click.
Anyway, I'm not sure that the label was intended to be used this way, but since it supports editor buttons and they show up in the grid when ButtonDisplayStyle is Always, then this seems like a bug. At the very least it's a documentation bug, since I don't think it's documented anywhere that this isn't supposed to work.
You should Submit an incident to Infragistics Developer Support so they can check it out.
Mike,
Since the control that actually gets used in either case is the same, you are correct that the only ultimate difference between a ultraformattedlinklabel vs. the ultraformattedtexteditor in a grid is the fact that the linklabel doesn't enter edit mode (and thus not showing the buttons). In fact, you'll see the same results with an ultraformattedtexteditor by setting cellactivation to noedit. You may submit an incident report if you wish, but from past experience I'm betting the response will be that this is "intended behavior."
For what we are using the linklabel for--to display clickable data that takes the user to more detail along with a button for selecting the data value--the ultraformattedlinklabel works pretty well. I've created modified versions of the ultracomboeditor and the ultratexteditor that provides the linkclicked functionality to those controls as well, but, of course, they do not work within a grid since it doesn't use the editorcontrols directly. So, we're pretty much restricted to using the ultraformattedlinklabel within a grid. We can almost get the same button functionality by setting the cell's style to editbutton, but because the ultragrid doesn't have its own "displaystyle" or "viewstyle," its buttons appear as generic without loading an appstyling library or manipulation of the cellbuttonappearance... and if we ever needed more than the one button, we'd be out-of-luck there as well.