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,
I am using Intersoft web grid to display the data and I have been set the following grid layout property like this.
pagingmode="VirtualLoad"
virtualloadmode="LargeData"
virtualpagesize="100"
This grid initially displays 100 record and works well.
When I load more data into the grid using scrollbar i.e. 200 records then grid display 200 records but doesn’t return WebGrid1.RootTable.Rows.count=200. It always shows grid rows count 100 either the grid has 200 records or more. I want to count all the selected checkbox into the grid but grid always display 100 records only.
Please find the attached sample application and let me know how I can count all the selected checkbox into the grid rows.
Note: This sample application is related to my actual application and its need to display the two checkbox column into the grid and get the user input using these two checkbox.
This is very urgent for me so please respond ASAP.
Thanks
Sachin
Hello Sachin,
I believe you are using IsRowChecker column in your project.
I have created a sample that uses IsRowChecker along with VirtualLoad paging mode.
When I want to get total selected checkbox, I use a different approach like following:
WebGrid1.RootTable.GetCheckedRows().Count.ToString();
With the code above, I'm able to get the total checked rows according to the virual page size that is being loaded.
Attached is the sample for your reference.
Hope this helps. Thank you.
Regards,-Martin-
Hi Martin,
Thanks for the reply.
Your solution is perfect if grid has one checkbox column. But my requirement is that grid must have two checkbox column to get the user selection.
I have already created sample application with two checkbox column. Please find the attached sample application in my first discussion.
Could you please provide me any solution for this problem?
I've run your sample here. It seems that the selected subject and offset count have already displayed the correct number. The problem is only with the total loaded record in grid.
Basically, when you use WebGrid1.RootTable.Rows.Count.ToString(), it will count the total rows in the table. Let's say Customer table is bound to WebGrid, which has total 91 records. By using that method, you will get total 91 records.
If you use Virtual Load paging, it is recommended to obtain the total displayed row using client-side. Try to invoke the following code by using button click in client-side:
function DoCount() { var grid = ISGetObject("WebGrid1"); alert(grid.RootTable.GetRowsCount()); }
Invoke DoCount() function using button click like following:
<input type="button" id="button1" value="Get Rows from Client" onclick="DoCount()" />
With these codes, you are able to get the total rows count that is being displayed in the current state.
Selected subject and offset count is displayed the correct number only when the grid has 100 records.
If you load more data into grid e.g. 200 and then select the subject and offset between rows 101 to 200 and hit the button to get subject and offset count then correct count doesn’t display. Please verify in the given sample.
I need to check the status of selected checkbox of the entire row either less then 100 or more.
Please provide any solution to resolve this issue.
I got your point now. I have successfully replicated your issue here.
However, I will need to discuss this issue futher with the developer team. Probably, they can come up with a better solution on how to overcome this issue.
I will let you know when I get any update from them.
Thank you.
Any update on this?
This is the road block for our client so please provide a solution ASAP.
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