473,395 Members | 1,948 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Best way to generate custom UI component?

Hi,

I'm sort of new to ASP.NET 2.0 and ASP.NET in general. I have some
data that I would like to display in a tabular format, but I'm going
to be generating the columns dynamically, and I would like to make it
so that each row can be expanded downward dynamically to show detailed
information.

So far, it seems like I'll have to use an asp:Table and generate the
entire thing in code -- including the Javascript to hide and show the
detailed information. Is this the case? Is there some way I can
externalize this behavior, like in a user control or something?

If I weren't using ASP.NET 2.0, I'd be using jQuery to generate all of
this dynamically. Is there an easier way in ASP.NET 2.0?

Thanks :-)
Sean

Feb 7 '07 #1
5 1346
hi sean,
out of the box, the way .net handles this sort of thing is with a
combination of gridview and detailsview controls. you view the records in
the gridview and select one then, which displays whatever info you want in
the detailsview below the gridview (or above). you can scroll to the
details view position. but your idea with the javascript sounds nicer. i
haven't come across a control that does this. however there is an ajax
CollapsiblePanel control
http://ajax.asp.net/ajaxtoolkit/Coll...iblePanel.aspx
i guess you've already thought about this though and you want to have the
columns as part of a single table to keep the column widths consistent. i
doubt the collapsiblePanel will do this.

hope somebody else can make a better suggestion
tim
<se*************@gmail.comwrote in message
news:11*********************@p10g2000cwp.googlegro ups.com...
Hi,

I'm sort of new to ASP.NET 2.0 and ASP.NET in general. I have some
data that I would like to display in a tabular format, but I'm going
to be generating the columns dynamically, and I would like to make it
so that each row can be expanded downward dynamically to show detailed
information.

So far, it seems like I'll have to use an asp:Table and generate the
entire thing in code -- including the Javascript to hide and show the
detailed information. Is this the case? Is there some way I can
externalize this behavior, like in a user control or something?

If I weren't using ASP.NET 2.0, I'd be using jQuery to generate all of
this dynamically. Is there an easier way in ASP.NET 2.0?

Thanks :-)
Sean
Feb 7 '07 #2
On Feb 7, 11:55 am, "Tim Mackey" <tim.mac...@community.nospamwrote:
hi sean,
out of the box, the way .net handles this sort of thing is with a
combination of gridview and detailsview controls. you view the records in
the gridview and select one then, which displays whatever info you want in
the detailsview below the gridview (or above). you can scroll to the
details view position. but your idea with the javascript sounds nicer. i
haven't come across a control that does this. however there is an ajax
CollapsiblePanel controlhttp://ajax.asp.net/ajaxtoolkit/CollapsiblePanel/CollapsiblePanel.aspx
i guess you've already thought about this though and you want to have the
columns as part of a single table to keep the column widths consistent. i
doubt the collapsiblePanel will do this.

hope somebody else can make a better suggestion
tim

<sean.gilbert...@gmail.comwrote in message

news:11*********************@p10g2000cwp.googlegro ups.com...
Hi,
I'm sort of new to ASP.NET 2.0 and ASP.NET in general. I have some
data that I would like to display in a tabular format, but I'm going
to be generating the columns dynamically, and I would like to make it
so that each row can be expanded downward dynamically to show detailed
information.
So far, it seems like I'll have to use an asp:Table and generate the
entire thing in code -- including the Javascript to hide and show the
detailed information. Is this the case? Is there some way I can
externalize this behavior, like in a user control or something?
If I weren't using ASP.NET 2.0, I'd be using jQuery to generate all of
this dynamically. Is there an easier way in ASP.NET 2.0?
Thanks :-)
Sean
Thanks for the info and suggestions, Tim :-) I hope things are going
well for you today.

I like to have a lot of control over the UI of a web app. What I've
been doing for about 4 years now is constructing interfaces that are
tailored to the task. This usually means that I'll code from scratch
in HTML and Javascript. Right now, the tools I prefer are jQuery and
Ruby on Rails -- though I did have to write a jQuery add-on library
for generating DOM nodes dynamically (http://www.pinkblack.org/itblog/?
page_id=22).

Anyway :-) The point is that I tend to build things from scratch
because I find that the best and most fitting UI components can be
achieved that way. I'd love to be able to have this kind of power
(and more) in ASP.NET, especially now that it can do some Ajax.

Take care,
Sean

