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
Latest Development Blogs
ForumPostTopic
Browse By Tag
There are a couple of places where the grid displayes the column names to the end user. It would be nice if there was some way to display the caption values instead. If there is already some way of doing this, please let me know.
Colum name displayed:
There is “Caption” property in WebGridColumn class. You can use it to get or set the text displayed in the column’s heading area.
It can be set manually from Visual Studio source view.
<ISWebGrid:WebGridColumn Caption="CustomerID" DataMember="CustomerID" Name="CustomerID" Width="100px"> </ISWebGrid:WebGridColumn>
Or by using WebGrid designer (as seen in attachment)
About your need to have more control over the look of review changes dialog box, you can submit this as feature request/enhancement. The development team will check the feasibility to implement this on the upcoming build.
Hope this helps.
I don't think you understand my request. I already understand how to set column captions. My issues is that the captions are not always properly displayed when the grid is exported or in the review changes dialog box!
How to replicate:
1. Create a grid with a column that has a name="Name1" and a caption="Caption1".
2. Display the grid. Notice that the column header says "Caption1"
3. Use the export tools to export the grid to HTML or PDF. Notice that the header says "Name1"
THis also occures in the review changes dialog box, in the changes box, the changed cells are listed by column name rather than by column caption.
I have followed the steps to reproduce the issue. I have WebGrid export result file shows “Caption1” rather than “Name1” as you mentioned earlier. Only the export to xml option that will use column name rather than column caption in the export result file.
I attached the test page that I created to test the scenario. You can make any changes to the test page so it replicates the issue for further investigation.
About the review changes dialog box, currently it is the default behavior of WebGrid to shows changed cells listed by column name rather than column caption. Please submit this valuable feedback as feature request in “Community Center” of Intersoft Developer Network (http://dev2.intersoftpt.com). WebGrid development team will check the feasibility to implement the feature in the upcoming build.
In our grid we have PostControlState set to False and we were changing the caption value in a "If Not Page.isPostBack conditional statement. This is why our captions weren't being displayed properly on export.
I tried to follow your scenario based on your information.
I suggest you not to use “If Not Page.IsPostBack” conditional statement to change the caption value. By disabling this conditional statement (apply all setting, without postback condition), the new caption value will be shown in the exported result.
Please let me know whether this helps or not.
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