First off I am using NetAdvantage for .NET 2009.1 in a MOSS 2007 environment. All the code I have written works perfectly in Internet Explorer for the user to edit an Ultrawebgrid cell on a double click. When i try edit the cell in firefox, it never allows the user to edit the cell. It just selects the cell the user clicks on.
I have tried adding a double click handler with the following javascript code to correct the situation;
function DblClickHandler(gridName, cellId) { var cell=igtbl_getCellById(cellId); cell.activate(); cell.beginEdit(); }
and I set it to function;
Grid1.DisplayLayout.ClientSideEvents.DblClickHandler = "DblClickHandler"
I have search the web and the forums to see if I am missing something and have found very little information. Can anyone point me to what I am missing?
- Adam
Try to force script load from the file system with this configuration:
<configuration><infragistics.web imageDirectory="..." javaScriptDirectory="..."/>
and copy new code ;)
That worked!
For those not familiar with this configuration, here is a snippet from the Infragistics documentation on "Deploying an Application to a Hosted Server Environment". This allows you to point your code to a specific version of js code.
<configSections> <section name="infragistics.web" type="System.Configuration.SingleTagSectionHandler,
configSections
section
name
type
System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/> </configSections>
System,
Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/> </configSections>
This XML specifies that infragistics.web section is indeed a valid element for the web.config file.
After adding the configSection tag, you can then add the actual infragistics.web tag. The following is an example of a web.config file which specifies the values JavaScriptDirectory and ImageDirectory. In this example, all web elements are pointed to the Application's scripts and images folders.
<infragistics.web imageDirectory="~/images"
infragistics.web
imageDirectory
javaScriptDirectory="~/scripts"/>
javaScriptDirectory
hi,
We have Infragistics2.WebUI.UltraWebGrid.v7.1, Version=7.1.20071.1045, and the double click event in firefox does not work.
If i change in ig_WebGrid.js as explained by post: http://blogs.infragistics.com/forums/t/37767.aspx, it works in firefox but fails in ie.
I can not put working in both browsers (ie and firefox).
Can you tell me how i can do it?
Best Regards