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 evaluating your product. Here is my situation:
Our users have the ability to remove and rearrange the columns in their WebGrid. That works fine, but our goal is to allow users the ability to save these preferences so that when they come back to the page, their column preferences, including the ordering of the columns, is in tact. While we're able to successfully manage the column visibility, we have not been able to manipulate the column ordering. It seems to always load the columns in the order that they appear in the .aspx page. I have tried setting the "Position" property and calling "ReindexColumnsPosition" but that doesn't seem to do anything. Perhaps I'm calling it at the wrong time. I've also tried "Reset" but to no avail. Is there a way to quickly reindex the grid columns or do I need to reindex in the same way that I would reindex any list?
Thanks,
Brad
Hi Brad,
So terribly sorry for mistaken. It seems that I have uploaded a wrong file, here I attached you a right one. Basically, for the first time, you do not need to put anything in that "load.isl" file, just leave it blank. That is why if you see on my sample, I have made a condition if the length of the file is zero, then we do not need to load these file.
In your case, in my opinion, if every user wants to have a different layout of WebGrid, you will need to make another validation to load which file for which user.
I hope it helps. Thank you and have a nice day.
Best Regards,
Andi Santoso
To establish this scenario, we will need to do a save layout procedure. So, first of all, you will need to create a sample load file using notepad and save as "load.isl" and Ensure to put this file in your project folder. Then we can load this file in PrepareDataBinding on Server side event and save them in InitializePostBack event.
However, this saving file will only work if the WebGrid is doing an event of InitializePostBack, that is what we also need to create client side event of ColumnMove to trigger the InitializePostBack server side event by using send custom request.
To clarify this, I attached you a simple sample of this scenario. Kindly download and run it in your end. It should meet your scenario.
Thank you for your prompt reply Andi. The files that I found in the attachment don't seem to match my scenario, at least not obviously. You mention that I should save a file called load.isl. What is supposed to be in this file? What do I do with the file in "PrepareDataBinding?" I didn't see anything like that in the attachment that you included. Also, in my situation, we will have lots of different users so I don't know that it will be enough to have a single .isl file, will it? Each user will be managing the columns differently. Do you have an example of a .isl file that has columns created and how to deal with that in the PrepareDataBinding method?
Thank you Andi. That is helpful.
Glad to hear that it helps you to solve the problem. Please do not hesitate to ask if you have any other questions. Thank you and have a nice day.
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