473,594 Members | 2,692 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1353
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
CollapsiblePane l 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 collapsiblePane l will do this.

hope somebody else can make a better suggestion
tim
<se************ *@gmail.comwrot e in message
news:11******** *************@p 10g2000cwp.goog legroups.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...@com munity.nospamwr ote:
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
CollapsiblePane l controlhttp://ajax.asp.net/ajaxtoolkit/CollapsiblePane l/CollapsiblePane l.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 collapsiblePane l will do this.

hope somebody else can make a better suggestion
tim

<sean.gilbert.. .@gmail.comwrot e in message

news:11******** *************@p 10g2000cwp.goog legroups.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.comwrot e in message
news:11******** **************@ m58g2000cwm.goo glegroups.com.. .
On Feb 7, 11:55 am, "Tim Mackey" <tim.mac...@com munity.nospamwr ote:
>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
CollapsiblePan el
controlhttp://ajax.asp.net/ajaxtoolkit/CollapsiblePane l/CollapsiblePane l.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 collapsiblePane l will do this.

hope somebody else can make a better suggestion
tim

<sean.gilbert. ..@gmail.comwro te in message

news:11******* **************@ p10g2000cwp.goo glegroups.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...@com munity.nospamwr ote:
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.comwrot e in message

news:11******** **************@ m58g2000cwm.goo glegroups.com.. .
On Feb 7, 11:55 am, "Tim Mackey" <tim.mac...@com munity.nospamwr ote:
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
CollapsiblePane l
controlhttp://ajax.asp.net/ajaxtoolkit/CollapsiblePane l/CollapsiblePane l.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 collapsiblePane l will do this.
hope somebody else can make a better suggestion
tim
<sean.gilbert.. .@gmail.comwrot e in message
>news:11******* **************@ p10g2000cwp.goo glegroups.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...@com munity.nospamwr ote:
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.comwrot e in message

news:11******** **************@ m58g2000cwm.goo glegroups.com.. .
On Feb 7, 11:55 am, "Tim Mackey" <tim.mac...@com munity.nospamwr ote:
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
CollapsiblePane l
controlhttp://ajax.asp.net/ajaxtoolkit/CollapsiblePane l/CollapsiblePane l.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 collapsiblePane l will do this.
hope somebody else can make a better suggestion
tim
<sean.gilbert.. .@gmail.comwrot e in message
>news:11******* **************@ p10g2000cwp.goo glegroups.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
1550
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 value of (none). I then put the custom component on the form and it goes in the Component tray like it is supposed to. I then drop down the property on the custom control and the only value ni the list is (none).
16
3007
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 example dsParts.xsd and including that in the data tier. I then will create a class that looks like this Public Class CPart Inherits dsParts
0
944
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 the code behind but not on the surface of Designer. Moreover, they DO exist in container.Components collection. May be someone knows (at least) how to make a control to generate it's own html design time code (this <of type <asp:...>, not HTML...
3
2328
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 two modifications to the sample in the document...both are in the "Protected Sub AddDBTable" (towards the bottom). I've changed ' Creates the database.
2
2431
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 fine. However, when attempting to assing default values as designtime in the propertygrid, nothing is working on the class object. I know that I am doing it wrong, any ideas what it is? Thanks in advance
3
1363
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 code fromother programmers I feel like I am so far behind. I see them usingstuff like Interfaces, IEnumerables, StringBuilders, etc. I have written several applications in C# since I started, but I don't ever seem to need or use those more...
9
1566
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. So far so good. However, the page that generates the svg (currently a .aspx file) writes directly to response. Unless I'm being silly, it doesn't look like I can put a .aspx file into a web control library, so what would be the best way to...
2
1846
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 install the custom control there. If my control already exists, it should replace it based on control version number.
1
4376
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 grid doesn't show colloections i.e. if I have a List<Objectthen the Collection is shown but when I click on the "..." button next to it nothing comes up. If I say CustomPropertyGrid p = new CustomPropertyGrid(); p.SelectedObject = new...
0
7947
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7880
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
6665
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5413
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3868
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3903
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2389
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1486
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.