|
-
Sep 26th, 2004, 10:18 PM
#1
Thread Starter
Addicted Member
Custom Drop Down List
Hi all,
Background:
I have a web page which has a datagrid in it. a couple of the columns in this datagrid have a dropdown list. The number of rows present in the grid is dynamic, and changes at runtime quite frequently, but is usually from 5 to 30 or so rows.
Due to client requirements, the rows need to be editable at all times, ie my client is un-willing to accept that the user has to click a button next to a row to bring it to "edit mode" then modify that line, save it, and repeat the process for each row.
One of the dropdown lists has around a hundred and fifty rows in it. an other has around 30 rows. The contents of the drop down lists will not be needing to change during the lifecycle of the form.
I'd like to reduce the html bulk created by repeating the drop-down list multiple times, as each and every dropdown list on the page will present exactly the same options to the client, I'd like the page to download the data once, then render each drop down list at run-time on the client. I was wondering if anyone else had already done this?
Thanks in advance for your help.
-
Sep 28th, 2004, 07:00 AM
#2
Frenzied Member
On page load get all the data to go into the dropdownlists into a global dataset. Set all the dropdownlists to use this dataset as a datasource.
HTH
DJ
-
Sep 28th, 2004, 05:47 PM
#3
Thread Starter
Addicted Member
Thanks for your response, although I already do this, but what I want to do is reduce the amount of HTML sent to down to the client. I normally have 30-50 rows in my datagrid, each row with 3 comboboxes. Each combo box has between 50 and 300 items in it. My page size can be up to 1.3 mb because of this!! Making only one row editable at a time is not an option due to the spec.
-
Sep 28th, 2004, 06:00 PM
#4
Addicted Member
Well first, if you turn off ViewState your page will be smaller, but the drawback would be on posts back, it will be slower.
It sounds to me like since your page isn't going to change, then you should look at implementing some of the caching features ASP.NET offers:
http://authors.aspalliance.com/aspxt...gfeatures.aspx
-
Sep 29th, 2004, 12:01 AM
#5
Thread Starter
Addicted Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|