Hi,
Is there any example or code available that demonstrates adding and deleting rows dynamically from "webgrid" component. I havn't seen any in the examples distributed. Any pointers will help.
Thanks.
Hi:We not created any of these because each situation is a little different. For example, in some cases its best to have a popup window fo radding rows, in others its better to put the new row into the grid with blank fields and then allow the user to edit it. A third possibility is to have a separate "row" outside the grid where the user enters data and then presses an "Add" button to add the row to the grid.Another issue is sorting: if sorting is being applie, it'll affect which page in the grid the new row appears.If you can provide some details on how you'd like to approach this, I'll create an example fo ryou.
Best,Jim
Hi:
I've created three examples showing different ways of allowing the end-user to add rows to a grid.To see these examples go to http://componentsforjsf.com and select the Tutorials section from theleft-hand-side links. Under Advanced NetAdvantage for JSF Topics, you'll see a link to "Letting users add rows to the grid". Click the link and you'll see the first of the three examples. The other two are linked to this page.
I hoipe you find this helpful!Thanks, Jim
Hello Jim,
Really Nice application.
Thank you
Roshan
Thanks Roshan! Its always nice to get feedback! :)
I want to add that a built-in add row feature is part of our road map, though I cannot commit to any dates on its inclusion.
Gantait:
Yes that's a good idea! With a little code, you can do that now. If you look at componentsforjsf.com, in the Tutorials section you see links for "Popup menus for grids" and "Letting your users add rows to a grid". If you combine these two examples, you'll have what you're asking for.
Thanks,Jim
Hi Jim,
It will be really nice and helpful if we can get the inbuild feature..add and delete row for ig:gridView in later version...as sometimes it require as project demand.
And i could suggest one thing, on clicking on a row we there may be a context menu which ask for those functionality ..and before delete it ask a confirmation.
if those functionality colud posible through context menu, then grid look-n-feel will not be change..
Like suppose instade of row selection check box and selected rows will be deleted by clicking a button..in that case we need a extra column for checkbox..sometimes which may not be allowed by customer.
with best regards,
gantait