I have to add all 86 fields from a view based query inside a grid on a form. The problem is that a form is very slow and the application freezes.
Is there any way to make it faster?
Also try to disable auto-sizing of columns:
grid.autoSizeColumns(false)
Crazy clients ask for crazy things.
My suggestion is DON'T.
As I have the advantage of working opposite you ;) my suggestion is to avoid using a Form/Grid altogether and export the data directly to Excel. Code example.
Related
I'd be greatful if you can help.
I would like to have a drop downlist that can have a view list of images rather than text content.
many thanks
This is a poor question as you dont give much detail, however if you're working in classic-asp you can easily include jquery (client-side javascript library) and make use of the many plugins that offer this functionality, for example, one of the better ones (only in my opinion of course): http://designwithpc.com/Plugins/ddSlick#demo - note the examples - very easy to use, example:
I would like to create an order form for my ASP.net page (I included an example image below). However I don't know how to approach this. I'm assuming the best method would be a gridview but it would involve two levels of grouping. Other requirements would be be to accept a quantity and then calculate the total price. Can anyone point me to some good books or websites that explain creating custom grid views like this (or maybe a better method than using gridview, I'm open to whatever).
I consider myself to be an intermediate programmer in asp.net. I understand a lot of the concepts but I'm trying to learn more practical ways of doing things. Thanks for any knowledge you can provide!
Use a ListView, for two reasons:
It will produce clean markup
Using templates will give you the layout you desire
Here's an example of the type of layout you are after and how to achieve it:
ListView Web Server Control Overview
I am creating a form that needs to have 30 or more fields either disabled or set to be read only. They need to be marked as such if the based on the value of a drop-down box.
This is something that I can do using conditional formating that I know, what I want to know is there a way to either add conditional formatting to multiple controls at once or a rule that I can set that will accomplish the same thing?
One requirement is that I can't use programming code to do this. I realize it would probably be far easier to do that way but that is a requirement given to me by my manager.
EDIT: Forgot to add this there are fields that still need to be edited when the other fields are read only.
One feature in InfoPath 2010 (can't remember if it was in 2007) that reduces the pain of this sort of repetitive work is the ability to copy-and-paste rules. With this you can create your read-only rule once and then just paste it onto each of the 30 controls that need it.
You could put it all in a section but your only option for sections is hide/show (not disable or read only). Otherwise you have to setup all the fields against that one dropdown. Huge pain but at least you only have to do it once.
An alternative, which is just about as much work, is to setup two views. One that is readonly and one that is normal. When the user changes the dropdown just flip the view. This method has a bunch of display nuances but does work.
Does anyone know of any plugins/extentions to the YUI Datatable that will allow column sorting similar to how a sharepoint grid works.
I'm looking for something that works/looks a bit like this from sharepoint (click on the clumn header, and a drop down appears with options to filter the datatable based on the data in that column):
Sharepoint grid column filter http://drop.io/download/public/eoq8cfcggp0bkw8wejlk/fb8b74641fc499f205222c7bc128644fef046a80/16a2e690-486e-012b-de36-00127994f632/08a51310-85e6-012c-5ac8-fc75480d82c3/v2/thumbnail_large
Anyone have any ideas?
Thanks.
I do not believe that anything like this currently exists. Ascending/Descending sort is supported out of the box, but I assume you know that.
Filtering can be done (there are examples here and here), but not with the UI you want. You should probably tell your boss that the cost involved in your writing this feature to satisfy his whim is probably not worth the benefit, and you should find another UI paradigm that's easier to implement.
That said, if you do decide to subclass the DataTable to do something like this, please do submit your changes back to YUI so that everyone can benefit from them
Can't you just use context menu like this:
http://developer.yahoo.com/yui/examples/datatable/dt_contextmenu.html
I have multiple iframes which are displaying same collection of data (help in asp.net Cache).
After the modifies the data on one of the frames, I would like all of the others to reflect the update without the need for explicit postback on each one of them.
So the question is: What is the easiest and most elegant way to keep iframes synchronized in this case?
Thanks in advance
I'm yet to see an elegant iframe solution, but it's a pragmatic solutions to certain problems. Here's a few ideas:
Post your changes to the top level frame and rebuild all the frames
Use a custom javascript to update the necessary frames on changes
Use a custom javascript to update the top level frame on changes
Ok, I have implemented you second suggestion. However, in the final solution I managed to avoid usage of iframes, which is in any case much better :)
Thanks....