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 have a grid with some numerical columns and a checkbox. I need to capture if they changed a numeric column on the client side. If they do, I want to check a checkbox on the record. Conversely, if they check a checkbox on a record, I want to take a numeric column and make its value zero.
Which event fires on the client side which will allow me to do this.
Hello John,
You can use OnExitEditMode to validate to capture if you have changed a numeric column or not. For the checkbox, we have OnCheckBoxClick clientside event. If you used our checkbox, you will surely be able to use this event.
Regards,Handy
OK, the OnExitEditMode doesn't seem to fire if you hit the enter key. Is there another event?
Also, OnCheckBoxClick works but I have a problem.
When the user unchecks the checkbox, I ask them if this is what they want to do. If they answer no I can't seem to check the checkbox in javascript. I tried using:
selectedRow.GetCells().GetNamedItem("approved_flag").SetValue(true)
but the UI does not reflect the change even when I call
grid.RootTable.UpdateUI();
afterward. How can I check the checkbox in javascript?
Hello,
Shouldn't when you hit enter in edit state, it would make you exit from edit mode?That's why I think you can also use this for your scenario.Because you only want to change the other cell text/value after change the current cell, correct?I think It can be done from this clientside event.
You could not check the checkbox by using that way. We have a Check method.You would need to use the method and check it also via element.E.g //check all checkbox via button click
function Button1_onclick() { var grid = ISGetObject("WebGrid1"); for(var j=0;j<i;j++) { grid.RootTable.GetRow(rowIndex[j]).GetCells()[0].GetElement().childNodes[0].checked = true; grid.RootTable.GetRow(rowIndex[j]).Check(); } return true; }
Thank you.
This has answered my question for the checkbox checking.
I will review again whether the on after exit edit gets fired if the user changes the numeric value field and then hits the return key.
I think the threads have changed since I last used them. How do I set this thread as being answered.
Ok, thank you for your confirmation. However,You could not mark this as answer because this is a discussion thread.
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