User Profile & Activity

Handy Surya Support
Page
of 223
Posted: September 8, 2010 3:28 PM

Hello Zhang, 

When you double click a cell and change the value, you would need to have shift+enter, to update the value. Is this what you are looking for?
Please let me know more details such as your runable sample. 

As I said before, you would also need to handle your update process manually. I don't know what query that you should use. But In my attached sample, I can show you how I handle my update process.

Regards,
Handy

Hi Eric,

I am sorry but I still could not understand some parts. Would you mind to send a simple runable sample that described this scenario?
As far I know, you can attach an event in an object programmatically via javascript.
All you need to obtain the element and use Listener.
Example,

  Listener.Add( el, "onclick", test);

el>> your element of object.
test>>the function that you called when the event is fired.

Regards,
Handy

Hi Eric,

I am sorry for the late reply. We have not released the official hotfixes. For now, you should use the nightly build hotfixes that I sent before. In next release the fixes should be included as well.

Regards,
Handy

Hello Mike,

Attached project also could not replicate the issue. Please correct the handler in your web.config at System.web tag. 

      <add path="ISRes.axd" verb="GET" type="ISNet.WebUI.WebResourceHandler, ISNet.WebUI, Version=3.0.5000.1, Culture=neutral, PublicKeyToken=b1f2a8511635667a"
        validate="true" />
      <add path="ISChart.axd" verb="GET" type="ISNet.WebUI.WebGrid.Chart.ChartRequestHandler, ISNet.WebUI.WebGrid" validate="true"/>

In IIS7 those handler should be placed in System.web tag. 
As you said before, my project worked well. So, would you mind to compare my web.config with yours?

Regards,
Handy

Posted: September 8, 2010 12:29 PM

Hello Darren,

I still could not see the issue in here. Please try to apply WebUIFramework hotfixes in here.
FYI, this a nightly build (disclaimer : on). Please let me know your feedback if you find something when using this hotfixes.
If the issue still persists, please let me know step by step to reproduce your issue.

Regards,
HAndy

Hello Mike,

Thank you for your confirmation. However, would you mind to send me a simple runable project that replicates this issue? I need this to investigate your issue.
As far I know, Xceed is not from our chart engine. It should be from nevron chart engine.

Regards,
Handy

Posted: September 7, 2010 3:56 PM

Hello,

You could not update because you did not handle an update process in your database.
As far I can see, you only bound the data but did not handle the update.
Normally, you will need to handle it at UpdateRow serverside events.
Since you were using BatchUpdateScenario, you will need to handle at BatchUpdate serverside events.
In this event, you need to call your update query or function.
Shouldn't you have a query or function to update your database?

Regards,
Handy

Hello Eric,

I am not sure why you need to attach onclick event on the image.
However, I think if you want to handle something in (+) or (-) images, you can use some available events such as, expand or collapse. It is easier to handle in available events.
If you want to delete all data below the current node, I think you need to check if the current row has been expanded or not.

To refresh data, you can use WebGrid1.Refresh() >> Clientside approach
or WebGrid1.ClientAction.Refresh() >> Serverside approach, but it needs to have some postback action to call this.

Regards,
Handy

Posted: September 7, 2010 3:44 PM

Hello,

Please see the below code.

function WebGrid2_OnCellDblClick(controlId, tblName, rowIndex, cellIndex, cellEl)
{
	var WebGrid2 = ISGetObject(controlId);
	var WebGrid1 = ISGetObject("WebGrid1");
	WebGrid1.SetFocus();
	window.setTimeout(function () { var row = WebGrid1.RootTable.GetRow(0); row.Select(); row.GetCells()[0].ActivateEdit(); }, 500);
	return true;
}

When double clicked a cell in WebGrid2, it will focus, select and activate edit a cell in WebGrid1. Is this what you are looking for?

Regards,
Handy

Posted: September 7, 2010 12:08 PM

Hello Rolf,

Please add ISNet.WebUI.WebDesktop.Resources.dll into your project references. This should fix your error.
I will wait the sample that your promised in our previous livechat.

Regards,
Handy

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