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 check in the function webgrid1_onentereditmode if the selected row is valid, if not then it shouuld go(focus) to the next column. how can i do that?
thanks in advance
Hi Eray,
You can try this code on your local end
function WebGrid1_OnEnterEditMode(controlId, tblName, editObject) { var WebGrid1 = ISGetObject("WebGrid1"); if (editObject.ToCellObject().Name == "CustomerID") { WebGrid1.ExitEditMode(true); editObject.ToCellObject().Row.GetCells()[editObject.ToCellObject().Row.Position + 1].Select(); } return true; }
In CustomerID column I didn't put EditType value as NoEdit value. This will trigger OnEnterEditMode. Then my code will return false so WebGrid won't show it's textbox and put the focus on the next table. Please let me know if this solution working and meet you requirement. Hope this helps.
Regards,Bernard
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