1. Home >
  2. Apps >
  3. Groups >

Any one worked on YUI library

Question asked by ankur8819 in #Coffee Room on Apr 25, 2012
ankur8819 · Apr 25, 2012
Rank C3 - EXPERT
Hi CEans ,
I have recently started using YUI library .I have a few doubts specifically in YUI.DataTable widget.
Anyone worked on it?
Do let me know.

Thanks in Advance,
Ankur Luthra Posted in: #Coffee Room
Kaustubh Katdare
Kaustubh Katdare · Apr 25, 2012
Rank A1 - PRO
Go ahead and post your doubts. I'm quite sure people visiting this page may just answer your question 😀
PraveenKumar Purushothaman
Rank A1 - PRO
Please ask your question... I have worked with it... 😀
ankur8819 · Apr 30, 2012
Rank C3 - EXPERT
Sorry for turning up late..
I have a DataTable that comes up as a result of some Search Criteria.
The Datatable has a checkbox in first column in each row.Now there is a Button on click of which I need to update a column in the DB.This column is displayed in the Search Grid.
Now I can think of two alternatives over here.

AlterNative 1:-
1) Get all the rows where checkbox is checked
2) make an AJAX call to the Db and update the checkbox.I need to remember the current state of DataTable over here(like current Page number,Number of rows etc.).Is it possible in DataTable.I guess there is a datasource property which can help me achieve that.Not sure....Please correct me here/provide me pointers for the same
3) Refresh the DataTable with the state captured in previous Step.Again I am not sure if thats possible....I guess there is a RefreshDataTable function thta I can help.But here again I am not sure if I can refresh it using the Datasource captured in Step 3.

AlterNative 2:
1) Get all the rows where checkbox is checked
2) Post the whole form and update the Details.here in addition to remebering the state of Grid I need to know if the Page is a post Back or has been opened for the first time.
3) Refresh the Grid with the current state.

Can anyone suggest which one is better.I feel Alternative 1 is better in the sense its less messy and needs less variables to maintain.Please share your opinions.
Any pointers to the questions asked above will help me alot.

Thanks in Advance,
Ankur Luthra

You must log-in or sign-up to reply to this post.

Click to Log-In or Sign-Up