ankur8819
ankur8819
Branch Unspecified
25 Apr 2012

Any one worked on YUI library

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
25 Apr 2012
Go ahead and post your doubts. I'm quite sure people visiting this page may just answer your question 😀
25 Apr 2012
Please ask your question... I have worked with it... 😀
ankur8819

ankur8819

Branch Unspecified
30 Apr 2012
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

Share this content on your social channels -

Only logged in users can reply.