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
Hi,
i am using WebUI R1 Sp1 in Vs2005.
i ambinding a null data table to grid and let user to input data and i setting some column to hide
i set the grid to allow add new row.
now, i need to set the every new row's first cell to a default value ,user input in other cells.
then using "Enter" Key to navigation,if a row end edit, how can i add a new row below it throuh press "EnterKey" and retain the data of previous row?
another question:
in my application, there are some hide column, when batch update,how can i set the cell's value of hide column in server-side?
To retrain the data of previous row, i think you will need to hanlde it in OnAfterAdd client side event. On this event, you can get the added row and set it into the new row.
e.g
function WebGrid1_OnAfterAdd(controlId, tblName, rowObject, xmlResponseObject) { var WebGrid1 = ISGetObject(controlId); var newRowel = WebGrid1.RootTable.GetNewRow(); var newRow = WebGrid1.RootTable.ToRowObject(newRowel); var cell1 = newRow.GetCells()[1]; var cell2 = newRow.GetCells()[2]; var prevRow = rowObject; cell1.SetText(prevRow.Cells[1].Text, true); cell2.SetText(prevRow.Cells[2].Text, true); return true; }
If you have hidden column and would like to set the value, then i think you also need to set the value of hidden attribute in AddRowEvent (server side). You will need to set directly into your database because the hidden columns is not rendered.
Regards,Handy
Thank for your reply.
but another question:
using "Enter" Key to navigation,if a row last cell end edit, how can i add a new row below it throuh press "EnterKey"
how to solved?
You will need to set ApplyChangesKey="Enter" properties. With this way, you can use Enter instead of Shift+Enter.
please refer the application in the attachment
i am try according to your suggestion,but still failed. the new row data still lost.
In short, when i set grid allow add new row, i don't need put the new row in the top of grid
i need put the new row below of the previous row.
for example, first time,there are only a blank row(First row) in my grid, after last cell being filled and user press "Enterkey", a new balnk row will present below of first row and the data of first row will retain.
can you give me some suggestion or a simple sample?
thank you very much!
thank for you sample.
when i set grid allow add new row, i don't need put the new row in the top of grid
Unfortunately, it could not be done by our WebGrid.
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