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 would like to be able to have the grid design changed based on the ASP.net Theme that we select.
So if we have a blue theme set in ASP.net (using themes) then the grid will show blue, but if we use a differnent theme, we want the grid to use that.
Basically, we need all the settings under the LayoutSettings section to change based on Theme.
Is there any way to do this?
Eric
Hi Eric,
You said it doesn't work at sub table.
>>So, let me assume you used your own custom theme. While you saved your themes at .isl file, have you set all the styles also in Hierarchical/subtable mode? When you saved it into .isl files, it would also ask you to save the behavior style or not. If you only saved for Flat Grid themes, how would it apply for Hierarchichal Grid? You will also need to set all the style include in hierarchical mode before you saved into .ISL.
The last thing about bug you mentioned.
>>It is not a bug. Load a layout from a file does not mean you persisted all the ViewStateItems. That's why the styles are missing. Please try to set ViewStateItems properties into "ALL" and also in WebGrid try to disable the default style. All the styles should be rendered normally.
Regards,Handy
What do you mean by ASP.net theme? As far i know, if you have some WebGrid themes, you can change the themes based on your selection (you will need FullPostBack in order to do this). Eg, in my sample, I changed the theme via button click. You can define your own themes and customize it in LayoutSettings via Button click. Hope this helps.
Well, we consider this a major flaw in the Webgrid.
We need to support different Themes in the grid, as we have different themes in our app. Yes we use ASP.net themes. But from your example, we will need to programatically change each and every part of the LayoutSettings, which does not give us a theme based way to change it.
Is there a better way? What about saving the layoutsettings in the designer and changing them via a saved file?
I am surprised that you cant support ASP.net themes.
What i want to do is load a layout from a file. It appears that you could have this ability, since in the designer you save styles to a file, but it appears you must apply them inline. What i want to do is load the style from a file.
Yes, you can save your own themes into .isl file via WebGridDesigner>>LayoutManager. After that, you need to copy your .isl file into your project and ensure it is calling the correct path.
e.g
WebGrid1.LoadLayoutFromFile((Server.MapPath("WG_Blue.isl")));
while that works great, it doesnt work for sub tables in a hiarchial grid.
It appears that the top table shows fine, but when we expand a sub table, its all screwed up.
Any ideas?
OK BIG BUG!
When we use this method, (LoadLayoutFromFile) and then we sort (click on a header), all the formating gets lost!
What is happening?
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