Attributes


I override the events onClick and onKeyDown by adding them as attributes in the server side, what other events can I add as attributes?

Hi,

We will get back to you soon for you inquiry.

Thank you.


Any updates??? Also, I want to detect “Enter” with the keypress event (keycode 13) and set the active cell. Basically I don’t want Aspose to move the control to the next cell. How can I do that? Is there any events that I can override???

Hi,

Here is a solution:

Server side:

GridWeb1.Attributes["onkeydown"] = "return grid_onkeydown();";

Client side:

function grid_onkeydown()
{
if (event.keyCode == 13)
{
GridWeb1.setActiveCell(0, 0);
return false;
}
else
return true;
}

Thanks a lot.


This solution somehow slows the process. Also I notice an ‘Object required’ javascript error with this solution.


I’ve attached a sample application herewith. If I just hit Enter, there are no issues. But if I update the cell and then hit Enter, I’m getting a javascript error. Am using Aspose.Grid.Web Version 2.0.0.2001.


Any updates ???

Hi,

Well, your attached .zip file (sample1.zip) only contains visual studio solution file and nothing else. Please provide us your complete source .cs/vb, .aspx files, etc. we will check it soon.

Thank you.


Oops, here you go.

Hi,

Thanks for your sample project.

We will figure it out soon.

Thank you.