Feb 7 '07 #3
hi sean,
i totally agree and find myself taking the same approach most of the time.
the .net controls are good, but to really achieve what you want, i agree
that you'll probably need to roll your own this time as well.
good luck with it
tim
<se*************@gmail.comwrote in message
news:11**********************@m58g2000cwm.googlegr oups.com...
On Feb 7, 11:55 am, "Tim Mackey" <tim.mac...@community.nospamwrote:
>hi sean,
out of the box, the way .net handles this sort of thing is with a
combination of gridview and detailsview controls. you view the records
in
the gridview and select one then, which displays whatever info you want
in
the detailsview below the gridview (or above). you can scroll to the
details view position. but your idea with the javascript sounds nicer.
i
haven't come across a control that does this. however there is an ajax
CollapsiblePanel
controlhttp://ajax.asp.net/ajaxtoolkit/CollapsiblePanel/CollapsiblePanel.aspx
i guess you've already thought about this though and you want to have the
columns as part of a single table to keep the column widths consistent.
i
doubt the collapsiblePanel will do this.

hope somebody else can make a better suggestion
tim

<sean.gilbert...@gmail.comwrote in message

news:11*********************@p10g2000cwp.googlegr oups.com...
Hi,
I'm sort of new to ASP.NET 2.0 and ASP.NET in general. I have some
data that I would like to display in a tabular format, but I'm going
to be generating the columns dynamically, and I would like to make it
so that each row can be expanded downward dynamically to show detailed
information.
So far, it seems like I'll have to use an asp:Table and generate the
entire thing in code -- including the Javascript to hide and show the
detailed information. Is this the case? Is there some way I can
externalize this behavior, like in a user control or something?
If I weren't using ASP.NET 2.0, I'd be using jQuery to generate all of
this dynamically. Is there an easier way in ASP.NET 2.0?
Thanks :-)
Sean

Thanks for the info and suggestions, Tim :-) I hope things are going
well for you today.

I like to have a lot of control over the UI of a web app. What I've
been doing for about 4 years now is constructing interfaces that are
tailored to the task. This usually means that I'll code from scratch
in HTML and Javascript. Right now, the tools I prefer are jQuery and
Ruby on Rails -- though I did have to write a jQuery add-on library
for generating DOM nodes dynamically (http://www.pinkblack.org/itblog/?
page_id=22).

Anyway :-) The point is that I tend to build things from scratch
because I find that the best and most fitting UI components can be
achieved that way. I'd love to be able to have this kind of power
(and more) in ASP.NET, especially now that it can do some Ajax.

Take care,
Sean
Feb 7 '07 #4
On Feb 7, 12:29 pm, "Tim Mackey" <tim.mac...@community.nospamwrote:
hi sean,
i totally agree and find myself taking the same approach most of the time.
the .net controls are good, but to really achieve what you want, i agree
that you'll probably need to roll your own this time as well.
good luck with it
tim

<sean.gilbert...@gmail.comwrote in message

news:11**********************@m58g2000cwm.googlegr oups.com...
On Feb 7, 11:55 am, "Tim Mackey" <tim.mac...@community.nospamwrote:
hi sean,
out of the box, the way .net handles this sort of thing is with a
combination of gridview and detailsview controls. you view the records
in
the gridview and select one then, which displays whatever info you want
in
the detailsview below the gridview (or above). you can scroll to the
details view position. but your idea with the javascript sounds nicer.
i
haven't come across a control that does this. however there is an ajax
CollapsiblePanel
controlhttp://ajax.asp.net/ajaxtoolkit/CollapsiblePanel/CollapsiblePanel.aspx
i guess you've already thought about this though and you want to have the
columns as part of a single table to keep the column widths consistent.
i
doubt the collapsiblePanel will do this.
hope somebody else can make a better suggestion
tim
<sean.gilbert...@gmail.comwrote in message
>news:11*********************@p10g2000cwp.googlegr oups.com...
Hi,
I'm sort of new to ASP.NET 2.0 and ASP.NET in general. I have some
data that I would like to display in a tabular format, but I'm going
to be generating the columns dynamically, and I would like to make it
so that each row can be expanded downward dynamically to show detailed
information.
So far, it seems like I'll have to use an asp:Table and generate the
entire thing in code -- including the Javascript to hide and show the
detailed information. Is this the case? Is there some way I can
externalize this behavior, like in a user control or something?
If I weren't using ASP.NET 2.0, I'd be using jQuery to generate all of
this dynamically. Is there an easier way in ASP.NET 2.0?
Thanks :-)
Sean
Thanks for the info and suggestions, Tim :-) I hope things are going
well for you today.
I like to have a lot of control over the UI of a web app. What I've
been doing for about 4 years now is constructing interfaces that are
tailored to the task. This usually means that I'll code from scratch
in HTML and Javascript. Right now, the tools I prefer are jQuery and
Ruby on Rails -- though I did have to write a jQuery add-on library
for generating DOM nodes dynamically (http://www.pinkblack.org/itblog/?
page_id=22).
Anyway :-) The point is that I tend to build things from scratch
because I find that the best and most fitting UI components can be
achieved that way. I'd love to be able to have this kind of power
(and more) in ASP.NET, especially now that it can do some Ajax.
Take care,
Sean
Thanks :-) And it's comforting to hear these words from a fellow
developer! I don't get to talk to many other programmers very often,
sadly. (BTW: Can you recommend any good programming trade journals?)

