Problem with Webgrid in Virtual Mode

10 replies. Last post: November 15, 2010 11:28 AM by Handy Surya
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Madhavan GMember

Hi Team,

We are using Webgrid 7.

We are having multi select functionality means we will select the checkbox and act on it for various operations.

1.Loading the grid with virtualmode enabled.Say we have 5 records.We have set  virtaulpagesize as 2.

2.First time it loads with 2 records and we can do multi select and perform the operation by clicking on button (pick,plan etc).

3.Then I am Selecting the next 3 records by clicking on LoadMore icon.

4.Then i am selecting the 3rd,4th and 5th checkbox and perform the multi select operation by clicking on button(pick,plan etc). But this time it is failing.

 

We are doing some logic in Server side (Webgrid1_InitializePostBack method)

Even After Clicking the LoadMore icon the Webgrid1.RootTable.Rows is returning the first two rows and the Next three rows which is getting shown in the UI after clicking the LoadMore icon.

 

Please advice.it is very urgent for us.

 

regards,

Madhavan

for (int j = 0; j < rowsCount; j++)
{
if (WebGrid1.RootTable.Rows[j] != null)
{

if (WebGrid1.RootTable.Rows[j].Type == RowType.Record)

{

for (int i = 0; i < workitemIds.Count; i++)

{

if (WebGrid1.RootTable.Rows[j].KeyValue.ToString() == WebGrid1.RootTable.GetCheckedRows()[i].ToString())

{

string workflow = WebGrid1.RootTable.Rows[j].Cells.GetNamedItem("Workflow").Text;

Guid WorkitemId = new Guid(WebGrid1.RootTable.GetCheckedRows()[i].ToString());

Skelta.HWS.WorkItem workitem = new Skelta.HWS.WorkItem(new Skelta.Core.WorkflowObject(workflow, new Skelta.Core.ApplicationObject(_ApplicationName)), WorkitemId);

workitemObj.Add(workitem);

}

else

{

continue;

}

}

}


 

 

 

 

 

 

All times are GMT -5. The time now is 3:21 PM.
Previous Next