iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi All,
Option 1:
I have a Webgrid with multi select enabled.
So based on the checkboxes clicked i have to do some operations from context menu.
So I am calling a javascript on contextmenu click.
I am checking the CheckedRows in the Serverside
ArrayList workitemIds = WebGrid1.RootTable.GetCheckedRows(); ArrayList workitemObj = new ArrayList(); int rowsCount = WebGrid1.RootTable.Rows.Count; Guid multiSelectQueueId = Guid.Empty; for (int i = 0; i < workitemIds.Count; i++) { for (int j = 0; j < rowsCount; j++) { 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); if(multiSelectQueueId==Guid.Empty) { if (workitem.QueueId != Guid.Empty) { multiSelectQueueId = workitem.QueueId; } } workitemObj.Add(workitem); } else { continue; } } }
If i don;t have grouping column in my webgrid WebGrid1.RootTable.Rows.Count is coming correctly.
Otherwise it is not coming correctly.
How can i achieve this?Because i need to loop through the Webgrid rows and check the keyvalue is matching and get the other details for the row to perform.
Please advice.
Regards,
Madhavan
Hi Madhavan,
Yes, this is a bug. I have reported this issue to our developer.
Regards,Handy
Hi Handy,
Can you please advice when it will be avaiable as a hotfix.
Because we are having our product release in November 3 rd week.
I have contacted our developer team regarding your condition and they will fix this asap. :-)
thanks for understanding our concern.
Hello Madhavan,
Please try to apply this hotfix. Hope this also works on you.
After applying the hotfix Patch also the
WebGrid1.RootTable.Rows.Count is not coming correctly.
Weird, in my sample, it shows correct result. I am sending you my sample. Please let me know if the result is correct or not. You can also send me your simple sample (runable) which replicate the issue. Maybe some scenario is missing when fixed the issue.
From client side count is coming correctly.
But from server side it is giving only the grouprows count.
I have tested my previous sample and when i watched the value of WebGrid1.RootTable.Rows.Count. It still has the same value like in client side. I also attached the video.
your attachment is downloading but it is saying invalid archive if we open it.
This is the code snippet i tried:
client side
{
grid.AddInput("ISMultiSelectQueue","Y");
chkrows=grid.TotalLoadedRows;
grid.AddInput("TotLoadedRows",chkrows +'');grid.SendCustomRequest();
grid.SendCustomRequest();
alert(grid.RootTable.GetRowsCount());
}
Server Side:
madhavan
Hi,
Here, i reattached again. Using WebGrid1.RootTable.Rows.Count should work fine. Maybe you can help me by sending me a simple sample (runable) that shows the issue.
Handy
In your sample I didn't see any grouping on column enabled.
Please check our sample page which replicates the issue.
I ran your sample and did grouping mode. The value of RowsCount is 20. It is the same value like client side alert. Should you have the same result?
Hi handy,
No.Client side it is giving 20.
But server side it is giving grouprows count say if i have 6 groups.then the count is 6.
Ok, Thank you Madhavan. I understand your explanation now. I could not see the issue before because I was not grouping the particular column. My column has the same total rows with normal rows. That's why it returned the same value :-). I will contact this to our developer. Thanks again.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname