Re: [Wicket-user] Adding items to GridView using AJAX
Also, take note that IE doesn't allow you to replace individual table rows using inner html and outer html. Such things should be done using dom manipulation (aargh). Martijn On 7/22/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > but what happens if you have a row filled and the user adds another item, > then you need to create an entire new row w/out repainting the rest. the > gridview wasnt designed with ajax in mind, so i see two situations - rewrite > gridview with ajax sutt in mind or create a separate ajax grid view that can > do all this. > > -Igor > > > > On 7/22/06, Predrag Spasojevic <[EMAIL PROTECTED]> wrote: > > > > > > > > What is the best way to add new items to GridView using AJAX? > > The best way I can think of is to put GridView on a container( panel for > example) and then update the panel using AJAX. > > But using this way the whole table repaints. I can't find a way to repaint > only affected cells. > > For example : grid has 1 column and 10 rows and there is only 5 cells > filled. If user adds a new item I would be nice if it is possible just to > draw > > item at row 6, not to repaint the whole table. > > > > -- > > Regards, > > Predrag Spasojevic > > > > > - > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > > opinions on IT & business topics through brief surveys -- and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > -- Download Wicket 1.2 now! Write Ajax applications without touching JavaScript! -- http://wicketframework.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Adding items to GridView using AJAX
but what happens if you have a row filled and the user adds another item, then you need to create an entire new row w/out repainting the rest. the gridview wasnt designed with ajax in mind, so i see two situations - rewrite gridview with ajax sutt in mind or create a separate ajax grid view that can do all this. -Igor On 7/22/06, Predrag Spasojevic <[EMAIL PROTECTED]> wrote: What is the best way to add new items to GridView using AJAX? The best way I can think of is to put GridView on a container( panel for example) and then update the panel using AJAX. But using this way the whole table repaints. I can't find a way to repaint only affected cells. For example : grid has 1 column and 10 rows and there is only 5 cells filled. If user adds a new item I would be nice if it is possible just to draw item at row 6, not to repaint the whole table. -- Regards,Predrag Spasojevic -Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Adding items to GridView using AJAX
What is the best way to add new items to GridView using AJAX? The best way I can think of is to put GridView on a container( panel for example) and then update the panel using AJAX. But using this way the whole table repaints. I can't find a way to repaint only affected cells. For example : grid has 1 column and 10 rows and there is only 5 cells filled. If user adds a new item I would be nice if it is possible just to draw item at row 6, not to repaint the whole table. -- Regards,Predrag Spasojevic - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user