Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
5
Ultra web grid paging Problem
posted

Hi,

I am selecting the row of a grid in javascript,but when i am changing the page in the grid the selected row get lost, i want to show the row selected even when the user changes the page and back to the page in which he selects that row.

The code is given here below:-

javascript

 

 

 

 

 

 

 

function

 

 

AfterRowActivateAccount(gn, rowID)

{

 

 

 

 

 

 

 

var row=igtbl_getRowById(rowID);

prevRowId=rowID;

 

 

 

var  cells=row.getCellElements();

prevRowColor= cells[0].style.backgroundColor;

setRowBackColor(row,

 

"paleGreen"

);

selectGridRowAccountSearch(cells[1].innerText,cells[0].innerText);

igtbl_selectRow(

 

"dgSearchResults", rowID, true

);

 

 

 

var grid=igtbl_getGridById(gn);

 

 

for(var rowId in grid.SelectedRows)

 

 

 

 {

   Here i alert the selected rows i get the row over here;  

 }

I want to ascess teh row in the page index changed

protected

 

void dgClientSearchResults_PageIndexChanged(object sender, Infragistics.WebUI.UltraWebGrid.PageEventArgs e)

{

 

Infragistics.WebUI.UltraWebGrid.

SelectedRowsCollection coll = dgClientSearchResults.DisplayLayout.SelectedRows;

 

int count = coll.Count;

 

dgClientSearchResults.DisplayLayout.Pager.CurrentPageIndex = e.NewPageIndex;

 

if

 

 

(Session["searchClientEntity"] != null

)

{

 

 

List<IClient> client = Session["searchClientEntity"] as List<IClient>;

}