User Profile & Activity

Martin Lie Support
martin@intersoftsolutions.com
Page
of 43

Hello Fung,

I tried to create sample following your scenario, and I couldn't replicate your issue on my end. When I type 01, WebInput will automatically change to 1.

I couldn't download your attachment. Maybe the attachments was corrupted. Could you please re-send the attachment?

Thank you.

 

Regards,
-Martin-

Hello Jean,

It seems that we don't have SetContentURL() method in WebNavPane. But I do have a workaround for this issue. You are still able to set the content url using the following code:

function DoSetURL()
{
   var navPane = ISGetObject("WebNavPane1");
   var navBarItem = navPane.BarItems.GetNamedItem("navbar_Item1")
   var navBarItemFrame = navBarItem.Parent.FrameObj.childNodes[0].childNodes[0].childNodes[1].childNodes[0].childNodes[0].childNodes[0]
   navBarItemFrame.src = "http://www.intersoftpt.com";
}

What I did is to obtain the object which WebNavPane is using to set its ContentURL for the navbar item. In this case, I need to get the iFrame of NavBarItem. Therefore, this is how I get into that object. Then, set the src property to implement content url.

Hope this helps. Thank you.

 

Regards.
-Martin-

Hello,

In my sample, it only needs to click once in the column to trigger the hyperlink text.

I'm using the following code:

WebGridColumn col = new WebGridColumn();
col.DataMember = "CompanyName";
col.ColumnType = ColumnType.HyperLink;
col.HyperlinkDisplayText = "test";
WebGrid1.RootTable.Columns.Add(col);

However, I was unable to replicate your issue here. Am I missing some settings?

Could you provide me a simple working sample that replicates your issue?

 

Thank you.

 

Regards,
-Martin-

Hello Jean,

You can try the following code to set ContentURL using TargetURL property and Click() method.

function ClickBarItem()
{
   var navPane = ISGetObject("WebNavPane1");
   var navBar = navPane.BarItems[0];
   var navBarItem = navBar.Items[0];
   navBarItem.TargetURL = "http://www.intersoftpt.com";
   navBarItem.Click();
}

I refer to VariousClientSideObjectSamples.aspx in WebNavPane. I simply modify one of the NavBarItem and set TargetURL manually from client-side and trigger the item by using Click().

Hope this helps. Thank you.

 

Regards,
-Martin-

Posted: May 10, 2011 1:18 PM

Hello Steve,

Try to use ISDataSource control when you bind the data to WebGrid. It seems that "NamedPeriod" group interval will only works when you use ISDataSource.

Thank you.

 

Regards,
-Martin-

Posted: May 9, 2011 6:36 PM

Note that after further testing, the lost focus action isn’t triggered only by the Grid. If you have other focusable elements, like a button or textbox, the lost focus action such as AlwaysPrompt will take into affect.

 

Posted: May 9, 2011 3:33 PM

Hello,

We do have a sample similar to this scenario. The sample file NamedPeriodGroupInterval.aspx is located in [Installation Folder]\Program Files\Intersoft Solutions\Intersoft WebUI Studio 2011 R1\Samples\For ASP.NET\ISNet.WebUI.Samples\cs\WebGrid.

You can browse to the live sample in here.

Hope this helps. Thank you.

 

Regards,
-Martin-

Posted: May 6, 2011 11:11 AM

Hello,

When there is no database in the grid and you add the new row, it will not prompt anything because you currently don't have any row to be selected, and WebGrid assumes that you did not perform any lost focus action.

I'm not sure this is an issue in WebGrid or this is the default behaviour of WebGrid. For the time being, please use SHIFT+Enter when you want to add a new row in the grid that has no database initially.

I will discuss this issue further with the developer team and I will let you know the update.

Thank you.

 

Regards,
-Martin-

Posted: May 5, 2011 5:33 PM

Hello,

This is my suggestion to the other customer that had the same issue before:

"This error might occur because you have different assembly version between your project and the GAC.

Check you GAC for ISNet.WebUI.WebGrid.Editor assembly version. If the version is different, then delete the assembly from the GAC and drag the one from C:\Program Files\Intersoft Solutions\WebUI Studio for ASP.NET\WebGrid.NET 7.0\Bin.

Restart your project and try to open WebGrid's designer."

The above solution should work for the designer issue. Please ensure you have the same version of ISNet.WebUI.WebGrid.Editor in both GAC and bin folder.

If the error still persists, may I know what the error is? You can provide a screenshot for better information.

Thank you.

 

Regards,
-Martin-

 

Posted: May 5, 2011 5:16 PM

Hello Ellen,

You can use ClearSelection() method to display an empty cell. Here is the following code:

function DoClear()
{
   var combo = ISGetObject("wcProduct");
   combo.ClearSelection();
}

Invoke this script using button or any control you like. It will clear the selection you made in the combo.

Hope this helps. Thank you.

 

Regards,
-Martin-

All times are GMT -5. The time now is 11:06 PM.
Previous Next