iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I want to get next cell from one edit cell by the way "wgGetNextEditableCell() ",but it does not work!
var grid = ISGetObject("WebGrid1");var curCell = grid.GetActiveEditCell().cellIndex;var Tcell = grid.GetSelectedObject().ToRowObject().GetCell(curCell - 1).GetElement(WG40.BODY, WG40.HTMLCELL); var NextcellElement = wgGetNextEditableCell(Tcell); var cellObj = wgGetCellByElement(NextcellElement); alert(NextcellElement)alert(Tcell.innerText)
I made a simple test page based on the snippet code on your first post of this thread. Minor modification was made on your code and I was unable to repro the issue on my local test.
function button1_onclick() { //get the grid object var WebGrid1 = ISGetObject("WebGrid1"); //get current active edit cell index var curCellIndex = WebGrid1.GetActiveEditCell().cellIndex; //get current active edit cell element var curCellElm = WebGrid1.GetActiveEditCell().ToCellObject().GetElement(); var curCellElm2 = WebGrid1.GetSelectedObject().ToRowObject().GetCell(curCellIndex - 1).GetElement(WG40.BODY, WG40.HTMLCELL); //get next editable cell object var nextCellObj = wgGetNextEditableCell(curCellElm); //get next editable cell element var nextCellElm = nextCellObj.element; alert(nextCellObj); alert(nextCellElm.innerText); return true; }
Please have the snippet code shown above tested on your end and let me know whether it helps or not.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname