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 am looking for an example of how to set the Footer Cell's value. When I edit a cell I would like to update the footer cells value as well. I need to do this on the client side.
Thanks!
Hi John,
Your sample code and mine are basically same, by adding one more childNodes in my sample is to go deeper to the specific element. So, what you did is a correct method as well. The other samples that you might see are different, those cell’s element might has a SetText() method. When we are in the footer’s cell element, there is no SetText() method, so we can just set the InnerText value into a specific value and it works as well.
Thank you,
Andi Santoso
They should have the sample, I have this scenario before, and able to manage it using ExitEditMode client side event in WebGrid. With that client side event you can re-calculate the value of cells in each WebGridRow and then mapped it to footer cells. Sorry I can't attach the code snippet here, I'm not at my PC right now :)
BR,
JKMac
In order to update the Footer Cell's value when you edit a cell is by using a "OnExitEditMode" on the client side. You have to get the value from an edited objet and set it to the footer's element cell.
Here are the sample code that I made in client side:
function WebGrid1_OnExitEditMode(controlId, tblName, editObject) { var WebGrid1 = ISGetObject(controlId); WebGrid1.RootTable.GetElement(WG40.COLFOOTER, WG40.HTMLTABLE).cells [4].childNodes[0].nodeValue = "Element : " + editObject.element.value; return true; }
function WebGrid1_OnExitEditMode(controlId, tblName, editObject) { var WebGrid1 = ISGetObject(controlId); WebGrid1.RootTable.GetElement(WG40.COLFOOTER, WG40.HTMLTABLE).cells
[4].childNodes[0].nodeValue = "Element : " + editObject.element.value; return true; }
Thank You,
Thanks for the suggestions. I was able to get and set the text of a footer cell using the following:
colFooterCell = grid.RootTable.GetElement(WG40.COLFOOTER, WG40.HTMLTABLE).cells[cellIdx +1]; colFooterCell.style.backgroundColor = "LightSteelBlue"; colFooterCell.style.fontWeight = "bold"; alert(colFooterCell.innerText); colFooterCell.innerText = "xx";
I was wondering if this is the correct method as all the other cell text setting examples seem to use the SetText method.
Thanks for the feedback!
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