Anyway, so this foray into ASP.NET was worth it: Now I have a defense
for "How come you didn't use ASP.NET again?" Right? :-)

Take care,
Sean!

Feb 7 '07 #5
On Feb 7, 12:29 pm, "Tim Mackey" <tim.mac...@community.nospamwrote:
hi sean,
i totally agree and find myself taking the same approach most of the time.
the .net controls are good, but to really achieve what you want, i agree
that you'll probably need to roll your own this time as well.
good luck with it
tim

<sean.gilbert...@gmail.comwrote in message

news:11**********************@m58g2000cwm.googlegr oups.com...
On Feb 7, 11:55 am, "Tim Mackey" <tim.mac...@community.nospamwrote:
hi sean,
out of the box, the way .net handles this sort of thing is with a
combination of gridview and detailsview controls. you view the records
in
the gridview and select one then, which displays whatever info you want
in
the detailsview below the gridview (or above). you can scroll to the
details view position. but your idea with the javascript sounds nicer.
i
haven't come across a control that does this. however there is an ajax
CollapsiblePanel
controlhttp://ajax.asp.net/ajaxtoolkit/CollapsiblePanel/CollapsiblePanel.aspx
i guess you've already thought about this though and you want to have the
columns as part of a single table to keep the column widths consistent.
i
doubt the collapsiblePanel will do this.
hope somebody else can make a better suggestion
tim
<sean.gilbert...@gmail.comwrote in message
>news:11*********************@p10g2000cwp.googlegr oups.com...
Hi,
I'm sort of new to ASP.NET 2.0 and ASP.NET in general. I have some
data that I would like to display in a tabular format, but I'm going
to be generating the columns dynamically, and I would like to make it
so that each row can be expanded downward dynamically to show detailed
information.
So far, it seems like I'll have to use an asp:Table and generate the
entire thing in code -- including the Javascript to hide and show the
detailed information. Is this the case? Is there some way I can
externalize this behavior, like in a user control or something?
If I weren't using ASP.NET 2.0, I'd be using jQuery to generate all of
this dynamically. Is there an easier way in ASP.NET 2.0?
Thanks :-)
Sean
Thanks for the info and suggestions, Tim :-) I hope things are going
well for you today.
I like to have a lot of control over the UI of a web app. What I've
been doing for about 4 years now is constructing interfaces that are
tailored to the task. This usually means that I'll code from scratch
in HTML and Javascript. Right now, the tools I prefer are jQuery and
Ruby on Rails -- though I did have to write a jQuery add-on library
for generating DOM nodes dynamically (http://www.pinkblack.org/itblog/?
page_id=22).
Anyway :-) The point is that I tend to build things from scratch
because I find that the best and most fitting UI components can be
achieved that way. I'd love to be able to have this kind of power
(and more) in ASP.NET, especially now that it can do some Ajax.
Take care,
Sean
Update: I looked into some code that was written for this app in a
place where the same type of task was accomplished, and I discovered
that they didn't use the .NET widgets at all; they used XSL
templates. XSL is cool but I think it's more work than my method.
Anyway, it's interesting to see that data-bound - or other - .NET
controls weren't used.

Take care!
Sean

Feb 8 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: ttupper | last post by:
I have made a custom control that has a property that is a custom component. When I put the custom control on a form in the designer, the propery is listed in the Properties window with a default...
16
by: D Witherspoon | last post by:
I am developing a Windows Forms application in VB.NET that will use .NET remoting to access the data tier classes. A very simple way I have come up with is by creating typed (.xsd) datasets. For...
0
by: roberto | last post by:
This is basically repost of my previous (unanswered) question. What I try to do is to generate Web controls on the Page surface during design time from withing my own component; they do appear in...
3
by: DC Gringo | last post by:
Hi, I'm trying to use a custom action to modify a database (rather than create one) using the VS.NET '03's help example called "Custom Action to Create Database During Installation". I've made...
2
by: AMDRIT | last post by:
Hello everyone, I have created a custom component and one of its properties is a class object with it's own properties. During runtime, I can assign values to the class object properties just...
3
by: =?Utf-8?B?TWljaGFlbA==?= | last post by:
Hi, I have been developing using C# in ASP.Net for about a year now. And have been a programmer for about 10 years. I have learned many different things in .NET, but still when I look at sample...
9
by: Brian Cryer | last post by:
I've developed software (vb.net) that renders maps using svg. My manager would like this "mapping component" to be migrated into a library so it can easily be used by other web based applications....
2
by: R.A.F. | last post by:
Hi, I would like to know how can i do to make my custom controls automatically installed on ToolBox palette and in the right tab. for example, if my tab does not exist, it should create it and...
1
by: asharda | last post by:
I have a custom property grid. I am using custom property grid as I do not want the error messages that the propertygrid shows when abphabets are entered in interger fields. The custom property...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.