I am using Version=9.1.20091.2137 of WebCombo which has the same version of UltraWebGrid as its dropdown.
I can't get the UltraWebGrid to fire the event dblClick.
The single click does fire.
I'm not sure if the problem is with the client-side code required to define the handle to the event, or some other reason.
Thanx,
Mike Steiner
Hello Mike,
Do you handle both CellClickHandler and DblClickHandler? :
<ClientSideEvents DblClickHandler="UltraWebGrid1_DblClickHandler"
CellClickHandler="UltraWebGrid1_CellClickHandler" />
function UltraWebGrid1_DblClickHandler(gridName, cellId){
//Add code to handle your event here.
alert(cellId + ' DblClickHandler');
}
function UltraWebGrid1_CellClickHandler(gridName, cellId, button){
alert (cellId + ' CellClickHandler');
http://forums.infragistics.com/forums/p/20240/73062.aspx#73062
HI Tsvetelina,
I didn't see how to define ClientSideEvents for the UltraWebGrid part of the WebCombo?
The UltraWebGrid is part of the WebCombo, not stand alone, and I could only see
<ClientSideEvents> for the Webcombo.
These ClientSIdeEvents do not expose the possibily for defining a handler for the click or the double click. In any case, I need it on the grid part of the combo, not the textbox part.
I have workaround, which is to define double click handler on the whole HTML page in which the WebCombo is a part, and then in the handler function, only deal with the double click when the element double-clicked is the combo's grid:
if
( termGrid.ActiveRow != "" )
Mike
Thank you for the clarification.
You mean WebCombo control.
Please refer to the below forum post:
function WebCombo1_InitializeCombo(webComboId){
var combo = igcmbo_getComboById(webComboId);
combo.container.ondblclick = DblClickEvent;
combo.inputBox.ondblclick = DblClickEvent;
function DblClickEvent() {
alert('double click the webcombo textbox');
http://forums.infragistics.com/forums/p/14079/53943.aspx#53943
Let me know if you need further assistance regarding this.
Hi Tsvetelina,
The above code, and also the the forum post you mentioned all relate to the double click event in the textbox part of the WebCombo.
My requirement is to define a handler for the dblclick event in the dropdown list part of the WebCombo, which is an UltraWebGrid control.
In the InitializeCombo event of the WebCombo, I am able to get a handle on the grid using: myGrid = combo.getGrid().
I also see that a dblclick event appears under myGrid.Element.dblclick.
However, even after setting this to my dblclick handler:
myGrid.Element.dblclick = DblClickEvent;
it seemed that the event was not fired in the grid part of the combo.
So in the meantime, I remain with my workaround.
Tnx
Hi Mike,
Thank you for the additional information.
I gues you are searching for this:
combo.getGrid().MainGrid.ondblclick= DblClickEvent;
In my previous post I have used the container in order to achieve this :
function WebCombo1_InitializeCombo(webComboId) {
// combo.container.ondblclick = DblClickEvent;
// combo.inputBox.ondblclick = DblClickEvent;
Please let me know if you need further assistance regarding this.
I tried the code you posted here, but I'm sorry to say that the dblclick was not fired for the WebCombo's grid.
Thank you for getting back to us.
I guess the issue us happening because you are using older version of NA.
I am using the latest service release of v10.3
I recommend you upgrading to the last service release of 9.1 (9.1.20091.2187)
Please refer to the attached sample and let me know if you need further assistance.