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
We have a WebGrid which hierarchical content (tree like), loading subnodes on demand. Sorting is enabled. When clicking on the header, the sort up, sort down arrows appear, but the content is not resorted - nothing happens.
I would like to get the content resorted, only within each node of course. How would I do this?
We are using WebGrid version 6.0.7200.220 and I wonder if this is supported in a newer version and it would be worth upgrading. Please tell me if a newer version supports this natively. If not, how should I implement this?
Eric
Hello Eric,
I am sorry for the late response. I think you were missing to apply sorting for the child level.In selfReference, you could not apply the normal sorting. You would need to ApplyChildSorting properties in selfReference scenario.e.g in grdResult_Init, please add this following settings.
grdResult.RootTable.SelfReferencingSettings.ApplyChildSorting = True
Hope this helps.
Regards,Handy
Our hierachical sample, you should be able to do sorting in their child. Same result should show in LoadOnDemand scenario.At least we need to replicate your issue. Is it possible for you to send me a simple sample that replicates your issue?FYI, you can also apply a customSort. Please open our WebGrid documentation and search about "CustomSort". Hope this helps.
Hi Handy,
I know how the CustomSort works. Thanks for this suggestion anyway. But my problem is that it doesn't sort at all, not even alphabetically.
I'm not sure which sample you mean. I cannot find samples on your homepage. So I went to search on what was installed with your product. There is no installation, but I found a tutorial with some samples. In the folder C:\Program Files\Intersoft Solutions\WebGrid.NET 6.0\Tutorials\WG60TutorialsVB\V5.0 I found a sample called SelectSelfRefChildRow.aspx, which would be the most closest to what I want. But that sample has sorting disabled.
The other three samples there that begin all with Hierarchical_... all have sub-tables with separate titles. This is not what I need.
If you look at my sample here:
http://www.intersoftpt.com/Community/WebGrid/Design-question-How-to-add-OnClick-Handler-on-a-field-in-WebGrid/
and take the MergeButtonSample_v3.zip, and open the file DBCalls.vb and in Sub AddRow add this code:
r("R_a") = Rnd() r("R_b") = Rnd() r("V_a") = Rnd() r("V_b") = Rnd()
just before the If Not ParentBlockId...
Then run the sample and try sorting on any field. You can see that the sort-triangels appear in the header, but nothing gets sorted. This is what I meant.
Does this work with a newer WebGrid or do I have to write code for this? If code, then how?
Thanks,
Your issue is under investigation. I will let you know asap.
Any updates yet?
Yes! This is what was missing. Thanks a lot!
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