User Profile & Activity

James Member
Page
of 14
Posted: October 9, 2009 11:07 PM

Hi Johnny,

It seems that you're entering wrong key in your web.config. You should put in the RuntimeLicenseKey in your web.config, and not the design/development license.

You can obtain the runtime license key from Developer Network, under My Components tab. If you haven't generate the runtime key before, you'll need to click on the WebGrid product, then click "Register" button when you see the Runtime key label in the details panel.

Hope this helps,
James.

Posted: October 9, 2009 12:40 PM

Hi Dasha,

Yes, you can programmatically add the required attribute and the source via a simple javascript. 

Example,

var iframe = document.getElementById("TempIFrameID");
iframe.src = "yourHtml.html"; // make sure you really have this blank html
iframe.title = "Temporary IFrame";

Hope this helps,
James.

Michael,

Make sure your column-level initialization codes are not inside !IsPostBack or other conditions. That means, those codes should always be executed during PrepareDataBinding.

Hope this helps,
James.

Posted: October 5, 2009 11:20 AM

Hi Adrian,

Yes, it'll be difficult to put a breakpoint on the code that caused the IE to hang. If you don't have IE Developer Tools, you can use Visual Studio to detect the problematic code. Here's how:

  • Run your webform in debugging mode, this should launch IE with the process attached to Visual Studio debug mode.
  • Perform some actions or wait until the IE seems hang, then quickly click "Pause" button in Visual Studio (the button is located in the Debugging toolbar).
  • When you got the right moment, IE will pause and show you what code that it currently executes. That code will likely be the cause of the IE hang.
Let me know if you're able to successfully capturing the problematic code. Thank you.

Hope this helps,
James.

Posted: October 4, 2009 7:00 AM

Al, try to add i-- after calling win.Close()

The code should look like:

function CloseWindows()
{
	var dm = ISGetDesktopManager();
        var length = dm.Windows.length;
        for (var i=0; i<length; i++)
        {            
        	var win = dm.Windows[i];
                if (win.ClientVisible == true)
                {
                    win.Close();
i--; } } }

Let me know if it works for you. 

Hope this helps,
James.

Posted: October 3, 2009 3:10 AM

It's quite unlikely that Intersoft controls could cause such "hang" issue as we never experienced one before.

If you used IE 8, you can try to use Developer Tools and start Javascript debugging. Then, click on the "Pause" button which will then stop at the point where the IE executes the code. You can use this technique when the IE consumes about 50% of CPU, and it will tell you exactly which line of code that executes the program.

Please let me know if you can find anything on this issue. Thanks!

Hope this helps,
James.

Posted: October 2, 2009 11:37 AM

Hi Dasha,

I don't really recommend the way to use html in the Caption as it could cause issue when used with other features such as Select Columns, or other features that rely on Caption to draw the User Interface.

If possible, try to isolate your scenario and investigate why the styles failed to render in your SharePoint page.

In any chances, this code should work, try the following setting:

<HeaderStyle CustomRules="font-family:Comic Sans MS!important;font-size:X-Small!important;" />

That will ensure the specified styles are attached to the header without getting override from other aspects. 

Hope this helps,
James.

Posted: September 17, 2009 12:42 AM

In addition to Dicky's respond, also make sure you've updated all *.Resources.dll to your project bin folder. That should fix it.

Posted: September 16, 2009 11:47 AM

Hi Darlene,

WebGrid 7 includes built-support for this scenario, which is called batch update. Check out the feature here. I think the batch update feature will really save your time if you need a solid batch editing capability (multiple edits and then save in one request).

Also with the feature, you can easily get the changes in both client or server-side, for example, grid.GetChanges() will return a collection of all pending changes across tables.

Hope this helps,
James.

Posted: September 15, 2009 1:01 PM

Michael,

WebGrid will use the first data table in the DataSet only when the DataMember is not specified.

So if you have 3 data tables in your DataSet, you can have WebGrid to display one of the data tables by specifying the DataMember in the WebGrid and RootTable object, which is shown in my previous sample code.

For your convenience, let me paste the code where you can specify the data table to be displayed.

<ISWebGrid:WebGrid ID="grdPC" runat="server" DataMember="DataSetA" ...>
     <RootTable DataMember="DataSetA" ...>
      ...
     </RootTable>
</ISWebGrid:WebGrid>

Hope this helps,
James.

All times are GMT -5. The time now is 2:51 AM.
Previous Next