Using Infragistics35 2011v2 in Visual Studio 2008, Windows7 IIS 7.5
I am just starting out with the webdatagrid control with a some drop down fields, some calendar fields, text box and text area fields (multi-line text). I can build the grid, but when I run it, the UI is a mess, none of the images are available and I get javascript errors when I try to use the dropdown controls as follows:
In method $IG.TextEditorProvider.prototype
I get an error on line 586: editor.set_value is null or not an object when I try to click on a cell that should call up a dropdown list.
When I try to call up the calendar, it floats on the grid in a semi transparent manner and again, none of the show up. I also can't get it to disappear once it is called up. I click on a date on the calendar and nothing happens
When I click on a field that should bring up a textbox, I get a js error in the same method on line 573:
var val = this._editor ? this._editor.get_value() : this._old;
val = this._editor ? this._editor.get_value() : this._old;
The text box then shows up on the far left side of the grid.
Here are the image and style sheets not available. Note that none of these are present anywhere on my hard drive:
ig_res/Default/images/igg_sortAsc.gifig_res/Default/images/igmc_prevPress.gifig_res/Default/images/igte_customHover.gifig_res/Default/images/igmc_nextPress.gifig_res/Default/images/igdd_DropDownButton.png
<link href="ig_res/Default/ig_shared.css" type="text/css" rel="stylesheet" /><link href="ig_res/Default/ig_texteditor.css" type="text/css" rel="stylesheet" /><link href="ig_res/Default/ig_dropDown.css" type="text/css" rel="stylesheet" /><link href="ig_res/Default/ig_dataGrid.css" type="text/css" rel="stylesheet" /><link href="ig_res/Default/ig_monthcalendar.css" type="text/css" rel="stylesheet" />
Note that I did add these tags to my web config:
<
section name="infragistics.web" type="System.Configuration.SingleTagSectionHandler,System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
and
< infragistics.web styleSetName="Default" styleSetPath="http://localhost/ig_common/"/> It made no difference. I also switched back to 2010v3.2134 and that made no difference either.
infragistics.web styleSetName="Default" styleSetPath="http://localhost/ig_common/"/>
It made no difference.
I also switched back to 2010v3.2134 and that made no difference either.
Hello Kberg,
If you are using more than one style for your controls or if you are using custom styles then you have to deploy them to the server also.
The styles (for the new Aikido controls) are located in “ig_res” folder in your project and contains important CSS classes (and the images) used to display the controls elements and style them - http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.2/CLR4.0/html/Web_Enabling_Application_Styling_Using_the_Web_Config_File.html
In the following link you can view the CSS files needed for all Infragistics ASP controls - http://community.infragistics.com/blogs/engineering/archive/2010/08/10/which-are-my-css-files.aspx
And bellow are needed files for these control that has to be present on the server -
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.2/CLR4.0/html/Web_Deployment_Overview.html
If these folders/files are not present on the server then the controls may not operate as expected.
One approach would be to create a virtual directory on your server and copy the “ig_res” folder there. Then you will be able to refer this folder through the “web.config” of each application that needs to use this folder. It is recommended not to mistake the “ig_common” with” ig_res” folder.
Test this approach and let me know if styles are still not loaded correctly.
following the procedures outlined in "enable application styling", I was able to get the styles to appear. However, I still am getting consistent element is null or not an object when clicking on the header to sort, a table item that is a a dropdown edit, a cell that is an text box or an element that is a calendar. Then the edit control shows up in the upper left corner of the grid and I cannon make it disappear.
The images and styles are not part of the install because they are generated dynamically for every project.
The issues reported are probably caused by missing or improperly deployed scripts for the used controls.
What I can recommend you is to create a new Web Site project in Visual Studio, add some of our controls to it (remember to create “ig_res” folder too) and deploy this project to the server.
If deployment is successful and all controls are working properly then there should be some deployment issues with the previous project deployed – missing “dll” files or CSS files, permission issues etc.
Test the deployment of new site and let me know what the results are.